finding the endpoints of an skeleton

This topic has been permanently closed and transferred to MATLAB Answers.


I have a skeleton and i want to find the start and end point of that skeleton. My skeleton is like an oval/donut where there is little gap between the start and end