Take a look at the source code of the metric and subclass it. Add teh ability to specify a weight image for the fixed and moving images and scale the difference and derivative by the queried weight voxels from the fixed weight image and from the transformed location on the moving weight image.<br>
<br>If you are using mean squares metric, this should be equivalent to multiplying the fixed and moving images by their weight images and performing registration on the resulting weighted images. The Value would end up being scaled by the weight. The Derivative would end up getting scaled by Weight^2.<br>
<br>--<br>karthik<br><br><div class="gmail_quote">On Tue, Feb 15, 2011 at 2:43 PM, lpaul <span dir="ltr"><<a href="mailto:l.paul@uclouvain.be">l.paul@uclouvain.be</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;">
<br>
Hi all,<br>
<br>
I am using the ImageToImageRegistration for a while and I would like to<br>
improve the computation to target some particular regions into the volume.<br>
Typically, I some regions should be preponderant in the computation of the<br>
metric. Is it possible to give some weights to the voxels belonging to these<br>
zones?<br>
Is there already something that does the job in ITK?<br>
Any suggestion on implementing this in an inherited class from MeanSquares<br>
metric?<br>
<br>
Thanks, Laurent.<br>
--<br>
View this message in context: <a href="http://itk-insight-users.2283740.n2.nabble.com/Weights-during-registration-and-meansquares-metric-tp6026795p6026795.html" target="_blank">http://itk-insight-users.2283740.n2.nabble.com/Weights-during-registration-and-meansquares-metric-tp6026795p6026795.html</a><br>
Sent from the ITK Insight Users mailing list archive at Nabble.com.<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>
</blockquote></div><br>