Chapter 4 DIP
Chapter 4 DIP
Chapter 4 DIP
Image Compression
Basic definition of image compression
Image compression is a process applied to a graphics file to
minimize its size in bytes without degrading image quality
below an acceptable threshold.
By reducing the file size, more images can be stored in a given
amount of disk or memory space.
Image compression is typically performed through an
image/data compression algorithm or codec.
Cont..
Typically such codecs/algorithms apply different techniques
to reduce the image size, such as by:
Specifying all similarly colored pixels by the color
name, code and the number of pixels. This way one
pixel can correspond to hundreds or thousands of
pixels.
The image is created and represented using
mathematical wavelets.
Splitting the image into several parts, each identifiable
using a fractal.
Cont..
In the field of Image processing, the compression of
images is an important step before we start the processing
of larger images or videos.
The compression of images is carried out by an encoder
and output a compressed form of an image.
In the processes of compression, the mathematical
transforms play a vital role.
Data Compression Techniques
Two major types of image compression: lossless and lossy
compression.
1. Lossless compression:
The compressed image file can be restored to its original form
perfectly.
in lossless compression, the data is transformed through
encoding, and its size is reduced.
It achieves data reduction without any loss of information,
thus named "lossless".
Lossless Compression is used in Text, images, sound.
Cont..
Formats that utilize lossless compression include PNG, ZIP,
GIF and TIFF.
Algorithms used in Lossless compression are Huffman Coding,
Arithmetic encoding etc.
Lossless Compression does not compromise the data’s quality.
Lossless Compression is also termed as reversible
compression.
2. Lossy compression:
In lossy, the insignificant piece of data is removed to reduce
the size
This method provides even greater data reduction rates. It
eliminates redundant or unnecessary information, resulting in
the loss of some data in the process.
This technique is useful when the loss of data does not greatly
affect the quality of the image.
Lossy compression is used in images, audio, video.
Image formats using include JPG, MP3, AAC.
In Lossy compression, Data’s quality is compromised.
Algorithms used in Lossy compression are: Transform
coding, Discrete Cosine Transform, fractal compression etc.
Lossy Compression is also termed as irreversible compression.
Types Of Data Compression
There are four different types of data compression:
Text compression—primarily uses codes or symbols for patterns and
redundancies; reduces overall size, but information remains unaltered.
Audio compression—eliminates noise to shrink file sizes, but
reduces overall quality.
Image compression—similar to text compression; replaces repeated
color patterns using codes to reduce size.
Video compression—a combination of audio and image
compression, removes unwanted images and background noise to
reduce overall size at the expense of quality.
A flow chart of the process of the compression of the image can be
represented as:
Eg.2
The main goals of bit plane slicing
The three main goals of bit plane slicing is:
Converting a gray level image to a binary image.
Representing an image with fewer bits and corresponding
the image to a smaller size
Enhancing the image by focusing.