I have a skeletonized image in the following shape:
And I want to extract the "largest branch" from the skeleton:
I know that maybe I need to extract the junction point and divide de lines from that point(?), but I have no clue how to do that.
Is there any way to do that with Python Scikit Image or OpenCV?
I believe you can use OpenCV to do the following:
Add a black pixel at all corners
Get all branches in the picture using findContours. Then check the length of each contour using arcLength and get the longest.