Filling the objects found by canny edge
古いコメントを表示
Hi, I am trying to find object on the image. I applied some morphological processing and then canny edge function to find the object. However the edge function can only find the boundaries. The probles is how to fill the found objects? Another problem: some object are not fully closed, thus how to close the gaps? Possibly this question has already been answered but I searched the forum and help and I couldnt find solution. To see the image use this link: http://www.uploadup.com/di-HQA6.jpg
I would be grateful for any clues.
採用された回答
その他の回答 (2 件)
Image Analyst
2011 年 12 月 9 日
filledImage = imfill(binaryImage, 'holes');
3 件のコメント
Kasia
2011 年 12 月 9 日
Image Analyst
2011 年 12 月 9 日
So do it twice. The first time will fill the donut and leave the interior hole, and the second time will fill the interior hole.
Image Analyst
2011 年 12 月 9 日
Are you talking about having problem with the blobs that are chopped off by the edge of the image? Is the boundary open at the edge?
Marlene
2011 年 12 月 27 日
Hello Sven,
You can explain to me what exactly does the line of code bwareaopen BW = (all (I> 220,3), 10)? I did not realize this part all(I> 220,3).
Thank's
1 件のコメント
Walter Roberson
2011 年 12 月 27 日
http://www.mathworks.com/help/techdoc/ref/all.html
カテゴリ
ヘルプ センター および File Exchange で Image Segmentation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!