DCT, JPEG and Compression Flashcards
(10 cards)
Name two reasons why JPEG uses YCbCr instead RGB
- YCbCr seperates the brightness information (Y) from the colour information (Cb and Cr).
- YCbCr enables retention of essential visual details while reducing data size.
- Aligns well with the human eye’s differing sensitivities to luminance and chroma.
Briefly explain how the DC and AC components are encoded in JPEG.
DC Coefficients
- The DC coefficient exhibits different statistics from the remaining 63 AC coeffcients.
- DC coeffs exhibit local correlations so differential coding is used.
- Differential coding = difference between current DC coef and previous DC coef.
AC Coefficients
- AC components (-1023 1023) are coded as pairs of symbols: (RL, size)(Value)
What do contrast sensitivity graphs tell us about the human sensibility to spatial frequencies? How are they exploited in the JPEG standard?
- Humans see mid-frequencies best; poor at very low/high ones.
- JPEF exploits by keeping low/mid frequencies and discarding high frequencies.
Why is the Run length encoding used in image processing? How is this used in JPEG?
- To get the bit rate < 1, by encoding consecutive zero values.
- Used in encoding the AC coefficients.
What is differential coding and how is it used in JPEG?
- Differential coding is used to find the difference between the previous and current DC coeffs.
What are Run Length codes? How is this used in JPEG?
A coding scheme that only encodes consecutive zeros. (i.e. each run of consecutive zero samples in the vector is coded as a single symbol with an associated length)
-13 -5 1 0 0 0 0 0 0 -1
-13, -5, 1, 4x0
After having the DCT coefficients on 8x8 blocks, explain how JPEG proceeds to get an encoded bitstream.
- DCT coefficients are quantised.
- Zig-zag scan, which gets high to low frequencies in the block.
- DC coeffs -> differential coding.
- AC coeffs -> RLE (due to lots of zeros.)
How is the DCT related to JPEG?
The 8-point DCT is the basis of the JPEG standard, as well as several other standards.
What does the EOB tell you?
- End of Block
- “no need for encoding” zeros afterwards
Explain what ZRL is.
There are 16 zeros after.