将圆柱体与三维点云拟合
将圆柱体与从嵌套点到圆柱体的最大允许距离的点云相匹配。该函数使用m估计样本一致性(MSAC)算法来寻找柱体。模型
= pcfitcylinder(ptcloudin
,Maxdistance.
)
使用由1×3参考方向输入向量指定的附加取向约束将气缸拟合到点云。模型
= pcfitcylinder(ptcloudin
,Maxdistance.
,参考矢量
)
另外指定允许的最大绝对角距离。模型
= pcfitcylinder(ptcloudin
,Maxdistance.
,参考矢量
,maxAngularDistance
)
[
另外,返回点云输入中的内嵌点和离群点的线性索引。模型
,inlierIndices
,uterierindices
) = pcfitcylinder (ptcloudin
,Maxdistance.
)
[___,
另外返回Inlier点到模型的距离的平均误差。meanError
) = pcfitcylinder (ptcloudin
,Maxdistance.
)
该函数返回描述圆柱体的几何模型。该函数使用m估计样本一致性(MSAC)算法来寻找柱体。MSAC算法是RANdom SAmple Consensus (RANSAC)算法的一种变体。
拟合算法pcfitcylinder
函数需要点云法线。因此,如果正常的
属性为空时,函数将填充它。当函数填充正常的
属性,它使用6个点来适合本地圆柱体。如果六个点不工作和拟合失败,考虑调用Pcnormals.
功能使您能够选择要使用的点数。
Torr, P. H. S.和A. Zisserman。“MLESAC:一种新的用于估计图像几何的鲁棒估计器”。计算机视觉与图像理解.78卷,第1期,2000年4月,138-156页。
affine3d
|Cylindermodel.
|pcdenoise.
|pcfitplane
|PCFitsphere.
|PCMerge.
|pcplayer
|pcread
|pcregistericp
|pcshow.
|pctransform.
|PCWRITE.
|PlaneModel.
|pointcloud.