How do I get the fork points of a skeleton of an image?

조회 수: 9 (최근 30일)
Soumyajit Pal
Soumyajit Pal 2016년 2월 24일
댓글: Soumyajit Pal 2016년 3월 21일
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.

채택된 답변

Guillaume
Guillaume 2016년 2월 24일
How about?
skelimage = bwmorph(binaryImage, 'skel', Inf);
branchimage = bwmorph(skelimage, 'branchpoints');
  댓글 수: 6
Guillaume
Guillaume 2016년 3월 21일
"A skeleton point having more than two adjacent points is called a fork point": bwmorph calls this a branch point.
"Every point which is not an endpoint or fork point": these are just a normal segment point. It does not have a particular name, and I don't see why you'd call them branch point. If you want to obtain these, it's just the skeleton point minus the end and branch points:
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
Soumyajit Pal
Soumyajit Pal 2016년 3월 21일
Thank you so very much Guillaume.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by