finding a closed region
4 ビュー (過去 30 日間)
古いコメントを表示
i want to find closed regions, whose intensity values are all 255, in an image matrix. is there a function to do it directly or is there another way?
thanks
0 件のコメント
採用された回答
Brett Shoelson
2011 年 2 月 9 日
Create a mask of your regions (blobs). Then use the fourth syntax of REGIONPROPS to specify both the mask and the intensity image. With that syntax, you can calculate the 'PixelValues' of each blob, and use whatever test you want to classify them.
Alternatively, for this simple case, you can request 'MinIntensity' and 'MaxIntensity' properties of the blobs. Then, if min==255 AND max==255, all pixels in the region must be 255.
Cheers,
Brett
0 件のコメント
その他の回答 (1 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!