<br>Hi Sere,<br><br>How are you defining the mask ?<br><br>I would suggest that you use the SpatialObjectToImageMask<br>in order to imprint the mask in the Fixed image and see where<br>it is mapping.<br><br>It is quite likely that your Mask is not covering the pixels<br>
that you think is covering.<br><br>For examples on how to use this filter, please look at;<br><br> Insight/Examples/Filtering/<br> SpatialObjectToImage1.cxx<br> SpatialObjectToImage2.cxx<br>
SpatialObjectToImage3.cxx<br><br><br> Regards,<br><br><br> Luis<br><br><br>-------------------------------------------------------------------------------<br><div class="gmail_quote">On Thu, Jun 17, 2010 at 7:58 AM, sere f <span dir="ltr"><<a href="mailto:serenaf33@gmail.com">serenaf33@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi All,<div><br></div><div>I am registering with 2 images of the head with BSpline Transformation and Mattes MI.</div>
<div><br></div><div>I use the mask to exclude the background so the samples for MI are taken only from the head, but the BSpline grid is defined on all image.</div>
<div>The registered image is not correctly deformed. In particular it appears <span style="font-family: Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(17, 17, 17);">flattened on the top of the image.</span></div>
<div><span style="font-family: Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(17, 17, 17);"><span style="color: rgb(0, 0, 0); font-family: arial; font-size: small;">I have played with the parameters of optimizer but i have the same result.</span></span></div>
<div><font face="arial, Helvetica, sans-serif">When I register without the mask the registered image is good.</font></div><div><font face="arial, Helvetica, sans-serif">Where is the error?</font></div>
<div><font face="arial, Helvetica, sans-serif">any idea?</font></div><div><font face="arial, Helvetica, sans-serif"><br></font></div><div><font face="arial, Helvetica, sans-serif">Thank you for any suggestion.</font></div>
<div><font face="arial, Helvetica, sans-serif"><br></font></div><div><font face="arial, Helvetica, sans-serif">Serena.</font></div><div><span style="font-family: Arial,Helvetica,sans-serif; font-size: 12px; color: rgb(17, 17, 17);"><span style="color: rgb(0, 0, 0); font-family: arial; font-size: small;"> </span></span></div>
<br>_____________________________________<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.html" target="_blank">http://www.kitware.com/products/protraining.html</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://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br>