how to fill holes in binary image
古いコメントを表示
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
2015 年 8 月 28 日
0 投票
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 件のコメント
Jlavanya 815
2015 年 8 月 28 日
編集済み: Jlavanya 815
2015 年 8 月 28 日
Walter Roberson
2015 年 8 月 28 日
I think you forgot to include the files.
What happened when you tried those routines?
Do you have the Image Processing Toolkit installed?
Jlavanya 815
2015 年 8 月 30 日
Image Analyst
2015 年 8 月 30 日
Like what? There is STILL nothing attached. Did you use the green and brown frame icon to insert your image into your post (what is preferred), or did you use the paper clip icon and forget that you have to click the "Attach file" button after you clicked the Choose File button?
And what code did you try? You also forgot to include that. Did you do this:
skelImage = bwmorph(binaryImage, 'skel', inf);
or did you do something else? We have no idea.
And what is imskull? There is no function like that, though there has been some posts talking about skull stripping in MRI or CT images (search for skull).
Please, please read this before you fix your post again so that we can help you without any further delays.
Jlavanya 815
2015 年 8 月 31 日
編集済み: Walter Roberson
2015 年 8 月 31 日
Image Analyst
2015 年 8 月 31 日
You didn't read that link, did you? How do I know? Because you didn't attach your image and didn't attach your code.
Walter Roberson
2015 年 8 月 31 日
Did you get an error message? If so, what was it?
Did you get a result that was different than what you expected? If so, then you need to attach your input image, and you need to attach your result, and you need to describe what you expected.
Jlavanya 815
2015 年 8 月 31 日
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
2015 年 9 月 1 日
カテゴリ
ヘルプ センター および File Exchange で Morphological Operations についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!