<div><br></div>Hi Felix,<div><br></div><div><br></div><div>1) No, the moments calculators, and therefore the CenteredTransformInitializers does</div><div>    not take the masks into account when computing the initialization of the Transform.</div>
<div><br></div><div><br></div><div>2) This could be done by modifying the code of both classes...  The changes will</div><div>    include to add methods SetFixedSpatialObjectMask() SetMovingSpatialObjectMask(),</div><div>
    and inserting if() statements in the main loop that computes the moments.</div><div><br></div><div><br></div><div>When drinking the proper blend of coffee, this could be done in an afternoon,</div><div>and the changes could be submitted to the Insight Journal the following day   :-)</div>
<div><br></div><div>Would you like to attempt these modifications ?</div><div><br></div><div>If so, we will be happy to guide you through the process.</div><div><br></div><div><br></div><div>     Please let us know,</div>
<div><br></div><div><br></div><div>         Thanks</div><div><br></div><div><br></div><div>              Luis</div><div><br></div><div><br><br></div><div>---------------------------------------<br><div class="gmail_quote">
On Mon, Aug 17, 2009 at 4:17 AM, Felix Bollenbeck <span dir="ltr">&lt;<a href="mailto:Felix.Bollenbeck@iff.fraunhofer.de">Felix.Bollenbeck@iff.fraunhofer.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<font face="Default Sans Serif,Verdana,Arial,Helvetica,sans-serif" size="2">Dear ITK users,<br><br>I am using spatial masks to exclude points  (I want to use only certain ROIs) from metric/optimization.<br><br>(Can) is the CenteredTransformInitializer in MomentsOn() mode using the mask passed to the metric?<br>
<br>What would be the best way to calculate Moments using only the masked regions (in the full images coordinates though)?<br> - at the moment I use the masks themselves for calculating the centers, which is not quite the same.<br>
<br>Thanks for your help,<br><font color="#888888"><br>Felix.<br><br><br><br><br><br></font></font><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>
Please keep messages on-topic and check the ITK FAQ at: <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></div>