Count the endpoints in a image
3 views (last 30 days)
Show older comments
![](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 Comments
Rik
on 14 Oct 2020
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.
Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!