Skip to content Skip to navigation

Connexions

You are here: Home » Content » A Basic Image Compression Example

Navigation

Content Actions

  • Download module PDF
  • Add to ...
    Add the module to:
    • My Favorites
    • A lens
    • An external social bookmarking service
    • My Favorites (What is 'My Favorites'?)
      'My Favorites' is a special kind of lens which you can use to bookmark modules and collections directly in Connexions. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need a Connexions account to use 'My Favorites'.
    • A lens (What is a lens?)

      Definition of a lens

      Lenses

      A lens is a custom view of Connexions content. You can think of it as a fancy kind of list that will let you see Connexions through the eyes of organizations and people you trust.

      What is in a lens?

      Lens makers point to Connexions materials (modules and collections), creating a guide that includes their own comments and descriptive tags about the content.

      Who can create a lens?

      Any individual Connexions member, a community, or a respected organization.

      What are tags? tag icon

      Tags are descriptors added by lens makers to help label content, attaching a vocabulary that is meaningful in the context of the lens.

    • External bookmarks
  • E-mail the author
  • Rate this module (How does the rating system work?)

    Rating system

    Ratings

    Ratings allow you to judge the quality of modules. If other users have ranked the module then its average rating is displayed below. Ratings are calculated on a scale from one star (Poor) to five stars (Excellent).

    How to rate a module

    Hover over the star that corresponds to the rating you wish to assign. Click on the star to add your rating. Your rating should be based on the quality of the content. You must have an account and be logged in to rate content.

    (0 ratings)

Recently Viewed

This feature requires Javascript to be enabled.

A Basic Image Compression Example

Module by: Nick Kingsbury

Summary: This module gives a basic image compression example.

Note: Your browser may not currently support MathML. See our browser support page for additional details. You can always view the correct math in the PDF version.

We shall represent a monochrome (luminance) image by a matrix xx whose elements are xn x n , where n=n1n2 n n1 n2 is the integer vector of row and column indexes. The energy of xx is defined as

Energy of x=nx2n Energy of x n x n 2 (1)
where the sum is performed over all nn in xx.

Figure 1: The basic block diagram of an image coding system.
Figure 1 (figure1.png)

Figure 1 shows the main blocks in any image coding system. The decoder is the inverse of the encoder. The three encoder blocks perform the following tasks:

  • Energy compression - This is usually a transformation or filtering process which aims to concentrate a high proportion of the energy of the image xx into as few samples (coefficients) of yy as possible while preserving the total energy of xx in yy. This minimises the number of non-zero samples of yy which need to be transmitted for a given level of distortion in the reconstructed image x ^ x ^ .
  • Quantisation - This represents the samples of yy to a given level of accuracy in the integer matrix qq. The quantiser step size controls the tradeoff between distortion and bit rate and may be adapted to take account of human visual sensitivities. The inverse quantiser reconstructs y ^ y ^ , the best estimate of yy from qq.
  • Entropy coding - This encodes the integers in qq into a serial bit stream dd, using variable-length entropy codes which attempt to minimise the total number of bits in dd, based on the statistics (PDFs) of various classes of samples in qq.
The energy compression / reconstruction and the entropy coding / decoding processes are normally all lossless. Only the quantiser introduces loss and distortion: y ^ y ^ is a distorted version of yy, and hence x ^ x ^ is a distorted version of xx. In the absence of quantisation, if y ^ =y y ^ y , then x ^ =x x ^ x .

Comments, questions, feedback, criticisms?

Send feedback