Color space - RGB and YCbCr question
Posted
by HardCoder1986
on Stack Overflow
See other posts from Stack Overflow
or by HardCoder1986
Published on 2010-05-23T14:54:35Z
Indexed on
2010/05/23
15:01 UTC
Read the original article
Hit count: 265
Hello!
I am now trying to understand how JPEG
encoding works and everything seems fine except the color transformation part.
Before attempting to do a DCT
in JPEG
algorithm, the image is transformed into YCbCr
color space. To me this essentially means that we just (comparing to initial RGB
image) take a chunk of color information and dispose it while applying the RGB -> YCbCr
transformation.
So, our encoding steps look generally like RGB -> YCbCr -> DCT -> Huffman
. The decoding means inversing this process.
And my question is - why does the image (for example, created and exported to JPEG
) remain the same in terms of color, although we have to make inverse YCbCr -> RGB
transform. Where does the disposed part of color information comes from or how is it handled?
© Stack Overflow or respective owner