Help with cropping a binary image?

2 Ansichten (letzte 30 Tage)
Shravanthi
Shravanthi am 8 Feb. 2014
Kommentiert: Anjana Rao am 8 Feb. 2014
I have this binary image:
How do I crop exactly to the outline of the fist?

Antworten (1)

Spandan Tiwari
Spandan Tiwari am 8 Feb. 2014
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 Kommentare
Image Analyst
Image Analyst am 8 Feb. 2014
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 am 8 Feb. 2014
No, I just want the outline! How do I crop it after getting the coordinates? imcrop(?)?

Melden Sie sich an, um zu kommentieren.

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by