At a high level, the JPEG encoding algorithm works as follows:
1. The color of each pixel in an image is translated into the YCbCr color space, in which the “Y” component represents the brightness, or “luma” of a pixel, while the “Cb” and “Cr” components encode the hue, or “chroma” of the pixel.
2. In some images, groups of neighboring chroma pixels (usually in 2 x 2 blocks) are averaged together, and only the average chroma of each group is stored. This reduces the number of chroma pixels that need to be encoded, at the expense of lowering the…
Ver o post original 675 mais palavras