<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hello,<div class=""><br class=""></div><div class="">Does you registration work without utilizing the mask? Are you trying to use 2 or 1 mask?</div><div class=""><br class=""></div><div class="">How did you initialize your transforms?</div><div class=""><br class=""></div><div class="">When does this error occur? Do you have iteration callbacks? </div><div class=""><br class=""></div><div class="">Brad</div><div class=""><br class=""></div><div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Mar 9, 2016, at 12:49 PM, suneeza hanif <<a href="mailto:suneezahanif02@gmail.com" class="">suneezahanif02@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=utf-8" class=""><div dir="ltr" class=""><span style="background-color:rgb(243,243,243)" class="">Hello </span><span style="font-size:12.8px;white-space:nowrap" class="">Dženan,</span><div class=""><span style="font-size:12.8px;white-space:nowrap" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px;white-space:nowrap" class="">Thank you for your response.</span></div><div class=""><div class=""><span style="font-size:12.8px;white-space:nowrap" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px;white-space:nowrap" class="">I have tried with larger mask but I get same error.</span></div><div class=""><span style="font-size:12.8px;white-space:nowrap" class=""><br class=""></span></div><div class=""><span style="font-size:12.8px;white-space:nowrap" class="">Secodly, when I use </span><span style="font-family: 'normal arial', sans-serif; line-height: 20px; background-color: rgb(243, 243, 243);" class="">itk::ImageSpatialObject instead of</span><span style="font-family: 'normal arial', sans-serif; line-height: 20px; background-color: rgb(243, 243, 243);" class=""> itk::ImageMaskSpatialObject I do not get this error but then mask is not activated because even when I take mask of size (0,0) registration process still keeps on running.</span></div><div class=""><span style="font-family: 'normal arial', sans-serif; line-height: 20px; background-color: rgb(243, 243, 243);" class=""><br class=""></span></div><div class=""><font face="normal arial, sans-serif" class=""><span style="line-height:20px;background-color:rgb(243,243,243)" class="">Best Regards,</span></font></div><div class=""><font face="normal arial, sans-serif" class=""><span style="line-height:20px;background-color:rgb(243,243,243)" class="">Suneeza</span></font></div><div class=""><span style="line-height:20px;background-color:rgb(243,243,243)" class=""><font face="normal arial, sans-serif" class=""><div style="" class=""><br class=""></div></font></span></div></div></div><div class="gmail_extra"><br class=""><div class="gmail_quote">On Wed, Mar 9, 2016 at 6:39 PM, Dženan Zukić <span dir="ltr" class=""><<a href="mailto:dzenanz@gmail.com" target="_blank" class="">dzenanz@gmail.com</a>></span> wrote:<br class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr" class=""><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Suneeza,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br class=""></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">I would say that your mask is too small, so the masked part does not contain sample points. It could be also that your initialization is not good, so there is no overlap between fixed and moving images.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br class=""></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards</div></div><div class="gmail_extra"><br class=""><div class="gmail_quote"><div class=""><div class="h5">On Wed, Mar 9, 2016 at 11:10 AM, suneeza hanif <span dir="ltr" class=""><<a href="mailto:suneezahanif02@gmail.com" target="_blank" class="">suneezahanif02@gmail.com</a>></span> wrote:<br class=""></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class=""><div class="h5"><div dir="ltr" class="">Hello Everyone,<div class=""><br class=""></div><div class="">I have problem while applying spatial masking.</div><div class=""><br class=""></div><div class="">When I apply spatial mask I get this error.</div><div class=""><br class=""></div><div class=""><i class="">"<span style="line-height:115%" class="">itk::ExceptionObject (0038D8CC)</span></i></div><p class="MsoNormal"><i class=""><a name="-1098806096_428763459__GoBack" class=""></a></i></p><p class="MsoNormal"><span lang="EN-US" style="line-height:115%" class=""><i class="">Location:
"void __thiscall itk::ImageToImageMetricv4<class
itk::Image<float,2>,class itk::Image<float,2>,classitk::Image<float,2>,double,class itk::DefaultImageToImageMetricTraitsv4<class
itk::Image<float,2>,class itk::Image<float,2>,class
itk::Image<float,2>,double>>::MapFixedSampledPointSetToVirtual(void)"</i></span></p><p class="MsoNormal"><span lang="EN-US" style="line-height:115%" class=""><i class=""><br class=""></i></span></p><p class="MsoNormal"><span lang="EN-US" style="line-height:115%" class=""><i class="">File:
c:\itk\src\modules\registration\metricsv4\include\itkImageToImageMetricv4.hxx</i></span></p><p class="MsoNormal"><span lang="EN-US" style="line-height:115%" class=""><i class="">Line:
532</i></span></p><p class="MsoNormal"><span lang="EN-US" style="line-height:115%" class=""><i class="">Description:
itk::ERROR: MattesMutualInformationImageToImageMetricv4(060914C0):</i></span></p>

<div class=""><i class=""><span style="line-height:115%" class="">Fixed
Sample point set is empty.</span>"</i></div><div class=""><i class=""><br class=""></i></div><div class="">Does anyone know how to solve this?</div><div class=""><br class=""></div><div class="">Best Regards,</div><div class="">Suneeza</div></div>
<br class=""></div></div>_____________________________________<br class="">
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank" class="">www.kitware.com</a><br class="">
<br class="">
Visit other Kitware open-source projects at<br class="">
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank" class="">http://www.kitware.com/opensource/opensource.html</a><br class="">
<br class="">
Kitware offers ITK Training Courses, for more information visit:<br class="">
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank" class="">http://www.kitware.com/products/protraining.php</a><br class="">
<br class="">
Please keep messages on-topic and check the ITK FAQ at:<br class="">
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank" class="">http://www.itk.org/Wiki/ITK_FAQ</a><br class="">
<br class="">
Follow this link to subscribe/unsubscribe:<br class="">
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank" class="">http://public.kitware.com/mailman/listinfo/insight-users</a><br class="">
<br class=""></blockquote></div><br class=""></div>
</blockquote></div><br class=""></div>
_____________________________________<br class="">Powered by <a href="http://www.kitware.com" class="">www.kitware.com</a><br class=""><br class="">Visit other Kitware open-source projects at<br class=""><a href="http://www.kitware.com/opensource/opensource.html" class="">http://www.kitware.com/opensource/opensource.html</a><br class=""><br class="">Kitware offers ITK Training Courses, for more information visit:<br class="">http://www.kitware.com/products/protraining.php<br class=""><br class="">Please keep messages on-topic and check the ITK FAQ at:<br class="">http://www.itk.org/Wiki/ITK_FAQ<br class=""><br class="">Follow this link to subscribe/unsubscribe:<br class="">http://public.kitware.com/mailman/listinfo/insight-users<br class=""></div></blockquote></div><br class=""></div></body></html>