[Insight-users] itkOptMattesMutualInformationImageToImageMetric question/problem

Karthik Krishnan karthik.krishnan at kitware.com
Thu May 13 02:56:58 EDT 2010


It depends on the optimizer you are using. Optimizers that require the
gradient, such as the GradientDescentOptimzier, FRPR etc will call
GetValueAndDerivative.

The simplex optimizers, OnePlusOne, SPSA will invoke just GetValue.


On Thu, May 13, 2010 at 7:49 AM, pinpress <sb_ji at yahoo.com> wrote:

>
> Hi all,
>
> I am trying to modify the above class to implement a new image metric for
> image registration. There are two functions in the class:
>
> GetValue()
>
> and
>
> GetValueAndDerivative()
>
> When I connect the metric filter with other filters (e.g., interpolator,
> optimizer, transformer filters), and run the registration, I observed that
> it's always the function "GetValueAndDerivative()" is called, but not the
> "GetValue()". Since I am hoping to keep my implementation as simple as
> possible, I'd like to just modify the "GetValue()" function. So I wonder
> how
> I can force to use "GetValue()" function to return the similarity metric
> instead.
>
> I suspect it's just a flag or something like that to control, but I just
> wasn't able to figure out. Can someone help?
> --
> View this message in context:
> http://old.nabble.com/itkOptMattesMutualInformationImageToImageMetric-question-problem-tp28542979p28542979.html
> Sent from the ITK - Users mailing list archive at Nabble.com.
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20100513/34c99f61/attachment.htm>


More information about the Insight-users mailing list