How to transform a broken line into a simple line with the same length?
1 次查看(过去 30 天)
显示 更早的评论
Just as the question title shows, I want to convert a broken line into a line with same length.The example image is here.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/149756/image.png)
The image is skel of a object and is obtained by using the function bwmorph(, 'skel', Inf).The red star points in the image are the branch points. The yellow points denote the endpoints of the branches.
What should I do to turn the spine which has the red star points into line with same length and keep the relative position of the yellow points?
Any suggestion or clue?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Image Segmentation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!