pcfitsphere
Fit sphere to 3-D point cloud
Syntax
Description
fits a sphere to a point cloud that has a maximum allowable distance from an
inlier point to the sphere. The function returns a geometrical model that
describes the sphere.model
= pcfitsphere(ptCloudIn
,maxDistance
)
This function uses the M-estimator SAmple Consensus (MSAC) algorithm to find the sphere. The MSAC algorithm is a variant of the RANdom SAmple Consensus (RANSAC) algorithm.
[
additionally
returns linear indices to the inlier and outlier points in the point
cloud input.model
,inlierIndices
,outlierIndices
]
= pcfitsphere(ptCloudIn
,maxDistance
)
[___,
additionally
returns the mean error of the distance of inlier points to the model,
using any of the preceding syntaxes.meanError
] =
pcfitsphere(ptCloudIn
,maxDistance
)
[___] = pcfitsphere(___,
specifies options using one or more name-value arguments in addition to any
combination of arguments from previous syntaxes. For example,
Name=Value
)MaxNumTrials=1000
sets the maximum number of random
trials to 1000.
Examples
Input Arguments
Output Arguments
References
[1] Torr, P. H. S. and A. Zisserman. “MLESAC: A New Robust Estimator with Application to Estimating Image Geometry.” Computer Vision and Image Understanding. 2000.
Extended Capabilities
Version History
See Also
pcfitplane
| pcfitcylinder
| pointCloud
| pcplayer
| pcshow
| pcwrite
| pcread
| planeModel
| pcmerge
| pctransform
| pcregistericp
| pcdenoise
| affine3d