[ITK] [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/community/attachments/20150114/e50ccce5/attachment-0001.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