SlideShare a Scribd company logo
Ms.Vishwakarma Payal Rambali
Shailkumari
M.Sc.(Computer Science)-II
Roll No : 05
Outline
2
Introduction
What is Image ?
Digital Image Processing .
Advantage & Disadvantages .
Fundamental Steps in DIP .
Fundamentals
Data Compression & Data Redundancy.
Types of Data Redundancy .
Fidelity Criteria .
Image Compression Models .
Error Free Compression .
Variable Length Coding
LZW
Introduction
What is an Image ?
The world around us is 3D while the image obtain through a camera
is 2D,Hence an image can be defined as “A 2D representation of 3D
world. ”
Types of Images
1. Analog : An analog image can be represented as continuous
range of value representing position and intensity.
2. Digital : It is composed of picture element called pixel.
3
Digital Image Processing
Digital Image
A Digital Image is a representation of a two-dimensional image as a
finite set of digital values, called picture elements or pixels.
Digital Image Processing
Digital image processing focuses on two major tasks.
• Improvement of pictorial information for human
interpretation.
• Processing of image data for storage, transmission and
representation for autonomous machine perception.
4
Advantages of Digital Image
Processing of digital image is faster and cost effective.
It can be effectively stored and transmitted from one place to
another.
When suiting a digital image on can immediately see the image is
good or not.
Digital technique offers a plenty of store for versatile image
manipulation .
5
Disadvantages of Digital Image
Misused of copyright has become easier because images can be copy
from the internet by just clicking on the mouse.
Digital images can’t be enlarge on certain size without
compromising on quality .
The memory required for store and processing a good quality of
digital image is very high.
6
Types of Digital Image
1. Bit map Image /Monochrome/Binary
Each pixel consist of single bit either 0 or 1,where 0 is black and 1 is
white.
2. Gray-Scale Image
Each pixel consist of eight bit ,each bit range from 0 to 255.
3.Colored Image
It consist of 3-primitive colour Red, Green and Blue ,colored image
consist of 24-bit where 8-bit for red, 8-bit for green and 8-bit for
blue.
7
Fundamental steps in DIP
8
Image Compression
Techniques for reducing the storage required to save an image or the
bandwidth required to transmit it.
Image compression address the problem of reducing the amount of
data required to represent a digital image with no significant loss of
information.
Image = Information + Redundant Data
Image compression techniques fall into Two categories:
Lossless : Information preserving ,Low compression ratios .
Lossy : Not information preserving ,High compression ratios .
9
Fundamentals
Data compression: Data compression refers to the process of
reducing the amount of data required to represent a given quantity
of information.
Data and Information are not the same thing ,Data is the means by
which information is conveyed.
Data compression aims to reduce the amount of data required to
represent a given quantity of information while preserving as much
information as possible.
10
The same amount of information can be represented by various
amount of data.
Example:
 Ex.1: Your Brother, Ashish, will meet you at santacruz Airport in
mumbai at 5 minutes past 6:00 pm tomorrow night.
 Ex.2: Your Brother will meet you at santacruz Airport at 5 minutes
past 6:00 pm tomorrow night.
 Ex.3: Ashish will meet you at santacruz at 6:00 pm tomorrow night .
