Circle
Circle¶
class Circle():
| Circle()
Implementation for Circle RANSAC.
This class finds the circle's parameters based on 3 sampled points. This method uses 3 points to find the circle's plane, center and radius.
fit¶
| fit(pts, thresh=0.2, maxIteration=1000)
Find the parameters (axis and radius and center) to define a circle.
Arguments:
pts
: 3D point cloud as a numpy array (N,3).thresh
: Threshold distance from the cylinder hull which is considered inlier.maxIteration
: Number of maximum iteration which RANSAC will loop over.
Returns:
center
: Center of the circle np.array(1,3) which the circle center is passing through.axis
: Vector describing circle's plane normal as np.array(1,3).radius
: Radius of the circle.inliers
: Inlier's index from the original point cloud.