[ITK-users] [ITK] CommandIterationUpdate optimizer position reporting

Dženan Zukić dzenanz at gmail.com
Sat Apr 29 13:54:09 EDT 2017


Hi Andrew,

different optimizers have different behavior (e.g. small steps vs big
steps), but even the programming interface is not uniform. Some functions
are called differently e.g. maximumSteps vs iterationCount etc. You should
look at the respective examples for each optimizer which you plan to use to
see how iteration tracking is set up.

Regards,
Dženan Zukić, PhD, Senior R&D Engineer, Kitware (Carrboro, N.C.)

On Fri, Apr 28, 2017 at 4:10 PM, Andrew Harris <aharr8 at uwo.ca> wrote:

> Hello,
> I'm attempting to track the movement of images under registration using
> various optimizers.  I have a CommandIterationUpdate observer set up to
> write the optimizer positions to file, and when I use a Gradient Descent or
> Powell optimizer I get a vector for the translation applied using
> optimizer->GetCurrentPosition(), however if I use the LBFGSB optimizer I
> get zero vectors all the way down (it returns the correct result though).
> Is the functionality of GetCurrentPosition() different in the LBFGSB
> optimizer than the others?
>
> --
>
> AH
>
>
> ------------------------------------------------------------
> -----------------------------------
>
> *This email and any attachments thereto may contain private,
> confidential, and privileged materials for the sole use of the intended
> recipient. Any reviewing, copying, or distribution of this email (or any
> attachments thereto) by other than the intended recipient is strictly
> prohibited. If you are not the intended recipient, please contact the
> sender immediately and permanently destroy this email and any attachments
> thereto.*
>
> _____________________________________
> 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.php
>
> 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://public.kitware.com/mailman/listinfo/insight-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/insight-users/attachments/20170429/308b35fa/attachment.html>


More information about the Insight-users mailing list