Fundamentals
11
Fundamentals
Data Redundancy
It contains data (or words) that either provide no relevant
information or simply restate that which is already known.
The Relative data redundancy RD of the first data set ,is defined by :
Where, RD is Relative Data Redundancy ,CR is Compression ratio.
compression
R
D
C
R
1
1
12
CR refers to the compression ratio and is defined by:
where ,n1 and n2 denoting the information-carrying units in two
data sets that represent the same information/image.
If n1 = n2 , then CR =1 and RD=0, indicating that the first
representation of the information contains no redundant data.
When n2<<n1 , CR large value(∞) and RD 1. Larger values of C
indicate better compression .
Fundamentals
2
1
n
n
CR 
13
Fundamentals
Three Principal type of Data Redundancies used in Image
Compression :
(1) Coding Redundancy
(2) Interpixel Redundancy
(3) Psychovisual Redundancy
14
Coding Redundancy
Code: A list of symbols (letters, numbers, bits etc) .
Code word: A sequence of symbols used to represent a piece of
information or an event (e.g., gray levels).
Code word length: Number of symbols in each code word
15
The gray level histogram of an image can be used in construction of
codes to reduce the data used to represent it. Given the normalized
histogram of a gray level image where,
rk is the discrete random variable defined in the interval [0,1]
pr(k) is the probability of occurrence of rk , L is the number of gray
levels
nk is the number of times that kth gray level appears , n is the total
number of pixels in image.
pr(rk) = nk / n k = 0, 1, 2, ………….L-1
Coding Redundancy
16
Average number of bits required to represent each pixel is given by:
L - 1
Lavg = Σ l(rk) pr(rk)
k = 0
Where, l(rk) is the number of bits used to represent each value of
rk.
Coding Redundancy
17
Interpixel Redundancy
It is also called Spatial & Temporal redundancy.
Because the pixels of most 2D intensity arrays are correlated
spatially(i.e. Each pixel is similar to or dependent on neighbor
pixel), information is replicated unnecessarily .
This type of redundancy is related with the Interpixel correlations
within an image.
In video sequence, temporally correlated pixels also duplicate
information. The codes used to represent the gray levels of each
image have nothing to do with correlation between pixel.
18
Psychovisual Redundancy
Certain information has relatively less importance for the quality of
image perception. This information is said to be psychovisually
redundant.
Unlike coding and interpixel redundancies, the Psychovisual
redundancy is related with the real/quantifiable visual information.
Its elimination results a loss of quantitative information. However
psychovisually the loss is negligible.
Removing this type of redundancy is a lossy process and the lost
information cannot be recovered.
The method used to remove this type of redundancy is called
quantization which means the mapping of a broad range of input
values to a limited number of output values.
19
Fidelity criteria
When lossy compression techniques are employed, the
decompressed image will not be identical to the original image. In
such cases , we can define fidelity criteria that measure the
difference between this two images.
Two general classes of criteria are used :
(1) Objective fidelity criteria
(2) Subjective fidelity criteria
How close is to ?
20
Objective Fidelity Criteria
When information loss can be expressed as a mathematical
function of input & output of a compression process.
E.g.. RMS error between 2 images.
Error between two images
e(x, y) = f’(x, y) – f(x, y)
So, total error between two images
M-1 N-1
Σ Σ [f’(x, y) – f(x, y)]
x=0 y= 0
Where image are size of M x N
21
Subjective Fidelity Criteria
A Decompressed image is presented to a cross section of viewers
and averaging their evaluations.
It can be done by using an absolute rating scale .
Or
By means of side by side comparisons of f(x, y) & f’(x, y).
Side by Side comparison can be done with a scale such as {-3, -2, -1,
0, 1, 2, 3} to represent the subjective valuations {much worse, worse,
slightly worse, the same, slightly better, better, much better}
respectively.
22
Image Compression Model
The image compression system is composed of 2 distinct functional
component: an encoder & a decoder.
Encoder performs Compression while Decoder performs
Decompression. Encoder is used to remove the redundancies
through a series of 3 independent operations.
Both operations can be performed in Software, as in case of Web
browsers & many commercial image editing programs. Or in a
combination of hardware & firmware, as in DVD Players.
A codec is a device which performs coding & decoding.
23
Image Compression Model
Source
Encoder
Channel
Encoder
Channel
Channel
Decoder
Source
Decoder
Encoder Decoder
Compression
(No redundancies)
Noise tolerant
representation(addition
al bits are included to
guarantee detection &
correction of error due
to transmission over
channel.-Hamming
Code)
24
Mapper
25
It transforms input data in a way that facilitates reduction of
interpixel redundancies.
It is reversible .
It may / may not reduce the amount of data to represent image.
Ex. Run Length coding
In video applications, mapper uses previous frames to remove
temporal redundancies.
Mapper Quantizer
Symbol
Encoder
Channel
No Interpixel
redundancies(Reversible)
Quantizer
26
It keeps irrelevant information out of compressed representations.
This operation is irreversible.
It must be omitted when error free compression is desired.
The visual quality of the output can vary from frame to frame as a
function of image content.
Mapper Quantizer
Symbol
Encoder
Channel
No Psychovisual
redundancies(non-
reversible)
Symbol Encoder
27
Generates a fixed or variable length code to represent the Quantizer
output and maps the output in accordance with the code.
Shortest code words are assigned to the most frequently occurring
Quantizer output values. Thus minimizing coding redundancy.
It is reversible. Upon its completion, the input image has been
processed for the removal of all 3 redundancies.
Mapper Quantizer
Symbol
Encoder
Channel
No Coding
redundancies(Reversible)
Decoding or Decompression
Process
28
Inverse steps are performed .
Quantization results in irreversible loss, an inverse Quantizer
block is not included in the decoder block.
Channel
Symbol
Decoder
Inverse
Mapper
Decoder
Error-free compression
• Error-free compression is generally composed of two relatively
independent operations: (1) reduce the interpixel redundancies and
(2) introduce a coding method to reduce the coding redundancies.
LZW
coding
Bit-plane
coding
Variable-
length coding
Error-free compression
Lossless
Predictive
coding
29
Variable-length Coding
The coding redundancy can be minimized by using a variable-
length coding method where the shortest codes are assigned to
most probable gray levels.
The most popular variable-length coding method is the Huffman
Coding. Huffman Coding: The Huffman coding involves the
following 2 steps.
1) Create a series of source reductions by ordering the probabilities
of the symbols and combining the lowest probability symbols into
a single symbol and replace in the next source reduction.
2) each Code reduced source starting with the smallest source and
working back to the original source.
30
Variable-length Coding
1)Huffman source reductions:
ai’s corresponds to the available gray levels in a given image.
31
2) Huffman code assignments:
The first code assignment is done for a2 with the highest
probability and the last assignments are done for a3 and a5 with the
lowest probabilities.
Variable-length Coding
32
The shortest codeword (1) is given for the symbol/pixel with the
highest probability (a2). The longest codeword (01011) is given for
the symbol/pixel with the lowest probability (a5).
The average length of the code is given by:
Variable-length Coding
33
It is uniquely decodable. Because any string of code symbols can
be decoded by examining individual symbols of string from left to
right.
Ex. 01010 011 1 1 00
First valid code: 01010 – a3, 011 – a1,
Thus, completely decoding the message, we get, a3a1a2a2a6
Slower than Huffman coding but typically achieves better
compression.
Variable-length Coding
34
Lempel–Ziv–Welch (LZW)
Lempel–Ziv–Welch (LZW)is a universal lossless data
compression algorithm created by Abraham Lempel, Jacob Ziv,
and Terry Welch.
The key to LZW is building a dictionary of sequences of symbols
(strings) as the data is read and compressed.
Whenever a string is repeated, it is replaced with a single code word
in the output.
At decompression time, the same dictionary is created and used to
replace code words with the corresponding strings.
35
Lempel–Ziv–Welch (LZW)
A codebook (or dictionary) needs to be constructed. LZW
compression has been integrated into a several images file
formats, such as GIF and TIFF and PDF.
Initially, the first 256 entries of the dictionary are assigned to
the gray levels 0,1,2,..,255 (i.e., assuming 8 bits/pixel)
Consider a 4x4, 8 bit image
39 39 126 126
39 39 126 126
39 39 126 126
39 39 126 126
Dictionary Location Entry
0 0
1 1
. .
255 255
256 -
511 -
Initial Dictionary
36
Lempel–Ziv–Welch (LZW)
As the encoder examines image pixels, gray level sequences
(i.e., blocks) that are not in the dictionary are assigned to a
new entry.
- Is 39 in the dictionary……..Yes
- What about 39-39………….No
* Add 39-39 at location 256
Dictionary Location Entry
0 0
1 1
. .
255 255
256
511 -
39-39
39 39 126 126
39 39 126 126
39 39 126 126
39 39 126 126
37
39 39 126 126
39 39 126 126
39 39 126 126
39 39 126 126
Concatenated Sequence: CS = CR + P
else:
(1) Output D(CR)
(2) Add CS to D
(3) CR=P
If CS is found:
(1) No Output
(2) CR=CS
(CR) (P)
CR = empty
Lempel–Ziv–Welch (LZW)
38
References
Books:
“Digital Image Processing”, R.C.Gonsales R.E.Woods, Second
Edition, Pearson Education
Website:
http://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%8
0%93Welch
http://www.dsp.ee.ccu.edu.tw/lie/File/96-IP/Lie-
Gonzalez_ch8.pdf
http://en.wikipedia.org/wiki/Image_compression
39
Thank
yOu . . .
40

