필터 지우기
필터 지우기

Convert RGB Image to YCbCr color space

조회 수: 1 (최근 30일)
Sajina Rose
Sajina Rose 2020년 2월 11일
댓글: Sajina Rose 2020년 2월 12일
YCbCr=rgb2ycbcr(enhancedImg);
Lum=mean2(YCbCr);
Above code produces error like..........
Error using rgb2ycbcr
Expected input number 1, RGB, to be real.
Error in rgb2ycbcr>parse_inputs (line 134)
validateattributes(X,{'uint8','uint16','single','double'},{'real'}, ...
Error in rgb2ycbcr (line 49)
rgb = parse_inputs(varargin{:});
Error in file1 (line 93)
YCbCr=rgb2ycbcr(enhancedImg);
%%%%%please help me
  댓글 수: 4
Rik
Rik 2020년 2월 11일
You could use the real or abs functions, but I don't know if that makes sense for you.
Sajina Rose
Sajina Rose 2020년 2월 12일
Thank you

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Images에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by