Help with cropping a binary image?

조회 수: 2 (최근 30일)
Shravanthi
Shravanthi 2014년 2월 8일
댓글: Anjana Rao 2014년 2월 8일
I have this binary image:
How do I crop exactly to the outline of the fist?

답변 (1개)

Spandan Tiwari
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
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
Anjana Rao 2014년 2월 8일
No, I just want the outline! How do I crop it after getting the coordinates? imcrop(?)?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by