Image Processing and Compression Techniques
Image Processing and Compression Techniques
Image Processing and Compression Techniques
COMPRESSION TECHNIQUES
Abstract:
An image defined in the "real world" is considered to be a
function of two real variables say x,y.
Before going to processing an image, it is converted into
a digital form. Digitization includes sampling of image and
quantization of sampled values.After converting the image into bit
information, processing is performed.This processing technique
may be,
1. Image enhancement
2. Image reconstruction
3. Image compression
Basic definitions:
An image defined in the "real world" is considered to be a
function of two real variables, for example, a(x,y) with a as the
amplitude (e.g. brightness) of the image at the real coordinate
position (x,y).An image may be considered to contain sub-
images sometimes referred to as regions-of-interest, ROIs, or
simply regions. This concept reflects the fact that images
frequently contain collections of objects each of which can be the
basis for a region. In a sophisticated image processing system it
should be possible to apply specific image processing
operations to selected regions. Thus one part of an image
(region) might be processed to suppress motion blur while
another part might be processed to improve
color rendition.
Sequence of image processing:
Sampling theorem:
A bandlimited image is sampled uniformly on a rectangular grid
with spacing dx,dy can be recovered without error from the
sample values f (mdx,ndy) provided the sampling rate is greater
than nyquist rate, that is
Image quantization:
The step subsequent to sampling in image digitization is
quantization. A quantizer maps a continuous variable u into a
discrete variable u1, which takes values from a finite set
{r1, r2… rn} of numbers. This mapping is generally a
staircase function & quantization rule is as follows:
1. Image enhancement:
It refers to accentuation, or sharpening, of image features
such as boundaries, or contrast to make a graphic display more
useful for display & analysis. This process does not increase the
inherent information content in data.It includes gray level &
contrast manipulation, noise reduction, edge crispening
and sharpening, filtering, interpolation and magnification,
pseudocoloring, and so on.
2. Image restoration:
Lossless compression:
In this, data is not altered in process of compression or
decompression.Decompression generates an exact replica of an
original image. “Text compression” is a good example.
Spreadsheets, processor files usually contain repeated
sequence of characters. By reducing repeated characters to
count, we can reduce requirement of bits.
Grayscale&images contain repetitive information .this
repetitive graphic images and sound allows replacement of bits
by codes. In color images, adjacent pixels can have different
color values. These images do not have sufficient repetitiveness
to be compressed. In these cases, this technique is not
applicable.
Lossless compression techniques have been able to
achieve reduction in size in the range from 1/10 to1/50 of
original uncompressed size.
Packbit encoding:
In this, a consecutive repeated string of characters is replaced
by two bytes.
First byte=no of times the character is repeated.
Second byte=character itself.
For e.g., 0000001111110000 is represented as
Byte1, byte2, byte3… byteN.0x06, 1x06, 0x04.
In some cases, one byte is used to represent both value of
character & also no of times.
I In this, one bit out of 8 used for representing pixel value, 7
bits are for runlength. Typical compression efficiency is from
½ to1/5.
CCITT Group 3 1D:
Huffman coding is used.
GRAYSCALE,COLOR IMAGE&
STILIMAGE COMPRESSION:
Quantization:
Baseline JPEG algorithm supports 4 quantization tables & 2
Huffman tables for
DCand AC DCT coefficients.
Quantizedcoeff (i, j) =DCT (i, j)/quantum (i, j);
DCTcoefficients after quantization:
After quantization, JPEG elected to compress 0 values by utilizing
runlength scheme.To find no of 0s, JPEG uses zigzag manner.