Count the endpoints in a image
3 次查看(过去 30 天)
显示 更早的评论
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/379941/image.png)
How to count the number of endpoints as marked in this image.
I tried with bwmorph(endpoints). But my output is like this.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/379946/image.png)
5 个评论
Rik
2020-10-14
You could try imclose to close the gaps and smoothen your mask. Another possibility is to modify your initial mask creation.
Side note: if you want help with your specific images you will have to attach the originals.
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!