More Related Content

What's hot

Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
Mostafa G. M. Mostafa
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Image compression standards
Image compression standardsImage compression standards
Image compression standards
kirupasuchi1996
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
kiruthiammu
 
Hit and-miss transform
Hit and-miss transformHit and-miss transform
Hit and-miss transform
Krish Everglades
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
Karthika Ramachandran
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
muthu181188
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
asodariyabhavesh
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
A B Shinde
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancy
Naveen Kumar
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
asodariyabhavesh
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
Tawose Olamide Timothy
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
asodariyabhavesh
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domainAshish Kumar
 
Point processing
Point processingPoint processing
Point processing
panupriyaa7
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
Md Shabir Alam
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
University of Potsdam
 
image basics and image compression
image basics and image compressionimage basics and image compression
image basics and image compression
murugan hari
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
A B Shinde
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
asodariyabhavesh
 

What's hot (20)

Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Image compression standards
Image compression standardsImage compression standards
Image compression standards
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
Hit and-miss transform
Hit and-miss transformHit and-miss transform
Hit and-miss transform
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancy
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
 
Point processing
Point processingPoint processing
Point processing
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Spatial domain and filtering
Spatial domain and filteringSpatial domain and filtering
Spatial domain and filtering
 
image basics and image compression
image basics and image compressionimage basics and image compression
image basics and image compression
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
 

