Extract objects from binary image

1 visualización (últimos 30 días)
Yoav weber
Yoav weber el 18 de Abr. de 2021
Editada: Yoav weber el 18 de Abr. de 2021
Hey,
I am looking for a way to extrac objects from an binary image.
For example, Given the following image, I am looking for a way to get the matrix of the area of each of those 3 big objects.
Thank you in advance.

Respuestas (1)

Matt J
Matt J el 18 de Abr. de 2021
Editada: Matt J el 18 de Abr. de 2021
Something like this perhaps,
BW=bwareafilt(~yourBinarizedImage,3);
regions=regionprops(BW,'Image');
  3 comentarios
Matt J
Matt J el 18 de Abr. de 2021
Editada: Matt J el 18 de Abr. de 2021
Depending on what "matrix of the area" means... To me, it sounds like the sub-image containing the bounding box of the regions.
Walter Roberson
Walter Roberson el 18 de Abr. de 2021
I would interpret it as a single matrix containing all three areas.
Areas = [regions.Area];

Iniciar sesión para comentar.

Community Treasure Hunt

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

Start Hunting!

Translated by