count how many pixel has value 255 in an image

2 Ansichten (letzte 30 Tage)
Tu Nguyen
Tu Nguyen am 16 Feb. 2022
Bearbeitet: AndresVar am 16 Feb. 2022
The image cameraman, how can we find how many pixel has value of 255? Please help me

Akzeptierte Antwort

KALYAN ACHARJYA
KALYAN ACHARJYA am 16 Feb. 2022
Bearbeitet: KALYAN ACHARJYA am 16 Feb. 2022
data=GrayImage==255;
total_pix=sum(data(:))
  4 Kommentare
Tu Nguyen
Tu Nguyen am 16 Feb. 2022
Thank you, I just use the cameraman as an example. Thank a lot
KALYAN ACHARJYA
KALYAN ACHARJYA am 16 Feb. 2022
@AndresVar Yes, Thanks for adding more.

Melden Sie sich an, um zu kommentieren.

Weitere Antworten (0)

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