Help with cropping a binary image?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
I have this binary image:
How do I crop exactly to the outline of the fist?
0 comentarios
Respuestas (1)
Spandan Tiwari
el 8 de Feb. de 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 comentarios
Image Analyst
el 8 de Feb. de 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
el 8 de Feb. de 2014
No, I just want the outline! How do I crop it after getting the coordinates? imcrop(?)?
Ver también
Categorías
Más información sobre Image Processing Toolbox en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!