matlab code for fill hole algorithem!!! dose any one have it
2 ビュー (過去 30 日間)
古いコメントを表示
hi
i have been use function ""fill hole"" for binary image
dose any one have matlab code for it!!!???
best regards
0 件のコメント
回答 (2 件)
Walter Roberson
2013 年 4 月 26 日
There are multiple algorithms. For example, look up "flood fill"
0 件のコメント
Image Analyst
2013 年 4 月 26 日
For what? For how to use the imfill() function in the Image Processing Toolbox? Or for the source code that it uses?
To use it, you simply do
binaryImage = imfill(binaryImage, 'holes');
If you want to know at a low level what it does, you usually can't get that info since most toolbox m-files are just wrappers that pretty quickly jump into a DLL for which they don't supply source code. You can get similar code by searching on the internet.
If you want how they fill holes in a grayscale image, then Steve gives his source (a book) on this page: http://blogs.mathworks.com/steve/2007/07/26/filling-holes-in-images/
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Image Processing and Computer Vision についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!