how to fill holes in binary image

조회 수: 4 (최근 30일)
Jlavanya 815
Jlavanya 815 2015년 8월 28일
댓글: Jlavanya 815 2015년 9월 1일
I am new to matlab. I need to represent the image in skeleton form using imskull from morphological operations. I am failing to get the image in skeleton form. Pls help me.

답변 (1개)

Walter Roberson
Walter Roberson 2015년 8월 28일
See http://www.mathworks.com/help/images/ref/bwmorph.html where there is an example of skeletonization. For filling holes, see imfill() with the 'holes' option.
  댓글 수: 10
Walter Roberson
Walter Roberson 2015년 8월 31일
Click on "Comment on this answer". Look just above the comment area. Do you see the row of icons starting with B I Aa ? There is a group of 5 icons, then a space and then the {} Code icon, and then a space, and then a group of 3 icons. Click on the middle of those three icons, the one that has a bit of green inside a brown box. That is the icon to attach an image. When you click it, a dialog will appear to allow you to "Insert an image". Leave the setting as "From my computer" and click on "Choose file". Navigate through you directories and select a file and click to indicate that is the one you want to select. Then go to the bottom of that dialog and click on "Insert Image" to allow your file to be uploaded to Mathworks.
Jlavanya 815
Jlavanya 815 2015년 9월 1일
</matlabcentral/answers/uploaded_files/36448/Capture.JPG> i got skeleton like this. i uesd the below code BW3 = bwmorph(new,'skel',Inf); figure(13),imshow(BW3)

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

Community Treasure Hunt

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

Start Hunting!

Translated by