<div dir="ltr">Hello Brad,<div><br></div><div>Yes Registration is working fine if I remove mask.</div><div><br></div><div>Currently, I am using only one mask.</div><div><br></div><div>I am using Centered Rigid2D Transform.</div><div><br></div><div>Error occurs when registration->Update() is called and yes I am using iteration callbacks.</div><div><br></div><div>Best Regards,</div><div>Suneeza</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 9, 2016 at 6:58 PM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hello,<div><br></div><div>Does you registration work without utilizing the mask? Are you trying to use 2 or 1 mask?</div><div><br></div><div>How did you initialize your transforms?</div><div><br></div><div>When does this error occur? Do you have iteration callbacks? </div><div><br></div><div>Brad</div><div><div class="h5"><div><br></div><div><br><div><blockquote type="cite"><div>On Mar 9, 2016, at 12:49 PM, suneeza hanif <<a href="mailto:suneezahanif02@gmail.com" target="_blank">suneezahanif02@gmail.com</a>> wrote:</div><br><div><div dir="ltr"><span style="background-color:rgb(243,243,243)">Hello </span><span style="font-size:12.8px;white-space:nowrap">Dženan,</span><div><span style="font-size:12.8px;white-space:nowrap"><br></span></div><div><span style="font-size:12.8px;white-space:nowrap">Thank you for your response.</span></div><div><div><span style="font-size:12.8px;white-space:nowrap"><br></span></div><div><span style="font-size:12.8px;white-space:nowrap">I have tried with larger mask but I get same error.</span></div><div><span style="font-size:12.8px;white-space:nowrap"><br></span></div><div><span style="font-size:12.8px;white-space:nowrap">Secodly, when I use </span><span style="font-family:'normal arial',sans-serif;line-height:20px;background-color:rgb(243,243,243)">itk::ImageSpatialObject instead of</span><span style="font-family:'normal arial',sans-serif;line-height:20px;background-color:rgb(243,243,243)"> 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><span style="font-family:'normal arial',sans-serif;line-height:20px;background-color:rgb(243,243,243)"><br></span></div><div><font face="normal arial, sans-serif"><span style="line-height:20px;background-color:rgb(243,243,243)">Best Regards,</span></font></div><div><font face="normal arial, sans-serif"><span style="line-height:20px;background-color:rgb(243,243,243)">Suneeza</span></font></div><div><span style="line-height:20px;background-color:rgb(243,243,243)"><font face="normal arial, sans-serif"><div><br></div></font></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 9, 2016 at 6:39 PM, Dženan Zukić <span dir="ltr"><<a href="mailto:dzenanz@gmail.com" target="_blank">dzenanz@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><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></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></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div>On Wed, Mar 9, 2016 at 11:10 AM, suneeza hanif <span dir="ltr"><<a href="mailto:suneezahanif02@gmail.com" target="_blank">suneezahanif02@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hello Everyone,<div><br></div><div>I have problem while applying spatial masking.</div><div><br></div><div>When I apply spatial mask I get this error.</div><div><br></div><div><i>"<span style="line-height:115%">itk::ExceptionObject (0038D8CC)</span></i></div><p class="MsoNormal"><i><a name="-1070438947_-1098806096_428763459__GoBack"></a></i></p><p class="MsoNormal"><span lang="EN-US" style="line-height:115%"><i>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%"><i><br></i></span></p><p class="MsoNormal"><span lang="EN-US" style="line-height:115%"><i>File:
c:\itk\src\modules\registration\metricsv4\include\itkImageToImageMetricv4.hxx</i></span></p><p class="MsoNormal"><span lang="EN-US" style="line-height:115%"><i>Line:
532</i></span></p><p class="MsoNormal"><span lang="EN-US" style="line-height:115%"><i>Description:
itk::ERROR: MattesMutualInformationImageToImageMetricv4(060914C0):</i></span></p>
<div><i><span style="line-height:115%">Fixed
Sample point set is empty.</span>"</i></div><div><i><br></i></div><div>Does anyone know how to solve this?</div><div><br></div><div>Best Regards,</div><div>Suneeza</div></div>
<br></div></div>_____________________________________<br>
Powered by <a href="http://www.kitware.com/" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">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" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
_____________________________________<br>Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br><br>Visit other Kitware open-source projects at<br><a href="http://www.kitware.com/opensource/opensource.html" target="_blank">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" target="_blank">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" target="_blank">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" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br></div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>