Viewers also liked

Image Compression
Image CompressionImage Compression
Image Compression
Paramjeet Singh Jamwal
 
Image compression
Image compressionImage compression
Image compression
Bassam Kanber
 
Image compression
Image compressionImage compression
Image compression
Ale Johnsan
 
Image compression: Techniques and Application
Image compression: Techniques and ApplicationImage compression: Techniques and Application
Image compression: Techniques and Application
Nidhi Baranwal
 
digital image processing, image processing
digital image processing, image processingdigital image processing, image processing
digital image processing, image processing
Kalyan Acharjya
 
JPEG Image Compression
JPEG Image CompressionJPEG Image Compression
JPEG Image Compression
Hemanth Kumar Mantri
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
Kalyan Acharjya
 
A Numerical Investigation of Breast Compression: Lesion Modeling
A Numerical Investigation of Breast Compression: Lesion ModelingA Numerical Investigation of Breast Compression: Lesion Modeling
A Numerical Investigation of Breast Compression: Lesion Modeling
Waqas Tariq
 
LaWzer, a still image codec designed by L. Guillemot
LaWzer, a still image codec designed by L. GuillemotLaWzer, a still image codec designed by L. Guillemot
LaWzer, a still image codec designed by L. Guillemot
Ludovic Guillemot
 
Image Processing Introduction
Image Processing IntroductionImage Processing Introduction
Image Processing Introduction
Ahmed Gad
 
Eclipse 2011 Hot Topics
Eclipse 2011 Hot TopicsEclipse 2011 Hot Topics
Eclipse 2011 Hot Topics
Lars Vogel
 
Block Truncation Coding
Block Truncation CodingBlock Truncation Coding
Block Truncation Coding
riyagam
 
Finite element analysis in orthodontics/ /certified fixed orthodontic courses...
Finite element analysis in orthodontics/ /certified fixed orthodontic courses...Finite element analysis in orthodontics/ /certified fixed orthodontic courses...
Finite element analysis in orthodontics/ /certified fixed orthodontic courses...
Indian dental academy
 
Contrast limited adaptive histogram equalization
Contrast limited adaptive histogram equalizationContrast limited adaptive histogram equalization
Contrast limited adaptive histogram equalizationEr. Nancy
 
Data compression huffman coding algoritham
Data compression huffman coding algorithamData compression huffman coding algoritham
Data compression huffman coding algorithamRahul Khanwani
 

Viewers also liked (20)

Image Compression
Image CompressionImage Compression
Image Compression
 
Image compression
Image compressionImage compression
Image compression
 
Image compression
Image compressionImage compression
Image compression
 
Image compression
Image compressionImage compression
Image compression
 
Presentation on Image Compression
Presentation on Image Compression Presentation on Image Compression
Presentation on Image Compression
 
Image compression: Techniques and Application
Image compression: Techniques and ApplicationImage compression: Techniques and Application
Image compression: Techniques and Application
 
digital image processing, image processing
digital image processing, image processingdigital image processing, image processing
digital image processing, image processing
 
JPEG Image Compression
JPEG Image CompressionJPEG Image Compression
JPEG Image Compression
 
Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)Image Restoration (Digital Image Processing)
Image Restoration (Digital Image Processing)
 
A Numerical Investigation of Breast Compression: Lesion Modeling
A Numerical Investigation of Breast Compression: Lesion ModelingA Numerical Investigation of Breast Compression: Lesion Modeling
A Numerical Investigation of Breast Compression: Lesion Modeling
 
LaWzer, a still image codec designed by L. Guillemot
LaWzer, a still image codec designed by L. GuillemotLaWzer, a still image codec designed by L. Guillemot
LaWzer, a still image codec designed by L. Guillemot
 
Adaptive Huffman Coding
Adaptive Huffman CodingAdaptive Huffman Coding
Adaptive Huffman Coding
 
Image Processing Introduction
Image Processing IntroductionImage Processing Introduction
Image Processing Introduction
 
Eclipse 2011 Hot Topics
Eclipse 2011 Hot TopicsEclipse 2011 Hot Topics
Eclipse 2011 Hot Topics
 
Block Truncation Coding
Block Truncation CodingBlock Truncation Coding
Block Truncation Coding
 
Huffman codes
Huffman codesHuffman codes
Huffman codes
 
Arithmetic Coding
Arithmetic CodingArithmetic Coding
Arithmetic Coding
 
