<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=4>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=4>I use the PointSetToPointSetRegistrationMethod to
register two point sets. </FONT></DIV>
<DIV><FONT face=Arial size=4>The transform is Bspline, the Metric is ICP and the
Optimizer is LBFGSBOptimizer.</FONT></DIV>
<DIV><FONT face=Arial size=4>However, the error appear in the code:
</FONT></DIV>
<DIV><FONT face=Arial
size=4>registration->SetOptimizer(
optimizer );</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>The error is:</FONT></DIV>
<DIV><FONT face=Arial size=4>cannot convert parameter 1 from 'class
itk::SmartPointer<class itk::LBFGSBOptimizer>' to 'class
itk::MultipleValuedNonLinearOptimizer *'</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>As I know the ICP is a single value function, so
the optimizer should be SingleValuedNonLinearOptimizer. </FONT></DIV>
<DIV><FONT face=Arial size=4>Why does PointSetToPointSetRegistrationMethod use
the MultiValuesNonLinearOptimizer as its optimizer?</FONT></DIV>
<DIV><FONT face=Arial size=4>Which optimizer should I use?</FONT></DIV>
<DIV><FONT face=Arial size=4></FONT> </DIV>
<DIV><FONT face=Arial size=4>Regards,</FONT></DIV>
<DIV><FONT face=Arial size=4>Yixun Liu</DIV>
<DIV><BR></DIV></FONT></BODY></HTML>