MATLAB: How to get the fork points of a skeleton of an image

branchpointsforkfork pointsImage Processing Toolboxskeletonization

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.

Best Answer

How about?
skelimage = bwmorph(binaryImage, 'skel', Inf);
branchimage = bwmorph(skelimage, 'branchpoints');