Fit plane + Apply Transformation

Feel free to ask any question here
Post Reply
Holg Spre
Posts: 7
Joined: Wed Jul 06, 2016 7:28 am

Fit plane + Apply Transformation

Post by Holg Spre »

I have a randomly oriented (rough) surface, which I want to rotated into the x-y-plane. As I saw there are two options in CC:

1. Use the Tool Fit->Plane and edit the surface by "Apply Transformation" where it is possible to paste the matrix calculated before.
2. Use RANSAC to find the fitting plane and then use the tool "Pick three points to make a cloud or mesh 'level'" on the left column.

Is there any difference in the result? (Tried it once by chance and there was no difference) What RANSAC does is well documented, because the published paper is cited, but do anybody know how CC calculates the transformation vector in the first possibility? Principle Component Analysis (PCA)?

Would be nice to have there some more information, can't find it on wiki!

Thanks! Holg
daniel
Site Admin
Posts: 7717
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: Fit plane + Apply Transformation

Post by daniel »

Indeed the first method uses PCA. The main difference with Ransac is how the points are selected. In the first case you use all the points, while in the other a subset is randomly selected

And mind that you can use the Level tool on any cloud ( you don't need to call Ransac or anything. Level only uses the 3 picked points.
Daniel, CloudCompare admin
Holg Spre
Posts: 7
Joined: Wed Jul 06, 2016 7:28 am

Re: Fit plane + Apply Transformation

Post by Holg Spre »

Thanks a lot for your response! It answered my questions...Cheers, Holg
Post Reply