[Insight-users] 1D optimization

Kajetan Berlinger kaje at kaje.info
Wed Jun 7 19:19:50 EDT 2006


Kajetan Berlinger wrote:
> Hi,
> 
> does anybody know if it is possible to perform a 2D-2D registration but 
> to concentrate on translation in y direction only? I want to register 
> two images, but the translation in x direction shall not be optimized, 
> only the y direction.
> 
> Thanks a lot!
> 
> Kaj
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 


The solution is to use the optimizer scales. Very simple! Thanks to Ben!

OptimizerType::ScalesType optimizerScales(2);
optimizerScales[0] = 1e+15;
optimizerScales[1] = 1;
optimizerB->SetScales( optimizerScales );

cu
Kaj


More information about the Insight-users mailing list