Page 1 of 1

Delimitation of Plans detected by RANSAC

Posted: Mon Oct 31, 2022 2:44 pm
by JoeRid
Hello Everyone, and thank you for giving me the opportunity to join this Forum.
I am working whith the RANSAC function in order to identify plans in a point cloud of a room (inner plans). After entering the different parameters (minimum supported points per primitive, max. distance to primitive, etc.), some plans are identified and created. However, those plans extend well beyond the surface of point clouds to which they correspond. I take the example of an inner corner; the primitives of the two plans extend some metters beyond the corner creating a X instead of a L. And same happens with the openings (doors, big holes, etc.).
So, my question: is there any method to delimit the area of the plans to the boundaries of the area to which they belong?
Many thanks for your kind feedback!

Re: Delimitation of Planes detected by RANSAC

Posted: Tue Nov 01, 2022 3:49 pm
by daniel
Apart from manually segmenting the cloud first, I don't see how to do it... The RANSAC algorithm picks points in a RANdom fashion by definition, and doesn't consider the distances between points (or not that much at least).

Re: Delimitation of Planes detected by RANSAC

Posted: Thu Nov 03, 2022 1:06 pm
by JoeRid
Thank you very much for your kind feedback Daniel,
So, the plans found in RANSAC are always limited as a square, right?
I mean, if there is a wall whose projection in elevation is not a square, like the picture attached, the RANSAC function creates a square plan which containts all the alligned points (total height and total widht) but it doesn't fit to the sloping edges. Do you know any method or any software that could help to delimitate the plan with the actual outline?
Thank you very much in advance.

Re: Delimitation of Plans detected by RANSAC

Posted: Sat Nov 05, 2022 2:35 pm
by daniel
In CloudCompare, once the Ransac SD plugin has detected planes, the plugin also creates individual clouds that correspond to each plane (with the plane entity attached to it). You can select this cloud and fit a 'Facet' (Tools > Fit > 2D Polygon (Facet)). CC will try to detect the contour and it can even extract a concave contour (with you set a small enough 'max edge length'). This 'Facet' entity is composed of a contour (polyline) and a 2D polygon as mesh. This might be helpful to you?
fit_facet.JPG
fit_facet.JPG (182.58 KiB) Viewed 1135 times

Re: Delimitation of Plans detected by RANSAC

Posted: Sun Nov 13, 2022 7:23 am
by JoeRid
Yes, that is exactly what I was looking for!
Thank you very much!!