Help with cropping a binary image?
1 回表示 (過去 30 日間)
古いコメントを表示
I have this binary image:
How do I crop exactly to the outline of the fist?

0 件のコメント
回答 (1 件)
Spandan Tiwari
2014 年 2 月 8 日
Use IMCOMPLEMENT to invert the polarity of the binary images so that the object (fist) is white. Then use BWBOUNDARIES to get the boundary pixels of the object.
3 件のコメント
Image Analyst
2014 年 2 月 8 日
boundaries = bwboundaries(~binaryImage);
but that gets you the outline coordinates of the fist. Is that what you want, or do you want the bounding box?
Anjana Rao
2014 年 2 月 8 日
No, I just want the outline! How do I crop it after getting the coordinates? imcrop(?)?
参考
カテゴリ
Help Center および File Exchange で Image Processing Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!