I want to find the fork points of a skeleton of an image. I have obtained the skeleton of the image using the bwmorph(binaryImage, 'skel', Inf) function.
John Michell answered .
2025-11-20
skelimage = bwmorph(binaryImage, 'skel', Inf); branchimage = bwmorph(skelimage, 'branchpoints'); %branch (fork) points endimage = bwmorph(skelimage, 'endpoints'); %end points otherimage = skelimage - branchimage - endimage; %points other than branch and end