- Parameters
-
| [in] | pc | Input point cloud. |
| [in] | ids | array of length N. Indices of the points in the point cloud pc that should be considered for ransac fit. |
| [in] | N | Length of ids array. |
| [in] | tol | RANSAC tolerance (if error < tol ? inlier, otherwise ? outlier). Error is computed as Euclidean distance from the proposed plane. |
| [in] | iters | Number of RANSAC iterations to perform. |
| [out] | nd | Array of length 4. First 3 elements are unit normal vector of the plane, 4th element is the plane distance from the origin. |
A point (x,y,z) on the plane satisfies nd[0]*x + nd[1]*y + nd[2]*z - nd[3]==0.
- Parameters
-
| [out] | foundInliers | Array of length "return value" with indices in point cloud pc found to be inliers |
- Returns