Skip to main content
. 2012 Oct 12;12(10):13736–13752. doi: 10.3390/s121013736
Algorithm 1. Algorithm of RANSAC-based plane detection.

FindPlanesRansac

Input: Point cloud G, sampling ratio σ, positive ratio of acceptance ρ, error tolerance ∈, number of iterations k
Output: Set of detected planes N

1 N ← {∅}
2 For i = 1 to k
3 Draw a sample giG and σ samples SiG in the vicinity of gi
4 niBestFitPlane(Si)
5 Pi ← {pG: δ(p, ni) < ε}
6 If |Pi|/|G| > ρ
7 niRefinePlaneICP(Pi, ni, ∈, Pi ←{pG: δ(p, ni) < ε}
8 NN ∪ {ni}, GGPi
9 End If
10 End For