count how many pixel has value 255 in an image

9 vues (au cours des 30 derniers jours)
Tu Nguyen
Tu Nguyen le 16 Fév 2022
Modifié(e) : AndresVar le 16 Fév 2022
The image cameraman, how can we find how many pixel has value of 255? Please help me

Réponse acceptée

KALYAN ACHARJYA
KALYAN ACHARJYA le 16 Fév 2022
Modifié(e) : KALYAN ACHARJYA le 16 Fév 2022
data=GrayImage==255;
total_pix=sum(data(:))
  4 commentaires
Tu Nguyen
Tu Nguyen le 16 Fév 2022
Thank you, I just use the cameraman as an example. Thank a lot
KALYAN ACHARJYA
KALYAN ACHARJYA le 16 Fév 2022
@AndresVar Yes, Thanks for adding more.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Computer Vision with Simulink dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by