I have asked similar questions on stackoverflow; as i couldn't post the very same question in this part of stackexchange. However, i would still like to receive recommendations / advice from this side of stackexchange, so forgive me and correct me if this is not the right place to ask such question.
The image can be seen here!
Problem Scenario
I have a set of images that look like what you see on the left hand column as shown in the above picture. What I am trying to detect/locate is actually the two endpoints that are shown on the right hand column in the above picture. It's quite like locating the "two ends points" of the 'bridge'.
I sincerely would like to seek for your advice and recommendation to achieve such goals. I have applied some basic morphological operations; however, either im doing it wrong or those basic morpological operations aren't working in this scenario. (i have tried making it into skeletons; however, once the skeletons are formed, I can't seem to detect the cross with 3 edges).
Also, would Graph Theory be applicable in this case? If so, how do i detect the end points using Graph Theory?
Thanks very much.
Edits
It looks like the original sets of images cannot be completely generalized like what i'd previously drawn.
i have attached the latest updates to this question. Below is a more detailed representation that includes the original segmented regions and the corresponding images that'd undergone a "thinning" morphological operation. Again, the left side is the originally segmented region; while on the right would be the points to be detected.