How can I find saturated pixels in an image?
7 ビュー (過去 30 日間)
古いコメントを表示
How can I find saturated pixels in an image?
回答 (2 件)
Matt Tearle
2011 年 3 月 3 日
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 件のコメント
Tim Zaman
2011 年 4 月 6 日
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
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!