[vtkusers] About vtkIterativeClosestPointTransform
Yang Shen
yangshen at x263.net
Thu Nov 3 12:54:45 EST 2005
Hi,
I am trying to use vtkIterativeClosestPointTransform, but an error
(Unhandled exception at 0x009daa20 in Registration.exe: 0xC0000005: Access
violation reading location 0xeab7c030.) occurs when method Update() of this
class is called.
I don't know how to deal with this problem. Is there any thing I have
missed? Any help will be appreciated.
Yang Shen
PS. The code fragment:
...
vtkIterativeClosestPointTransform *icp =
vtkIterativeClosestPointTransform::New();
icp->SetSource(data1);
icp->SetTarget(data2);
icp->SetCheckMeanDistance(true);
icp->SetMaximumMeanDistance(0.001);
icp->SetMaximumNumberOfIterations(3000);
icp->SetMaximumNumberOfLandmarks(800);
icp->StartByMatchingCentroidsOff();
icp->Update(); // a memory error occurs here
...
More information about the vtkusers
mailing list