<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hello,<div><br></div><div>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.</div><div><br></div><div>If you image is large, perhaps you should reduce the resolution before performing registration?</div><div><br></div><div>Brad</div><div><br><div><div>On Jan 14, 2015, at 11:55 AM, Hammond, Emily M <<a href="mailto:emily-hammond@uiowa.edu">emily-hammond@uiowa.edu</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div fpstyle="1" ocsi="0" class=" hasGoogleVoiceExt" style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div style="direction: ltr; font-family: Tahoma; font-size: 10pt;">Hello,<div><br></div><div>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):</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space: pre;"></span>const unsigned int Dimension = 3;</div><div><span class="Apple-tab-span" style="white-space: pre;"></span>typedef short PixelType;</div></div><div><br></div><div><div><span class="Apple-tab-span" style="white-space: pre;"></span>typedef itk::Image< PixelType, Dimension > FixedImageType;</div><div><span class="Apple-tab-span" style="white-space: pre;"></span>typedef itk::Image< PixelType, Dimension > MovingImageType;</div></div><div><br></div><div><span class="Apple-tab-span" style="white-space: pre;"></span>typedef itk::MattesMutualInformationImageToImageMetricv4< FixedImageType, MovingImageType > MetricType;</div><div><span class="Apple-tab-span" style="white-space: pre;"></span>typedef itk::ImageRegistrationMethodv4< FixedImageType, MovingImageType, TransformType > RegistrationType;</div><div><br></div><div><div><span class="Apple-tab-span" style="white-space: pre;"></span>RegistrationType::Pointer registration = RegistrationType::New();</div><div><span class="Apple-tab-span" style="white-space: pre;"></span>MetricType::Pointer metric = MetricType::New();</div></div><div><br></div><div>At this point in the code, the following error is thrown (not seen if using float pixel type):</div><div>error C2440: 'initializing' : cannot convert from 'itk::Concept::Detail::UniqueType_bool<__formal>' to 'itk::Concept::Detail::UniqueType_bool<__formal>'</div><div><br></div><div>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?</div><div><br></div><div>Thanks!</div><div>Emily Hammond</div></div>_____________________________________<br>Powered by<span class="Apple-converted-space"> </span><a href="http://www.kitware.com/">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br><br>Kitware offers ITK Training Courses, for more information visit:<br><a href="http://www.kitware.com/products/protraining.php">http://www.kitware.com/products/protraining.php</a><br><br>Please keep messages on-topic and check the ITK FAQ at:<br><a href="http://www.itk.org/Wiki/ITK_FAQ">http://www.itk.org/Wiki/ITK_FAQ</a><br><br>Follow this link to subscribe/unsubscribe:<br><a href="http://public.kitware.com/mailman/listinfo/insight-users">http://public.kitware.com/mailman/listinfo/insight-users</a></div></blockquote></div><br></div></body></html>