Filter löschen
Filter löschen

Convert RGB Image to YCbCr color space

1 Ansicht (letzte 30 Tage)
Sajina Rose
Sajina Rose am 11 Feb. 2020
Kommentiert: Sajina Rose am 12 Feb. 2020
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 Kommentare
Rik
Rik am 11 Feb. 2020
You could use the real or abs functions, but I don't know if that makes sense for you.
Sajina Rose
Sajina Rose am 12 Feb. 2020
Thank you

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by