Finite element analysis in orthodontics/ /certified fixed orthodontic courses...
Finite element analysis in orthodontics/ /certified fixed orthodontic courses...Finite element analysis in orthodontics/ /certified fixed orthodontic courses...
Finite element analysis in orthodontics/ /certified fixed orthodontic courses...
 
Contrast limited adaptive histogram equalization
Contrast limited adaptive histogram equalizationContrast limited adaptive histogram equalization
Contrast limited adaptive histogram equalization
 
Data compression huffman coding algoritham
Data compression huffman coding algorithamData compression huffman coding algoritham
Data compression huffman coding algoritham
 

Similar to Image compression .

Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)
Joel P
 
Iaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosineIaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosine
Iaetsd Iaetsd
 
IRJET-Lossless Image compression and decompression using Huffman coding
IRJET-Lossless Image compression and decompression using Huffman codingIRJET-Lossless Image compression and decompression using Huffman coding
IRJET-Lossless Image compression and decompression using Huffman coding
IRJET Journal
 
Digital image compression techniques
Digital image compression techniquesDigital image compression techniques
Digital image compression techniques
eSAT Publishing House
 
Digital image compression techniques
Digital image compression techniquesDigital image compression techniques
Digital image compression techniques
eSAT Journals
 
A COMPARATIVE STUDY OF IMAGE COMPRESSION ALGORITHMS
A COMPARATIVE STUDY OF IMAGE COMPRESSION ALGORITHMSA COMPARATIVE STUDY OF IMAGE COMPRESSION ALGORITHMS
A COMPARATIVE STUDY OF IMAGE COMPRESSION ALGORITHMS
Kate Campbell
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
Mathankumar S
 
Image compression notes.pdf
Image compression notes.pdfImage compression notes.pdf
Image compression notes.pdf
2BA19CS073SmitaDAmbi
 
Jpeg image compression using discrete cosine transform a survey
Jpeg image compression using discrete cosine transform   a surveyJpeg image compression using discrete cosine transform   a survey
Jpeg image compression using discrete cosine transform a survey
IJCSES Journal
 
notes_Image Compression.ppt
notes_Image Compression.pptnotes_Image Compression.ppt
notes_Image Compression.ppt
HarisMasood20
 
notes_Image Compression.ppt
notes_Image Compression.pptnotes_Image Compression.ppt
notes_Image Compression.ppt
HarisMasood20
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
Ankur Nanda
 
Dip review
Dip reviewDip review
Dip review
Harish Reddy
 
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSIONA REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
Nancy Ideker
 
Image compression
Image compressionImage compression
Image compression
Ishucs
 
Lec_8_Image Compression.pdf
Lec_8_Image Compression.pdfLec_8_Image Compression.pdf
Lec_8_Image Compression.pdf
nagwaAboElenein
 
Image compression
Image compressionImage compression
Image compression
PREEYANKAV
 
A Review on Image Compression using DCT and DWT
A Review on Image Compression using DCT and DWTA Review on Image Compression using DCT and DWT
A Review on Image Compression using DCT and DWT
IJSRD
 

Similar to Image compression . (20)

Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)
 
Iaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosineIaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosine
 
IRJET-Lossless Image compression and decompression using Huffman coding
IRJET-Lossless Image compression and decompression using Huffman codingIRJET-Lossless Image compression and decompression using Huffman coding
IRJET-Lossless Image compression and decompression using Huffman coding
 
Digital image compression techniques
Digital image compression techniquesDigital image compression techniques
Digital image compression techniques
 
Digital image compression techniques
Digital image compression techniquesDigital image compression techniques
Digital image compression techniques
 
A COMPARATIVE STUDY OF IMAGE COMPRESSION ALGORITHMS
A COMPARATIVE STUDY OF IMAGE COMPRESSION ALGORITHMSA COMPARATIVE STUDY OF IMAGE COMPRESSION ALGORITHMS
A COMPARATIVE STUDY OF IMAGE COMPRESSION ALGORITHMS
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
www.ijerd.com
www.ijerd.comwww.ijerd.com
www.ijerd.com
 
Image compression notes.pdf
Image compression notes.pdfImage compression notes.pdf
Image compression notes.pdf
 
Jpeg image compression using discrete cosine transform a survey
Jpeg image compression using discrete cosine transform   a surveyJpeg image compression using discrete cosine transform   a survey
Jpeg image compression using discrete cosine transform a survey
 
notes_Image Compression.ppt
notes_Image Compression.pptnotes_Image Compression.ppt
notes_Image Compression.ppt
 
notes_Image Compression.ppt
notes_Image Compression.pptnotes_Image Compression.ppt
notes_Image Compression.ppt
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Dip review
Dip reviewDip review
Dip review
 
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSIONA REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
 
