[ITK] [ITK-users] concept checking error - RegistrationMethodv4

Bradley Lowekamp blowekamp at mail.nih.gov
Wed Jan 14 12:57:10 EST 2015


Hello,

The current ITKv4 registration frame work is limited to real type (float/double). I believe it could be changed with some work, I think much of the reasoning for this requirement has to do with the way the multi-scale and gradient magnitude are implemented.

If you image is large, perhaps you should reduce the resolution before performing registration?

Brad

On Jan 14, 2015, at 11:55 AM, Hammond, Emily M <emily-hammond at uiowa.edu> wrote:

> 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
> _____________________________________
> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20150114/28d9ccf0/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