[ITK-users] concept checking error - RegistrationMethodv4
Hammond, Emily M
emily-hammond at uiowa.edu
Wed Jan 14 11:55:22 EST 2015
Hello,
I am working with very large images and would like to use a short pixel type for my fixed and moving images within the ImageRegistrationMethodv4; however, my code does not build until a float pixel type is used. Here is a snippet of my code (looks pretty standard):
const unsigned int Dimension = 3;
typedef short PixelType;
typedef itk::Image< PixelType, Dimension > FixedImageType;
typedef itk::Image< PixelType, Dimension > MovingImageType;
typedef itk::MattesMutualInformationImageToImageMetricv4< FixedImageType, MovingImageType > MetricType;
typedef itk::ImageRegistrationMethodv4< FixedImageType, MovingImageType, TransformType > RegistrationType;
RegistrationType::Pointer registration = RegistrationType::New();
MetricType::Pointer metric = MetricType::New();
At this point in the code, the following error is thrown (not seen if using float pixel type):
error C2440: 'initializing' : cannot convert from 'itk::Concept::Detail::UniqueType_bool<__formal>' to 'itk::Concept::Detail::UniqueType_bool<__formal>'
Can anyone give me some insight into this problem? From previous experience I know that short pixel types work with the metrics and registration method from the previous version. Does version 4 not have these capabilities?
Thanks!
Emily Hammond
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20150114/e50ccce5/attachment.html>
More information about the Insight-users
mailing list