[ITK] [ITK-users] Fwd: MeanSquaresImageToImageMetricv4 with unsigned char PixelType results in error C2440

Andrew Harris aharr8 at uwo.ca
Sun Jul 24 08:26:13 EDT 2016


Hello,
I am attempting to build the example in section 3.6.4 of the 2nd volume
Insight Toolkit user guide to read unsigned char data rather than float.  I
have narrowed the error I’m getting down to the
MeanSquaresImageToImageMetricv4, and the error I’m getting is:

error C2440: ‘initializing’: cannot convert from
‘itk::Concept::Detail::UniqueType_bool<false>’ to
‘itk::Concept::Detail::UniqueType_bool<true>’

I am using Visual Studio 2013 and ITK 4.10.0, any ideas on how to fix this
would be helpful. I read the Microsoft Compiler Error documentation but
didn’t really understand it.

--

AH


-----------------------------------------------------------------------------------------------

*This email and any attachments thereto may contain private,
confidential, and privileged materials for the sole use of the intended
recipient. Any reviewing, copying, or distribution of this email (or any
attachments thereto) by other than the intended recipient is strictly
prohibited. If you are not the intended recipient, please contact the
sender immediately and permanently destroy this email and any attachments
thereto.*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20160724/787fbae2/attachment.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list