Detect black pixels in a binary image

Hello,
I want to detect the amount (either area, %, or # of pixels) of black in a black and white/ binary image. Attached is an example image that I want to be analyzed.

Respuestas (1)

Walter Roberson
Walter Roberson el 26 de Abr. de 2023

0 votos

imbinarize with foreground polarity dark. Then mean2() * 100

Categorías

Más información sobre Image Processing Toolbox en Centro de ayuda y File Exchange.

Preguntada:

el 26 de Abr. de 2023

Respondida:

el 26 de Abr. de 2023

Community Treasure Hunt

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

Start Hunting!

Translated by