How to make ROI selection automatic
3 次查看(过去 30 天)
显示 更早的评论
I have a 3d point cloud body with some holes. I would like to use the fitcylinder function in the holes, but to do this i need to select a ROI around the circular shape.
Up to now I manually select the ROI, and it actually work, but I would like to make this selection automatic.
I post the picture of the body i am starting with, but it's geometry could change. It could have a circular shape or irregularity perimeter.
Any idea about how to move on?
roi1 = [0.62,0.67;-0.09,0.11;0.12,0.13];
sampleIndices1 = findPointsInROI(remainPtCloud,roi1);
[ciliner,inlierIndices,outlierIndices,meanError] = pcfitcylinder...
(remainPtCloud,cyltopointMaxDist,'SampleIndices',sampleIndices1)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/201483/image.jpeg)
0 个评论
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Point Cloud Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!