<br>Hi Luis,<div><br></div><div><br></div><div>Yes, I suppose that would work. But, my input images happen to be in the form of pointsets/meshes, so I&#39;d require a PointsetToPointset metric (in the case that I don&#39;t want to convert the mesh into an image) right?</div>
<div><br></div><div>And another thing I&#39;d like to be clear on is how the cost function is passed to the optimizer. I believe the metric does that function but where does the metric get the cost function from? I mean the metric just calculates a similarity measure right? Whereas, the cost function might be an energy function that has to be minimized.</div>
<div>for eg:- the levenbergmarquardt optimizer has a member function called setcostfunction(MultipleValuedCostFunction* costFunction), but it doesn&#39;t seem to have been used in the IterativeClosestPoint2.cxx. In the case that this member function is used what (type) would the argument have to be?</div>
<div><br></div><div>Thanks for your help</div><div>Lisa</div><div><br></div>