Image_compression
Image_compression
IMAGE COMPRESSION
Introduction and Overview
✓The need to store and transmit images will continue to increase
faster than the available capability to process all the data.
✓ After the 2-D methods are developed, they are often extended to video
(motion imaging)
✓ Image compression involves reducing the size of image data files, while
retaining necessary information
✓ Retaining necessary information depends upon the application
✓ Image segmentation methods, which are primarily a data reduction process, can
✓ The reduced file created by the compression process is called the compressed file
✓ The ratio of the original, uncompressed image file and the compressed file is
enormous.
Example 3
✓For high quality images the required resolution can be much higher
Example 4:
▪ Lossless data compression is used to compress the files without losing an original file's
quality and data. Simply, we can say that in lossless data compression, file size is reduced,
but the quality of data remains the same.
▪ The main advantage of lossless data compression is that we can restore the original data in
its original form after the decompression.
3. Huffman Coding
4. Arithmetic Coding
2. Lossy compression methods:
• Lossy data compression is used to compress larger files into smaller
files.
• In this compression technique, some specific amount of data and
quality are removed (loss) from the original file.
• It takes less memory space from the original file due to the loss of
original data and quality.
• This technique is generally useful for us when the quality of data is not
our first priority. Used in .jpeg format.
Some of the most important lossless data compression techniques are :
1. Transform Coding
2. Discrete Cosine Transform (DCT)
3. Discrete Wavelet Transform (DWT)
▪ Compression algorithms are developed by taking advantage of the
redundancy that is inherent in image data
▪ Four primary types of redundancy that can be found in images are:
➢ Coding
➢ Interpixel
➢ Interband
➢ Psychovisual redundancy
▪ Coding: Involves mapping the discrete data from the quantizer onto
a code in an optimal manner.
Total bits=43×8=???
Variations
Huffman Coding:
• Error-free compression.
The simplest construction algorithm uses a priority queue where the node with
lowest probability is given highest priority:
1. Create a leaf node for each symbol and add it to the priority queue.
i. Remove the two nodes of highest priority (lowest probability) from the
queue.
ii. Create a new internal node with these two nodes as children and with
probability equal to the sum of the two nodes' probabilities.
iii. Add the new node to the queue.
3. The remaining node is the root node and the tree is complete.
Create Huffman Codes and average code length
7
Is this true?????