Set up initialization in LBFGSOptimizerv4

In LBFGSBOptimizerv4, there is a method called “SetInitialPosition (const ParametersType &param)”. I wonder whether or not in LBFGSOptimizerv4 there is a similar function to set up parameter initialization.

I couldn’t find it here: https://itk.org/Doxygen/html/classitk_1_1LBFGSOptimizerv4.html

Thanks!

In this example, the initial transform is applied to registration method registration->SetInitialTransform( transform );. Looking at the source code, LBFGS takes the initial value of parameters from the metric. You should be able to set that using SetParameters method.