convert RGB to YCbCr

8 Ansichten (letzte 30 Tage)
Aseel H
Aseel H am 7 Jul. 2012
I need to get three channel(three matrix)= Y, Cb, Cr from convert color imag to ycbcr but: the follow function
RGB = imread(colorimage) ycbcr = rgb2ycbcr(RGB)
give alone one channel(luminance)
  5 Kommentare
Aseel H
Aseel H am 7 Jul. 2012
thanks, Anton
Aseel H
Aseel H am 8 Jul. 2012
can you tell me, how convert RGB to YCbCr integer to integer rgb2ycbcr() give float values.

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Image Analyst
Image Analyst am 8 Jul. 2012
Bearbeitet: Walter Roberson am 8 Jul. 2012
Does the information in the Help help you:
YCBCR = rgb2ycbcr(RGB) converts the truecolor image RGB to the equivalent image in the YCbCr color space. RGB must be a M-by-N-by-3 array.
If the input is uint8, YCBCR is uint8, where Y is in the range [16 235], and Cb and Cr are in the range [16 240]. If the input is a double, Y is in the range [16/255 235/255] and Cb and Cr are in the range [16/255 240/255]. If the input is uint16, Y is in the range [4112 60395] and Cb and Cr are in the range [4112 61680].

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type 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