Help with cropping a binary image?
이전 댓글 표시
I have this binary image:
How do I crop exactly to the outline of the fist?

답변 (1개)
Spandan Tiwari
2014년 2월 8일
0 개 추천
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
Shravanthi
2014년 2월 8일
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(?)?
카테고리
도움말 센터 및 File Exchange에서 Object Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!