Still Image Coding - PowerPoint PPT Presentation

1 / 25
About This Presentation
Title:

Still Image Coding

Description:

Images are meant to be viewed by the human eye (usually) ... The eye has more acuity for luminance (gray scale) than chrominance (color) ... – PowerPoint PPT presentation

Number of Views:46
Avg rating:3.0/5.0
Slides: 26
Provided by: mgba9
Category:
Tags: coding | eye | human | image | still

less

Transcript and Presenter's Notes

Title: Still Image Coding


1
Still Image Coding
  • Scalar quantization (SQ).
  • Vector quantization (VQ).
  • DCT Compression
  • JPEG.
  • Wavelet Compression
  • SPIHT.
  • GTW.
  • EBCOT.
  • JPEG2000.

2
(No Transcript)
3
Why Lossy?
  • Images are meant to be viewed by the human eye
    (usually).
  • The eye is very good at interpolation, that is,
    the eye can tolerate some distortion. So lossy
    compression is not necessarily bad. The eye has
    more acuity for luminance (gray scale) than
    chrominance (color).
  • Gray scale (rods) is more important than color
    (cones).
  • Compression is usually done in the YUV color
    coordinates, Y for luminance and U,V for color.
  • U and V should be compressed more than Y.
  • This is why we will concentrate on compressing
    gray scale (8 bits per pixel) images.

4
Example Color TV
  • Done in YIQ space
  • Y is luminance
  • I and Q are chrominance
  • Y 0.3R 0.59G 0.11B for white light
  • R Y 0.7R 0.59G 0.11B
  • G Y -0.3R 0.41G 0.11B (redundant)
  • B Y -0.3R 0.59G 0.89B

5
Color TV
6
Distortion
  • Lossy compression
  • Measure of distortion is commonly mean squared
    error (MSE). Assume x has n real components
    (pixels).

7
Scalar Quantization
8
Uniform Quantization Example
9
Uniform Quantization Example
10
Non-Uniform Quantization
11
JPEG Standards
  • JPEG - Joint Photographic Experts Group.
  • Current image compression standard.
  • Uses discrete cosine transform, scalar
    quantization, and Huffman coding.
  • JPEG 2000
  • uses wavelet compression.

12
Color Space in JPEG
  • Operates on YCbCr color space, so must convert
    from RBG







13
Principle of Transform Coding
14
The DCT
  • The DCT of a sequence, f(n), for 0 lt n lt N, is
  • Its inverse for 0 lt n lt N, is

15
The DCT
  • For an image, need 2-D DCT
  • Accomplish by doing it along rows, then columns
  • In practice, do along rows, do corner turn, then
    do along rows again.

16
Methodology
  • In practice, DCT applied to blocks of image
    pixels.
  • Typically 8x8 or 16x16.
  • Block coefficients then quantized and coded
    separately.
  • Allows for variable quantization to exploit
    variation in frequency content across image.
  • Image contains regions with different frequency
    properties.
  • We dont know the regions, hence use simple
    blocks.
  • Better than using complete image.

17
DCT Block Diagram
18
DCT Example
  • 8x8 image block

19
DCT Example
  • 8x8 DCT coefficients

20
Step 2 Thresholding Quantization
  • DCT coefficients in each block are thresholded.
  • Only those above threshold retained.
  • Remaining coefficients are quantised.
  • Quantization varied with frequency.
  • High frequencies not so important - coarser
    quantization.

21
Quantization Matrix
  • Thresholding and quantization achieved by using
    quantization matrix.
  • Each coefficient divided by QM element and then
    rounded
  • Elements T(k l) are integers.
  • Represent quantization step size.

22
Quantization Example
23
Encoding
  • zig-zag scan coefficients, starting at (0 0).
  • run length encode, forming symbols (run level)
  • entropy code symbols, eg Huffman
  • Motivation - small magnitudes at higher freqs -
    greater chance of zero runs with zig-zag
    scanning.

24
The JPEG Standard
  • Joint Photographic Experts Group.
  • Describes family of compression techniques for
    continuous tone (mono or color) still images.
  • Allows lossy and lossless coding.
  • Employs block based DCT coding strategy.
  • Four different modes of operation
  • sequential (baseline) mode
  • progressive DCT mode
  • lossless mode
  • hierarchical mode

25
Sequential (Baseline) JPEG
  • Standard DCT block based coding scheme with
    blocks considered in raster scan fashion
    (sequential).
  • Block based DCT 8x8 blocks, with pre - grey
    level shift
  • (remove average reduce redundancy).
  • Quantization
  • thresholding and quantization using block
    dependent QMs.
  • Entropy coding (codeword assignment)
  • AC coefficients zig-zag scan RLE Huffman
    symbol encoding
Write a Comment
User Comments (0)
About PowerShow.com