Image compression
Image compressionImage compression
Image compression
 
Lec_8_Image Compression.pdf
Lec_8_Image Compression.pdfLec_8_Image Compression.pdf
Lec_8_Image Compression.pdf
 
Image compression
Image compressionImage compression
Image compression
 
H0144952
H0144952H0144952
H0144952
 
A Review on Image Compression using DCT and DWT
A Review on Image Compression using DCT and DWTA Review on Image Compression using DCT and DWT
A Review on Image Compression using DCT and DWT
 

Recently uploaded

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
Anna Sz.
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
MysoreMuleSoftMeetup
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
kaushalkr1407
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
timhan337
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
TechSoup
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
Tamralipta Mahavidyalaya
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 

Recently uploaded (20)

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
Polish students' mobility in the Czech Republic
Polish students' mobility in the Czech RepublicPolish students' mobility in the Czech Republic
Polish students' mobility in the Czech Republic
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
Mule 4.6 & Java 17 Upgrade | MuleSoft Mysore Meetup #46
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
The Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdfThe Roman Empire A Historical Colossus.pdf
The Roman Empire A Historical Colossus.pdf
 
Honest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptxHonest Reviews of Tim Han LMA Course Program.pptx
Honest Reviews of Tim Han LMA Course Program.pptx
 
Introduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp NetworkIntroduction to AI for Nonprofits with Tapp Network
Introduction to AI for Nonprofits with Tapp Network
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.Biological Screening of Herbal Drugs in detailed.
Biological Screening of Herbal Drugs in detailed.
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 

