My question is about obtain an skeletonized image which borders would reach to the final of the image.
I am trying to measure the length of a binary image, but because the just-skeletonized image does not reach the borders of the binary image there is omited some part of line, it is incomplete.
I bring images of an example measurement with my program (left) and with ImageJ measure (right)
In the 2014 post of "Skeleton extension to object border", there was talked about that, and was bringed the functions used for obtain the distance, which was bwmorph() for obtain the endpoints of the skeletonized image, and then I think with find() or similar obtain the perimetral points of the binary image and draw a line to the shortest point.
I would like to ask about some fashion function or method for obtain that line and distance, because with the method described below we could obtain the line, but not the orientation of that so that if we want to we would have to draw it in a random way.
Thank you very much