필터 지우기
필터 지우기

How can I find saturated pixels in an image?

조회 수: 5 (최근 30일)
meghana sampath
meghana sampath 2011년 3월 3일
How can I find saturated pixels in an image?

답변 (2개)

Matt Tearle
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
Jan
Jan 2011년 3월 3일
Or for a [W x H x 3] DOUBLE array as RBG image: idx = all(A == 1, 3);

댓글을 달려면 로그인하십시오.


Tim Zaman
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

카테고리

Help CenterFile Exchange에서 Image Processing Toolbox에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by