필터 지우기
필터 지우기

Segment nodes in an image

조회 수: 7 (최근 30일)
hu
hu 2013년 10월 19일
댓글: Image Analyst 2013년 10월 22일
Hi,
I am new in image processing and I am trying to learn it by myself using Matlab.
I have a question based on an image I found and attached:
-How can I segment the left image that each node (I am not sure I use the correct terminology) will get different color and number (right image), is it also possible get other information like area in pixels?
Thanks a lot

답변 (2개)

Image Analyst
Image Analyst 2013년 10월 19일
You can skeletonize the image
bwSkel = bwmorph(binaryImage, 'skel', inf);
then find the branchpoints:
bp = bwmorph(bwSkel, 'branchpoints');
then remove them
binaryImage = bwSkel & ~bp;
then label
labeledImage = bwlabel(binaryImage);
That's just off the top of my head - I have not tested it.
  댓글 수: 2
hu
hu 2013년 10월 22일
Unfortunately it does not work
Image Analyst
Image Analyst 2013년 10월 22일
OK, well, keep working at it because the algorithm should work but might need a tweak or two.

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


Yannick
Yannick 2013년 10월 19일
See if this example helps: Measuring Angle of Intersection
Basically, it takes an image in which we want to measure the angle between two straight objects, identifies these objects, then finds the intersection point and the angle between them. Maybe you can use these ideas to find the intersection points / nodes and detect the branches in your image.
And this may help to find areas in pixels: BWAREA.

Community Treasure Hunt

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

Start Hunting!

Translated by