<div dir="ltr"><div>Dear Matt,</div><div> </div><div>   Thank you for your suggestion. I will submit a patch.</div><div>I used to look at the v4 version but without document,</div><div>it is quite challenging. Hopefully, ITK document for v4</div>
<div>is released some time soon.</div><div> </div><div>Thank you very much again,</div><div> </div><div>Best regards,</div><div> </div><div>Sureerat</div><div> </div><div> </div><div> </div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Jul 22, 2013 at 11:20 AM, Matt McCormick <span dir="ltr">&lt;<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi Sureerat,<br>
<br>
The v4 RegistrationMethods have a more flexible image domain<br>
specification framework -- creating new methods of the v4 versions may<br>
be able to perform as you would like.<br>
<br>
However, if you are using ImageRegistrationMethod and need that method<br>
virtual, you are encouraged to submit a patch as explained here:<br>
<br>
   <a href="http://insightsoftwareconsortium.github.io/ITKBarCamp-doc/CommunitySoftwareProcess/SubmitAPatchToGerrit/index.html" target="_blank">http://insightsoftwareconsortium.github.io/ITKBarCamp-doc/CommunitySoftwareProcess/SubmitAPatchToGerrit/index.html</a><br>

<br>
Thanks,<br>
Matt<br>
<div><div class="h5"><br>
On Mon, Jul 22, 2013 at 2:43 PM, Sureerat Reaungamornrat<br>
&lt;<a href="mailto:sureerat.r@gmail.com">sureerat.r@gmail.com</a>&gt; wrote:<br>
&gt; Dear ITK,<br>
&gt;<br>
&gt;    I have using ITK to develop and learn image registration. Currently,<br>
&gt; I am trying to incorporate penalty term into B-spline registration. I create<br>
&gt; a class (called itk::ImageToImageMultiMetric) derived from<br>
&gt; itk::ImageToImageMetric<br>
&gt; to add the normal similarity metric (like MSE or MI) and the penalty term.<br>
&gt; I need to override some functions in itk::ImageToImageMetric. Nearly all of<br>
&gt; the<br>
&gt; functions can  be overriden except SetFixedImageRegion(). I currently just<br>
&gt; work around it.<br>
&gt; I wonder whether it is possible to make the function &#39;virtual&#39; so I can<br>
&gt; easily override it<br>
&gt; and reduce the current complicated work-around.<br>
&gt;<br>
&gt; Thank you very much,<br>
&gt;<br>
&gt; Best regards,<br>
&gt;<br>
&gt; Sureerat<br>
&gt;<br>
</div></div>&gt; _____________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Kitware offers ITK Training Courses, for more information visit:<br>
&gt; <a href="http://www.kitware.com/products/protraining.php" target="_blank">http://www.kitware.com/products/protraining.php</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ITK FAQ at:<br>
&gt; <a href="http://www.itk.org/Wiki/ITK_FAQ" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
&gt;<br>
</blockquote></div><br></div>