Effacer les filtres
Effacer les filtres

How can I find saturated pixels in an image?

11 vues (au cours des 30 derniers jours)
meghana sampath
meghana sampath le 3 Mar 2011
How can I find saturated pixels in an image?

Réponses (2)

Matt Tearle
Matt Tearle le 3 Mar 2011
idx = all(A==255,3); would give you a logical array that is true at all white pixels (in a uint8 representation).
Otherwise, as Sean asks, what do you mean by "saturated"?
  1 commentaire
Jan
Jan le 3 Mar 2011
Or for a [W x H x 3] DOUBLE array as RBG image: idx = all(A == 1, 3);

Connectez-vous pour commenter.


Tim Zaman
Tim Zaman le 6 Avr 2011
convert to LAB with the RGB2LAB function.. that splits into three components; the dimensions will be [L;A;B]instaed of [R;G;B]... then you could state something like saturation=sqrt(A_component^+B_component^); which will be your level of saturation, then you just set a threshold. more matlab code on that is on http://www.timzaman.nl/?category_name=gen_matlab&lang=en

Catégories

En savoir plus sur Image Processing Toolbox 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