Skip to content Skip to navigation

Connexions

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

Navigation

Lenses

What is a lens?

Definition of a lens

Lenses

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

What is in a lens?

Lens makers point to 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 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.

This content is ...

In these lenses

  • eScience, eResearch and Computational Problem Solving

    This module is included inLens: eScience, eResearch and Computational Problem Solving
    By: Jan E. OdegardAs a part of collection: "Image Coding"

    Click the "eScience, eResearch and Computational Problem Solving" link to see all content selected in this lens.

Recently Viewed

This feature requires Javascript to be enabled.
 

A Basic Image Compression Example

Module by: Nick Kingsbury. E-mail the author

Summary: This module gives a basic image compression example.

We shall represent a monochrome (luminance) image by a matrix xx whose elements are xn x n , where n=( n1 n2 ) 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 .

Content actions

Download module as:

PDF | EPUB (?)

What is an EPUB file?

EPUB is an electronic book format that can be read on a variety of mobile devices.

Downloading to a reading device

For detailed instructions on how to download this content's EPUB to your specific device, click the "(?)" link.

| More downloads ...

Add module to:

My Favorites (?)

'My Favorites' is a special kind of lens which you can use to bookmark modules and collections. 'My Favorites' can only be seen by you, and collections saved in 'My Favorites' can remember the last module you were on. You need an account to use 'My Favorites'.

| A lens I own (?)

Definition of a lens

Lenses

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

What is in a lens?

Lens makers point to 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 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