<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"><<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>></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>
<<a href="mailto:sureerat.r@gmail.com">sureerat.r@gmail.com</a>> wrote:<br>
> Dear ITK,<br>
><br>
> I have using ITK to develop and learn image registration. Currently,<br>
> I am trying to incorporate penalty term into B-spline registration. I create<br>
> a class (called itk::ImageToImageMultiMetric) derived from<br>
> itk::ImageToImageMetric<br>
> to add the normal similarity metric (like MSE or MI) and the penalty term.<br>
> I need to override some functions in itk::ImageToImageMetric. Nearly all of<br>
> the<br>
> functions can be overriden except SetFixedImageRegion(). I currently just<br>
> work around it.<br>
> I wonder whether it is possible to make the function 'virtual' so I can<br>
> easily override it<br>
> and reduce the current complicated work-around.<br>
><br>
> Thank you very much,<br>
><br>
> Best regards,<br>
><br>
> Sureerat<br>
><br>
</div></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://www.itk.org/mailman/listinfo/insight-users" target="_blank">http://www.itk.org/mailman/listinfo/insight-users</a><br>
><br>
</blockquote></div><br></div>