Azzera filtri
Azzera filtri

count how many pixel has value 255 in an image

1 visualizzazione (ultimi 30 giorni)
The image cameraman, how can we find how many pixel has value of 255? Please help me

Risposta accettata

KALYAN ACHARJYA
KALYAN ACHARJYA il 16 Feb 2022
Modificato: KALYAN ACHARJYA il 16 Feb 2022
data=GrayImage==255;
total_pix=sum(data(:))
  4 Commenti
Tu Nguyen
Tu Nguyen il 16 Feb 2022
Thank you, I just use the cameraman as an example. Thank a lot

Accedi per commentare.

Più risposte (0)

Community Treasure Hunt

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

Start Hunting!

Translated by