In LBFGSBOptimizerv4, there is a method called “SetInitialPosition (const ParametersType ¶m)”. I wonder whether or not in LBFGSOptimizerv4 there is a similar function to set up parameter initialization.
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.