[vtkusers] icp prblem compile
David Doria
daviddoria at gmail.com
Mon Aug 8 10:09:42 EDT 2011
On Mon, Aug 8, 2011 at 10:07 AM, raimi87 <amich.randa at gmail.com> wrote:
> hi i try to compile the example of "IterativeClosestPointTransform." but it
> doesn't work how could i fix it ?
> vtkSmartPointer<vtkIterativeClosestPointTransform> icp =
> vtkSmartPointer<vtkIterativeClosestPointTransform>::New();
> icp->SetSource(source);
> icp->SetTarget(target);
> //icp->GetLandmarkTransform()->SetModeToRigidBody();
> icp->SetMaximumNumberOfIterations(40);
> icp->SetMaximumNumberOfLandmarks(source->GetNumberOfPoints());
> icp->SetCheckMeanDistance(1);
> icp->SetMaximumMeanDistance(0.0000001);
> icp->GetLandmarkTransform()->SetModeToRigidBody();
> icp->Modified();
> icp->Update();
What do you mean "doesn't work"? Did you try this?
http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filters/IterativeClosestPointsTransform
David
More information about the vtkusers
mailing list