Discussion:
[ITK-users] [ITK] CommandIterationUpdate optimizer position reporting
Andrew Harris
2017-04-28 20:10:59 UTC
Permalink
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.*
Dženan Zukić
2017-04-29 17:54:09 UTC
Permalink
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.)
Post by Andrew Harris
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
http://www.kitware.com/products/protraining.php
http://www.itk.org/Wiki/ITK_FAQ
http://public.kitware.com/mailman/listinfo/insight-users
Loading...