Image compression .

  • 2. Outline 2 Introduction What is Image ? Digital Image Processing . Advantage & Disadvantages . Fundamental Steps in DIP . Fundamentals Data Compression & Data Redundancy. Types of Data Redundancy . Fidelity Criteria . Image Compression Models . Error Free Compression . Variable Length Coding LZW
  • 3. Introduction What is an Image ? The world around us is 3D while the image obtain through a camera is 2D,Hence an image can be defined as “A 2D representation of 3D world. ” Types of Images 1. Analog : An analog image can be represented as continuous range of value representing position and intensity. 2. Digital : It is composed of picture element called pixel. 3
  • 4. Digital Image Processing Digital Image A Digital Image is a representation of a two-dimensional image as a finite set of digital values, called picture elements or pixels. Digital Image Processing Digital image processing focuses on two major tasks. • Improvement of pictorial information for human interpretation. • Processing of image data for storage, transmission and representation for autonomous machine perception. 4
  • 5. Advantages of Digital Image Processing of digital image is faster and cost effective. It can be effectively stored and transmitted from one place to another. When suiting a digital image on can immediately see the image is good or not. Digital technique offers a plenty of store for versatile image manipulation . 5
  • 6. Disadvantages of Digital Image Misused of copyright has become easier because images can be copy from the internet by just clicking on the mouse. Digital images can’t be enlarge on certain size without compromising on quality . The memory required for store and processing a good quality of digital image is very high. 6
  • 7. Types of Digital Image 1. Bit map Image /Monochrome/Binary Each pixel consist of single bit either 0 or 1,where 0 is black and 1 is white. 2. Gray-Scale Image Each pixel consist of eight bit ,each bit range from 0 to 255. 3.Colored Image It consist of 3-primitive colour Red, Green and Blue ,colored image consist of 24-bit where 8-bit for red, 8-bit for green and 8-bit for blue. 7
  • 9. Image Compression Techniques for reducing the storage required to save an image or the bandwidth required to transmit it. Image compression address the problem of reducing the amount of data required to represent a digital image with no significant loss of information. Image = Information + Redundant Data Image compression techniques fall into Two categories: Lossless : Information preserving ,Low compression ratios . Lossy : Not information preserving ,High compression ratios . 9
  • 10. Fundamentals Data compression: Data compression refers to the process of reducing the amount of data required to represent a given quantity of information. Data and Information are not the same thing ,Data is the means by which information is conveyed. Data compression aims to reduce the amount of data required to represent a given quantity of information while preserving as much information as possible. 10
  • 11. The same amount of information can be represented by various amount of data. Example:  Ex.1: Your Brother, Ashish, will meet you at santacruz Airport in mumbai at 5 minutes past 6:00 pm tomorrow night.  Ex.2: Your Brother will meet you at santacruz Airport at 5 minutes past 6:00 pm tomorrow night.  Ex.3: Ashish will meet you at santacruz at 6:00 pm tomorrow night . Fundamentals 11
  • 12. Fundamentals Data Redundancy It contains data (or words) that either provide no relevant information or simply restate that which is already known. The Relative data redundancy RD of the first data set ,is defined by : Where, RD is Relative Data Redundancy ,CR is Compression ratio. compression R D C R 1 1 12
  • 13. CR refers to the compression ratio and is defined by: where ,n1 and n2 denoting the information-carrying units in two data sets that represent the same information/image. If n1 = n2 , then CR =1 and RD=0, indicating that the first representation of the information contains no redundant data. When n2<<n1 , CR large value(∞) and RD 1. Larger values of C indicate better compression . Fundamentals 2 1 n n CR  13
  • 14. Fundamentals Three Principal type of Data Redundancies used in Image Compression : (1) Coding Redundancy (2) Interpixel Redundancy (3) Psychovisual Redundancy 14
  • 15. Coding Redundancy Code: A list of symbols (letters, numbers, bits etc) . Code word: A sequence of symbols used to represent a piece of information or an event (e.g., gray levels). Code word length: Number of symbols in each code word 15
  • 16. The gray level histogram of an image can be used in construction of codes to reduce the data used to represent it. Given the normalized histogram of a gray level image where, rk is the discrete random variable defined in the interval [0,1] pr(k) is the probability of occurrence of rk , L is the number of gray levels nk is the number of times that kth gray level appears , n is the total number of pixels in image. pr(rk) = nk / n k = 0, 1, 2, ………….L-1 Coding Redundancy 16
  • 17. Average number of bits required to represent each pixel is given by: L - 1 Lavg = Σ l(rk) pr(rk) k = 0 Where, l(rk) is the number of bits used to represent each value of rk. Coding Redundancy 17
  • 18. Interpixel Redundancy It is also called Spatial & Temporal redundancy. Because the pixels of most 2D intensity arrays are correlated spatially(i.e. Each pixel is similar to or dependent on neighbor pixel), information is replicated unnecessarily . This type of redundancy is related with the Interpixel correlations within an image. In video sequence, temporally correlated pixels also duplicate information. The codes used to represent the gray levels of each image have nothing to do with correlation between pixel. 18
  • 19. Psychovisual Redundancy Certain information has relatively less importance for the quality of image perception. This information is said to be psychovisually redundant. Unlike coding and interpixel redundancies, the Psychovisual redundancy is related with the real/quantifiable visual information. Its elimination results a loss of quantitative information. However psychovisually the loss is negligible. Removing this type of redundancy is a lossy process and the lost information cannot be recovered. The method used to remove this type of redundancy is called quantization which means the mapping of a broad range of input values to a limited number of output values. 19
  • 20. Fidelity criteria When lossy compression techniques are employed, the decompressed image will not be identical to the original image. In such cases , we can define fidelity criteria that measure the difference between this two images. Two general classes of criteria are used : (1) Objective fidelity criteria (2) Subjective fidelity criteria How close is to ? 20
  • 21. Objective Fidelity Criteria When information loss can be expressed as a mathematical function of input & output of a compression process. E.g.. RMS error between 2 images. Error between two images e(x, y) = f’(x, y) – f(x, y) So, total error between two images M-1 N-1 Σ Σ [f’(x, y) – f(x, y)] x=0 y= 0 Where image are size of M x N 21
  • 22. Subjective Fidelity Criteria A Decompressed image is presented to a cross section of viewers and averaging their evaluations. It can be done by using an absolute rating scale . Or By means of side by side comparisons of f(x, y) & f’(x, y). Side by Side comparison can be done with a scale such as {-3, -2, -1, 0, 1, 2, 3} to represent the subjective valuations {much worse, worse, slightly worse, the same, slightly better, better, much better} respectively. 22
  • 23. Image Compression Model The image compression system is composed of 2 distinct functional component: an encoder & a decoder. Encoder performs Compression while Decoder performs Decompression. Encoder is used to remove the redundancies through a series of 3 independent operations. Both operations can be performed in Software, as in case of Web browsers & many commercial image editing programs. Or in a combination of hardware & firmware, as in DVD Players. A codec is a device which performs coding & decoding. 23
  • 24. Image Compression Model Source Encoder Channel Encoder Channel Channel Decoder Source Decoder Encoder Decoder Compression (No redundancies) Noise tolerant representation(addition al bits are included to guarantee detection & correction of error due to transmission over channel.-Hamming Code) 24
  • 25. Mapper 25 It transforms input data in a way that facilitates reduction of interpixel redundancies. It is reversible . It may / may not reduce the amount of data to represent image. Ex. Run Length coding In video applications, mapper uses previous frames to remove temporal redundancies. Mapper Quantizer Symbol Encoder Channel No Interpixel redundancies(Reversible)
  • 26. Quantizer 26 It keeps irrelevant information out of compressed representations. This operation is irreversible. It must be omitted when error free compression is desired. The visual quality of the output can vary from frame to frame as a function of image content. Mapper Quantizer Symbol Encoder Channel No Psychovisual redundancies(non- reversible)
  • 27. Symbol Encoder 27 Generates a fixed or variable length code to represent the Quantizer output and maps the output in accordance with the code. Shortest code words are assigned to the most frequently occurring Quantizer output values. Thus minimizing coding redundancy. It is reversible. Upon its completion, the input image has been processed for the removal of all 3 redundancies. Mapper Quantizer Symbol Encoder Channel No Coding redundancies(Reversible)
  • 28. Decoding or Decompression Process 28 Inverse steps are performed . Quantization results in irreversible loss, an inverse Quantizer block is not included in the decoder block. Channel Symbol Decoder Inverse Mapper Decoder
  • 29. Error-free compression • Error-free compression is generally composed of two relatively independent operations: (1) reduce the interpixel redundancies and (2) introduce a coding method to reduce the coding redundancies. LZW coding Bit-plane coding Variable- length coding Error-free compression Lossless Predictive coding 29
  • 30. Variable-length Coding The coding redundancy can be minimized by using a variable- length coding method where the shortest codes are assigned to most probable gray levels. The most popular variable-length coding method is the Huffman Coding. Huffman Coding: The Huffman coding involves the following 2 steps. 1) Create a series of source reductions by ordering the probabilities of the symbols and combining the lowest probability symbols into a single symbol and replace in the next source reduction. 2) each Code reduced source starting with the smallest source and working back to the original source. 30
  • 31. Variable-length Coding 1)Huffman source reductions: ai’s corresponds to the available gray levels in a given image. 31
  • 32. 2) Huffman code assignments: The first code assignment is done for a2 with the highest probability and the last assignments are done for a3 and a5 with the lowest probabilities. Variable-length Coding 32
  • 33. The shortest codeword (1) is given for the symbol/pixel with the highest probability (a2). The longest codeword (01011) is given for the symbol/pixel with the lowest probability (a5). The average length of the code is given by: Variable-length Coding 33
  • 34. It is uniquely decodable. Because any string of code symbols can be decoded by examining individual symbols of string from left to right. Ex. 01010 011 1 1 00 First valid code: 01010 – a3, 011 – a1, Thus, completely decoding the message, we get, a3a1a2a2a6 Slower than Huffman coding but typically achieves better compression. Variable-length Coding 34
  • 35. Lempel–Ziv–Welch (LZW) Lempel–Ziv–Welch (LZW)is a universal lossless data compression algorithm created by Abraham Lempel, Jacob Ziv, and Terry Welch. The key to LZW is building a dictionary of sequences of symbols (strings) as the data is read and compressed. Whenever a string is repeated, it is replaced with a single code word in the output. At decompression time, the same dictionary is created and used to replace code words with the corresponding strings. 35
  • 36. Lempel–Ziv–Welch (LZW) A codebook (or dictionary) needs to be constructed. LZW compression has been integrated into a several images file formats, such as GIF and TIFF and PDF. Initially, the first 256 entries of the dictionary are assigned to the gray levels 0,1,2,..,255 (i.e., assuming 8 bits/pixel) Consider a 4x4, 8 bit image 39 39 126 126 39 39 126 126 39 39 126 126 39 39 126 126 Dictionary Location Entry 0 0 1 1 . . 255 255 256 - 511 - Initial Dictionary 36
  • 37. Lempel–Ziv–Welch (LZW) As the encoder examines image pixels, gray level sequences (i.e., blocks) that are not in the dictionary are assigned to a new entry. - Is 39 in the dictionary……..Yes - What about 39-39………….No * Add 39-39 at location 256 Dictionary Location Entry 0 0 1 1 . . 255 255 256 511 - 39-39 39 39 126 126 39 39 126 126 39 39 126 126 39 39 126 126 37
  • 38. 39 39 126 126 39 39 126 126 39 39 126 126 39 39 126 126 Concatenated Sequence: CS = CR + P else: (1) Output D(CR) (2) Add CS to D (3) CR=P If CS is found: (1) No Output (2) CR=CS (CR) (P) CR = empty Lempel–Ziv–Welch (LZW) 38
  • 39. References Books: “Digital Image Processing”, R.C.Gonsales R.E.Woods, Second Edition, Pearson Education Website: http://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%8 0%93Welch http://www.dsp.ee.ccu.edu.tw/lie/File/96-IP/Lie- Gonzalez_ch8.pdf http://en.wikipedia.org/wiki/Image_compression 39