Convert RGB Image to YCbCr color space

2 次查看(过去 30 天)
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.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Convert Image Type 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by