Help with cropping a binary image?
조회 수: 2 (최근 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!