DCT, JPEG and Compression Flashcards

(10 cards)

1
Q

Name two reasons why JPEG uses YCbCr instead RGB

A
  1. YCbCr seperates the brightness information (Y) from the colour information (Cb and Cr).
  2. YCbCr enables retention of essential visual details while reducing data size.
  3. Aligns well with the human eye’s differing sensitivities to luminance and chroma.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Briefly explain how the DC and AC components are encoded in JPEG.

A

DC Coefficients

  1. The DC coefficient exhibits different statistics from the remaining 63 AC coeffcients.
  2. DC coeffs exhibit local correlations so differential coding is used.
  3. Differential coding = difference between current DC coef and previous DC coef.

AC Coefficients

  1. AC components (-1023 1023) are coded as pairs of symbols: (RL, size)(Value)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What do contrast sensitivity graphs tell us about the human sensibility to spatial frequencies? How are they exploited in the JPEG standard?

A
  1. Humans see mid-frequencies best; poor at very low/high ones.
  2. JPEF exploits by keeping low/mid frequencies and discarding high frequencies.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why is the Run length encoding used in image processing? How is this used in JPEG?

A
  1. To get the bit rate < 1, by encoding consecutive zero values.
  2. Used in encoding the AC coefficients.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is differential coding and how is it used in JPEG?

A
  1. Differential coding is used to find the difference between the previous and current DC coeffs.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are Run Length codes? How is this used in JPEG?

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

After having the DCT coefficients on 8x8 blocks, explain how JPEG proceeds to get an encoded bitstream.

A
  1. DCT coefficients are quantised.
  2. Zig-zag scan, which gets high to low frequencies in the block.
  3. DC coeffs -> differential coding.
  4. AC coeffs -> RLE (due to lots of zeros.)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How is the DCT related to JPEG?

A

The 8-point DCT is the basis of the JPEG standard, as well as several other standards.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does the EOB tell you?

A
  1. End of Block
  2. “no need for encoding” zeros afterwards
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Explain what ZRL is.

A

There are 16 zeros after.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly