SlideShare a Scribd company logo
Any Differences?
Lecture by Kalyan Acharjya
1
Disclaimer
Lecture by Kalyan Acharjya
2
 All images/contents used in this presentation are
copyright of original owners.
 The PPT has prepared for academic use only.
So True?
Lecture by Kalyan Acharjya
3
Unit 5
Image Compression
(Part 1)
Kalyan Acharjya
Jaipur National University, Jaipur
Lecture by Kalyan Acharjya
4
JPEG
Lecture by Kalyan Acharjya
Image Compression.
Size-270 KB Size-22 KB
“Without Compression a CD store only 200 Pictures or 8
Seconds Movie”
5
What is Image Compression?
Lecture by Kalyan Acharjya
 Image compression is the process of reducing
the amount of data required to represent an
image.
Encoder 0101100111... Decoder
Original Image Decoded Image
Bitstream
6
Why Compression?
Lecture by Kalyan Acharjya
7
Storage
Ease of Transmission
Compression Fundamentals
Lecture by Kalyan Acharjya
 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 be used for compression
 The ratio of the original, uncompressed image file and the
compressed file is referred to as the compression ratio
8
Why Compression?
Lecture by Kalyan Acharjya
 Now, consider the transmission of video images, where we need
multiple frames per second, If we consider just one second of video
data that has been digitized at 640x480 pixels per frame, and requiring
15 frames per second for interlaced video, then:
 Waiting 35 seconds for one second’s worth of video is not exactly real
time.
 Even attempting to transmit uncompressed video over the highest
speed Internet connection is impractical
9
Image Compression General Models
Lecture by Kalyan Acharjya
 Some image Compression Standard
 JPEG-Based on DCT
 JPEG 2000-Based on DWT
 GIF-Graphics Interchange Format etc.
Source
Encoder
Channel
Encoder
Channel
Decoder
Source
Decoder
Channel/
Store
F(x, y)
F’(x, y)
10
Data ≠ Information
Lecture by Kalyan Acharjya
 Data and information are not synonymous terms.
 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.
 Image compression is an irreversible process.
 Some Transform used in Image Compression
 DCT-Discrete Cosine Transform
 DWT-Discrete wavelet Transform etc.
11
Lecture by Kalyan Acharjya
Compression Steps
 Preparation: analog to digital conversion.
 Processing: transform data into a domain easier to
compress.
 Quantization: reduce precision at which the output is
stored.
 Entropy Encoding: remove redundant information in the
resulting data stream.
Picture
Preparation
Picture
Processing
Quanti-
zation
Entropy
Encoding
Input Image Compressed Image
12
Image Compression-Lossy or Lossless
Lecture by Kalyan Acharjya
 But its resolution or features should be unchanged for human
perception.
 Relative Data Redundancy Rd of the first data set is Rd=1-1/CR
 Where CR-Compression Ratio=n1/n2.
 n1 and n2 denote the nos. of information carrying units in two data
sets that represent the same information.
• In Digital Image Compression, the basics data redundancies are-
 Coding Redundancy
 Inter pixel Redundancy
 Psycho-visual Redundancy
13
Lecture by Kalyan Acharjya
14
Compression algorithms are developed by taking advantage of the
redundancy that is inherent in image data
Coding Redundancy
 Occurs when the data used to represent the image is not utilized in
an optimal manner
Interpixel Redundancy
 Occurs because adjacent pixels tend to be highly correlated, in
most images the brightness levels do not change rapidly, but
change gradually.
Psychovisual Redundancy
 Some information is more important to the human visual system
than other types of information
Data Redundancies
Lecture by Kalyan Acharjya 15
Part II
Image Compression
Unit V
Trade Off: Quality vs. Compression
Lecture by Kalyan Acharjya
16
 Lossless Compression (Information Preserving) -
Original can be recovered exactly. Higher quality,
bigger.
 Lossy Compression- Only an approximation of
the original can be recovered. Lower quality,
smaller.
Lecture by Kalyan Acharjya
17
Compression algorithms are developed by taking advantage of the
redundancy that is inherent in image data
Coding Redundancy
 Occurs when the data used to represent the image is not utilized in
an optimal manner
Interpixel Redundancy
 Occurs because adjacent pixels tend to be highly correlated, in
most images the brightness levels do not change rapidly, but
change gradually.
Psychovisual Redundancy
 Some information is more important to the human visual system
than other types of information
Data Redundancies
Coding Redundancy
Lecture by Kalyan Acharjya
18
 Length of the code words (e.g., 8-bit codes for grey value
images) is larger than needed.
 Coding redundancy is associated with the representation of
information.
 The information is represented in the form of codes.
 If the gray levels of an image are coded in a way that uses
more code symbols than absolutely necessary to represent
each gray level then the resulting image is said to contain
coding redundancy.
Coding Redundancy
Lecture by Kalyan Acharjya
19
Coding Redundancy
Lecture by Kalyan Acharjya
20
Measuring the
Information
I=Log[1/P(E)]
=-log P(E)
Measuring Information
Lecture by Kalyan Acharjya
21
 These methods, from information theory, are not limited to
images, but apply to any digital information. Here uses
“symbols” instead of “pixel values” and “sources” instead of
“images”
Shanon’s First Theorem
Lecture by Kalyan Acharjya
22
 Shanon looked at group of n consecutive source symbols with a
single code word (rather than one code word per source symbol)
and showed that-
 Where Lavg is the average number of code symbols required to
represents all n symbols groups.
Coding Redundancy
Lecture by Kalyan Acharjya
23
Two common algorithms: Huffman coding and LZW coding
Fidelity Criteria
Lecture by Kalyan Acharjya
24
RMS Error
Lecture by Kalyan Acharjya
25
The rms of the three images are 5.17, 15.67, and 14.17.
Image Compression
Lecture by Kalyan Acharjya
26
Inter-Pixel Redundancy
Lecture by Kalyan Acharjya
27
 Inter-Pixel Spatial Redundancy:
 Inter-pixel redundancy is due to the correlation between the neighboring
pixels in an image.
 The value of any given pixel can be predicated from the value of its
neighbors (Highly Correlated).
 The information carried by individual pixel is relatively small.
 To reduce inter-pixel redundancy the difference between adjacent pixels can
be used to represent an image.
 Inter-Pixel Temporal Redundancy
 Inter-Pixel temporal redundancy is the statistical correlation between pixels
from successive frames in video sequence.
 Temporal redundancy is also called inter-frame redundancy.
 Removing a large amount of redundancy leads to efficient video
compression.
Algorithm: Run Length Coding
Spatial Redundancy
Lecture by Kalyan Acharjya
28
Its Histogram (Ignore White Background)
Just variable length coding is not
sufficient?
0 255
Run Length Algorithm
Lecture by Kalyan Acharjya
29
 Lets Discuss (During Lecture!)
 Consider one Binary Image
 Its vector representation
 Size without compression
 Size after run length algorithm
1 1 1 1 1 1
1 1 1 1 0 0
1 1 1 1 1 1
0 0 1 1 1 1
1 1 1 1 1 1
0 0 0 0 0 0
Which have higher intensity (Centre Circle)?
Lecture by Kalyan Acharjya
30
Psychovisual Redundancy
Lecture by Kalyan Acharjya
31
Psychovisual Redundancy
Lecture by Kalyan Acharjya
32
 The Psychovisual redundancies exist because human perception does not
involve quantitative analysis of every pixel or luminance value in the image.
 It’s elimination is real visual information is possible only because the
information itself is not essential for normal visual processing.
Psychovisual Redundancy
Lecture by Kalyan Acharjya
33
 We’re more sensitive to differences between dark intensities than
bright ones. Encode log(intensity) instead of intensity.
 We’re more sensitive to differences of intensity in green than red
or blue.
 Use variable quantization: devote most bits to green, fewest to
blue.
Some Basic Compression Methods
Lecture by Kalyan Acharjya
34
 Huffman coding (Will Discuss in this Lecture- Coding Redundancy)
 Golomb Coding
 Arithmetic Coding
 LZW Coding
 Run Length Coding (Already Discussed)
 Symbol Based Coding
 Bit Plane Coding (You are familiar)
….many more for detail:
Image Processing Gonzalez Book (Chapter 8-Image Compression)
Huffman Coding
Lecture by Kalyan Acharjya
35
Huffman Coding
Lecture by Kalyan Acharjya
36
Efficiency=H/Lavg x 100 %
Channel Encoder & Decoder
Lecture by Kalyan Acharjya
37
Remember
Lecture by Kalyan Acharjya
38
 To study some standard image compression methods
Like JPG, JPEG2000 etc.
Suggested Further Reading
Gonzalez & Woods, Digital Image
Processing Book
Chapter 8: Image Compression
Thank You!
Any Question Please?
kalyan.acharjya@gmail.com
kalyan5.blogspot.in
Lecture by Kalyan Acharjya 39
Suggested Further Reading
Gonzalez & Woods, Digital Image Processing Book
Chapter 8: Image Compression

More Related Content

What's hot

Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
Ahmed Daoud
 
Point processing
Point processingPoint processing
Point processing
panupriyaa7
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
Mostafa G. M. Mostafa
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
Poonam Seth
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
arulraj121
 
Bit plane coding
Bit plane codingBit plane coding
Bit plane coding
priyadharshini murugan
 
Image processing fundamentals
Image processing fundamentalsImage processing fundamentals
Image processing fundamentals
A B Shinde
 
Discrete cosine transform
Discrete cosine transform   Discrete cosine transform
Discrete cosine transform
Rashmi Karkra
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
Kalyan Acharjya
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
Tawose Olamide Timothy
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
Poonam Seth
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
kiruthiammu
 
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
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
Mathankumar S
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
A B Shinde
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
babak danyal
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
muthu181188
 
Noise Models
Noise ModelsNoise Models
Noise Models
Sardar Alam
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
Gautam Saxena
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
A B Shinde
 

What's hot (20)

Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Point processing
Point processingPoint processing
Point processing
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
 
Bit plane coding
Bit plane codingBit plane coding
Bit plane coding
 
Image processing fundamentals
Image processing fundamentalsImage processing fundamentals
Image processing fundamentals
 
Discrete cosine transform
Discrete cosine transform   Discrete cosine transform
Discrete cosine transform
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
08 frequency domain filtering DIP
08 frequency domain filtering DIP08 frequency domain filtering DIP
08 frequency domain filtering DIP
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Noise Models
Noise ModelsNoise Models
Noise Models
 
Homomorphic filtering
Homomorphic filteringHomomorphic filtering
Homomorphic filtering
 
Color Image Processing: Basics
Color Image Processing: BasicsColor Image Processing: Basics
Color Image Processing: Basics
 

Similar to Introduction to Image Compression

Reduction of Blocking Artifacts In JPEG Compressed Image
Reduction of Blocking Artifacts In JPEG Compressed ImageReduction of Blocking Artifacts In JPEG Compressed Image
Reduction of Blocking Artifacts In JPEG Compressed Image
Dr Sukhpal Singh Gill
 
Image_Compression_Slide_Set_1.pptx
Image_Compression_Slide_Set_1.pptxImage_Compression_Slide_Set_1.pptx
Image_Compression_Slide_Set_1.pptx
ssuserd546c51
 
Design and Implementation of EZW & SPIHT Image Coder for Virtual Images
Design and Implementation of EZW & SPIHT Image Coder for Virtual ImagesDesign and Implementation of EZW & SPIHT Image Coder for Virtual Images
Design and Implementation of EZW & SPIHT Image Coder for Virtual Images
CSCJournals
 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compression
Pradip Kumar
 
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
ijcsa
 
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
 
DIP PPT (1).pptx
DIP PPT (1).pptxDIP PPT (1).pptx
DIP PPT (1).pptx
MrJBhaskaraRaoece
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
IJERD Editor
 
Jc3515691575
Jc3515691575Jc3515691575
Jc3515691575
IJERA Editor
 
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
 
Video compression
Video compressionVideo compression
Video compression
nnmaurya
 
Low Complex-Hierarchical Coding Compression Approach for Arial Images
Low Complex-Hierarchical Coding Compression Approach for Arial ImagesLow Complex-Hierarchical Coding Compression Approach for Arial Images
Low Complex-Hierarchical Coding Compression Approach for Arial Images
IDES Editor
 
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
 
An Algorithm for Improving the Quality of Compacted JPEG Image by Minimizes t...
An Algorithm for Improving the Quality of Compacted JPEG Image by Minimizes t...An Algorithm for Improving the Quality of Compacted JPEG Image by Minimizes t...
An Algorithm for Improving the Quality of Compacted JPEG Image by Minimizes t...
ijcga
 
Spiht 3d
Spiht 3dSpiht 3d
Spiht 3d
piramu kailasam
 
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
 
wavelet compression
wavelet compressionwavelet compression
wavelet compression
rmsurya
 

Similar to Introduction to Image Compression (20)

Reduction of Blocking Artifacts In JPEG Compressed Image
Reduction of Blocking Artifacts In JPEG Compressed ImageReduction of Blocking Artifacts In JPEG Compressed Image
Reduction of Blocking Artifacts In JPEG Compressed Image
 
Image_Compression_Slide_Set_1.pptx
Image_Compression_Slide_Set_1.pptxImage_Compression_Slide_Set_1.pptx
Image_Compression_Slide_Set_1.pptx
 
Design and Implementation of EZW & SPIHT Image Coder for Virtual Images
Design and Implementation of EZW & SPIHT Image Coder for Virtual ImagesDesign and Implementation of EZW & SPIHT Image Coder for Virtual Images
Design and Implementation of EZW & SPIHT Image Coder for Virtual Images
 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compression
 
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
 
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
 
DIP PPT (1).pptx
DIP PPT (1).pptxDIP PPT (1).pptx
DIP PPT (1).pptx
 
International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)International Journal of Engineering Research and Development (IJERD)
International Journal of Engineering Research and Development (IJERD)
 
Jc3515691575
Jc3515691575Jc3515691575
Jc3515691575
 
Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)
 
Video compression
Video compressionVideo compression
Video compression
 
Low Complex-Hierarchical Coding Compression Approach for Arial Images
Low Complex-Hierarchical Coding Compression Approach for Arial ImagesLow Complex-Hierarchical Coding Compression Approach for Arial Images
Low Complex-Hierarchical Coding Compression Approach for Arial Images
 
Iaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosineIaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosine
 
An Algorithm for Improving the Quality of Compacted JPEG Image by Minimizes t...
An Algorithm for Improving the Quality of Compacted JPEG Image by Minimizes t...An Algorithm for Improving the Quality of Compacted JPEG Image by Minimizes t...
An Algorithm for Improving the Quality of Compacted JPEG Image by Minimizes t...
 
Ha1 task one
Ha1   task oneHa1   task one
Ha1 task one
 
Spiht 3d
Spiht 3dSpiht 3d
Spiht 3d
 
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
 
Presentation on Image Compression
Presentation on Image Compression Presentation on Image Compression
Presentation on Image Compression
 
wavelet compression
wavelet compressionwavelet compression
wavelet compression
 

More from Kalyan Acharjya

Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
Kalyan Acharjya
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):Basics
Kalyan Acharjya
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
Kalyan Acharjya
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
Kalyan Acharjya
 
Histogram Specification or Matching Problem
Histogram Specification or Matching ProblemHistogram Specification or Matching Problem
Histogram Specification or Matching Problem
Kalyan Acharjya
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
Kalyan Acharjya
 
Fundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image ComponentsFundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image Components
Kalyan Acharjya
 
Introduction to Image Processing:Image Modalities
Introduction to Image Processing:Image ModalitiesIntroduction to Image Processing:Image Modalities
Introduction to Image Processing:Image Modalities
Kalyan Acharjya
 
Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)
Kalyan Acharjya
 
Stick Diagram
Stick DiagramStick Diagram
Stick Diagram
Kalyan Acharjya
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
Kalyan Acharjya
 
Photodetector (Photodiode)
Photodetector (Photodiode)Photodetector (Photodiode)
Photodetector (Photodiode)
Kalyan Acharjya
 
Fiber fabrication
Fiber fabricationFiber fabrication
Fiber fabrication
Kalyan Acharjya
 
Fiber End Preparations & Splicing
Fiber End Preparations & SplicingFiber End Preparations & Splicing
Fiber End Preparations & Splicing
Kalyan Acharjya
 
Connector losses Optical Fiber Cable
Connector losses Optical Fiber CableConnector losses Optical Fiber Cable
Connector losses Optical Fiber Cable
Kalyan Acharjya
 
Introduction to VLSI Design
Introduction to VLSI DesignIntroduction to VLSI Design
Introduction to VLSI Design
Kalyan Acharjya
 
Guidlines for ppt Design
Guidlines for ppt DesignGuidlines for ppt Design
Guidlines for ppt Design
Kalyan Acharjya
 
B.Tech Seminar schedule dates 8 EC B2 2016
B.Tech Seminar schedule dates 8 EC B2 2016B.Tech Seminar schedule dates 8 EC B2 2016
B.Tech Seminar schedule dates 8 EC B2 2016
Kalyan Acharjya
 
Face recognition Face Identification
Face recognition Face IdentificationFace recognition Face Identification
Face recognition Face Identification
Kalyan Acharjya
 
Internship Presentation B.Tech Communication Networks
Internship Presentation B.Tech Communication NetworksInternship Presentation B.Tech Communication Networks
Internship Presentation B.Tech Communication Networks
Kalyan Acharjya
 

More from Kalyan Acharjya (20)

Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):Basics
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
 
Histogram Specification or Matching Problem
Histogram Specification or Matching ProblemHistogram Specification or Matching Problem
Histogram Specification or Matching Problem
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Fundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image ComponentsFundamental Steps of Digital Image Processing & Image Components
Fundamental Steps of Digital Image Processing & Image Components
 
Introduction to Image Processing:Image Modalities
Introduction to Image Processing:Image ModalitiesIntroduction to Image Processing:Image Modalities
Introduction to Image Processing:Image Modalities
 
Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)
 
Stick Diagram
Stick DiagramStick Diagram
Stick Diagram
 
Hypothesis Testing
Hypothesis TestingHypothesis Testing
Hypothesis Testing
 
Photodetector (Photodiode)
Photodetector (Photodiode)Photodetector (Photodiode)
Photodetector (Photodiode)
 
Fiber fabrication
Fiber fabricationFiber fabrication
Fiber fabrication
 
Fiber End Preparations & Splicing
Fiber End Preparations & SplicingFiber End Preparations & Splicing
Fiber End Preparations & Splicing
 
Connector losses Optical Fiber Cable
Connector losses Optical Fiber CableConnector losses Optical Fiber Cable
Connector losses Optical Fiber Cable
 
Introduction to VLSI Design
Introduction to VLSI DesignIntroduction to VLSI Design
Introduction to VLSI Design
 
Guidlines for ppt Design
Guidlines for ppt DesignGuidlines for ppt Design
Guidlines for ppt Design
 
B.Tech Seminar schedule dates 8 EC B2 2016
B.Tech Seminar schedule dates 8 EC B2 2016B.Tech Seminar schedule dates 8 EC B2 2016
B.Tech Seminar schedule dates 8 EC B2 2016
 
Face recognition Face Identification
Face recognition Face IdentificationFace recognition Face Identification
Face recognition Face Identification
 
Internship Presentation B.Tech Communication Networks
Internship Presentation B.Tech Communication NetworksInternship Presentation B.Tech Communication Networks
Internship Presentation B.Tech Communication Networks
 

Recently uploaded

Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
DuvanRamosGarzon1
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
ShahidSultan24
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
Amil Baba Dawood bangali
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
Kamal Acharya
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 

Recently uploaded (20)

Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSETECHNICAL TRAINING MANUAL   GENERAL FAMILIARIZATION COURSE
TECHNICAL TRAINING MANUAL GENERAL FAMILIARIZATION COURSE
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
addressing modes in computer architecture
addressing modes  in computer architectureaddressing modes  in computer architecture
addressing modes in computer architecture
 
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
NO1 Uk best vashikaran specialist in delhi vashikaran baba near me online vas...
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Cosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdfCosmetic shop management system project report.pdf
Cosmetic shop management system project report.pdf
 
DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 

Introduction to Image Compression

  • 1. Any Differences? Lecture by Kalyan Acharjya 1
  • 2. Disclaimer Lecture by Kalyan Acharjya 2  All images/contents used in this presentation are copyright of original owners.  The PPT has prepared for academic use only.
  • 3. So True? Lecture by Kalyan Acharjya 3
  • 4. Unit 5 Image Compression (Part 1) Kalyan Acharjya Jaipur National University, Jaipur Lecture by Kalyan Acharjya 4
  • 5. JPEG Lecture by Kalyan Acharjya Image Compression. Size-270 KB Size-22 KB “Without Compression a CD store only 200 Pictures or 8 Seconds Movie” 5
  • 6. What is Image Compression? Lecture by Kalyan Acharjya  Image compression is the process of reducing the amount of data required to represent an image. Encoder 0101100111... Decoder Original Image Decoded Image Bitstream 6
  • 7. Why Compression? Lecture by Kalyan Acharjya 7 Storage Ease of Transmission
  • 8. Compression Fundamentals Lecture by Kalyan Acharjya  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 be used for compression  The ratio of the original, uncompressed image file and the compressed file is referred to as the compression ratio 8
  • 9. Why Compression? Lecture by Kalyan Acharjya  Now, consider the transmission of video images, where we need multiple frames per second, If we consider just one second of video data that has been digitized at 640x480 pixels per frame, and requiring 15 frames per second for interlaced video, then:  Waiting 35 seconds for one second’s worth of video is not exactly real time.  Even attempting to transmit uncompressed video over the highest speed Internet connection is impractical 9
  • 10. Image Compression General Models Lecture by Kalyan Acharjya  Some image Compression Standard  JPEG-Based on DCT  JPEG 2000-Based on DWT  GIF-Graphics Interchange Format etc. Source Encoder Channel Encoder Channel Decoder Source Decoder Channel/ Store F(x, y) F’(x, y) 10
  • 11. Data ≠ Information Lecture by Kalyan Acharjya  Data and information are not synonymous terms.  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.  Image compression is an irreversible process.  Some Transform used in Image Compression  DCT-Discrete Cosine Transform  DWT-Discrete wavelet Transform etc. 11
  • 12. Lecture by Kalyan Acharjya Compression Steps  Preparation: analog to digital conversion.  Processing: transform data into a domain easier to compress.  Quantization: reduce precision at which the output is stored.  Entropy Encoding: remove redundant information in the resulting data stream. Picture Preparation Picture Processing Quanti- zation Entropy Encoding Input Image Compressed Image 12
  • 13. Image Compression-Lossy or Lossless Lecture by Kalyan Acharjya  But its resolution or features should be unchanged for human perception.  Relative Data Redundancy Rd of the first data set is Rd=1-1/CR  Where CR-Compression Ratio=n1/n2.  n1 and n2 denote the nos. of information carrying units in two data sets that represent the same information. • In Digital Image Compression, the basics data redundancies are-  Coding Redundancy  Inter pixel Redundancy  Psycho-visual Redundancy 13
  • 14. Lecture by Kalyan Acharjya 14 Compression algorithms are developed by taking advantage of the redundancy that is inherent in image data Coding Redundancy  Occurs when the data used to represent the image is not utilized in an optimal manner Interpixel Redundancy  Occurs because adjacent pixels tend to be highly correlated, in most images the brightness levels do not change rapidly, but change gradually. Psychovisual Redundancy  Some information is more important to the human visual system than other types of information Data Redundancies
  • 15. Lecture by Kalyan Acharjya 15 Part II Image Compression Unit V
  • 16. Trade Off: Quality vs. Compression Lecture by Kalyan Acharjya 16  Lossless Compression (Information Preserving) - Original can be recovered exactly. Higher quality, bigger.  Lossy Compression- Only an approximation of the original can be recovered. Lower quality, smaller.
  • 17. Lecture by Kalyan Acharjya 17 Compression algorithms are developed by taking advantage of the redundancy that is inherent in image data Coding Redundancy  Occurs when the data used to represent the image is not utilized in an optimal manner Interpixel Redundancy  Occurs because adjacent pixels tend to be highly correlated, in most images the brightness levels do not change rapidly, but change gradually. Psychovisual Redundancy  Some information is more important to the human visual system than other types of information Data Redundancies
  • 18. Coding Redundancy Lecture by Kalyan Acharjya 18  Length of the code words (e.g., 8-bit codes for grey value images) is larger than needed.  Coding redundancy is associated with the representation of information.  The information is represented in the form of codes.  If the gray levels of an image are coded in a way that uses more code symbols than absolutely necessary to represent each gray level then the resulting image is said to contain coding redundancy.
  • 19. Coding Redundancy Lecture by Kalyan Acharjya 19
  • 20. Coding Redundancy Lecture by Kalyan Acharjya 20 Measuring the Information I=Log[1/P(E)] =-log P(E)
  • 21. Measuring Information Lecture by Kalyan Acharjya 21  These methods, from information theory, are not limited to images, but apply to any digital information. Here uses “symbols” instead of “pixel values” and “sources” instead of “images”
  • 22. Shanon’s First Theorem Lecture by Kalyan Acharjya 22  Shanon looked at group of n consecutive source symbols with a single code word (rather than one code word per source symbol) and showed that-  Where Lavg is the average number of code symbols required to represents all n symbols groups.
  • 23. Coding Redundancy Lecture by Kalyan Acharjya 23 Two common algorithms: Huffman coding and LZW coding
  • 24. Fidelity Criteria Lecture by Kalyan Acharjya 24
  • 25. RMS Error Lecture by Kalyan Acharjya 25 The rms of the three images are 5.17, 15.67, and 14.17.
  • 26. Image Compression Lecture by Kalyan Acharjya 26
  • 27. Inter-Pixel Redundancy Lecture by Kalyan Acharjya 27  Inter-Pixel Spatial Redundancy:  Inter-pixel redundancy is due to the correlation between the neighboring pixels in an image.  The value of any given pixel can be predicated from the value of its neighbors (Highly Correlated).  The information carried by individual pixel is relatively small.  To reduce inter-pixel redundancy the difference between adjacent pixels can be used to represent an image.  Inter-Pixel Temporal Redundancy  Inter-Pixel temporal redundancy is the statistical correlation between pixels from successive frames in video sequence.  Temporal redundancy is also called inter-frame redundancy.  Removing a large amount of redundancy leads to efficient video compression. Algorithm: Run Length Coding
  • 28. Spatial Redundancy Lecture by Kalyan Acharjya 28 Its Histogram (Ignore White Background) Just variable length coding is not sufficient? 0 255
  • 29. Run Length Algorithm Lecture by Kalyan Acharjya 29  Lets Discuss (During Lecture!)  Consider one Binary Image  Its vector representation  Size without compression  Size after run length algorithm 1 1 1 1 1 1 1 1 1 1 0 0 1 1 1 1 1 1 0 0 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0
  • 30. Which have higher intensity (Centre Circle)? Lecture by Kalyan Acharjya 30
  • 32. Psychovisual Redundancy Lecture by Kalyan Acharjya 32  The Psychovisual redundancies exist because human perception does not involve quantitative analysis of every pixel or luminance value in the image.  It’s elimination is real visual information is possible only because the information itself is not essential for normal visual processing.
  • 33. Psychovisual Redundancy Lecture by Kalyan Acharjya 33  We’re more sensitive to differences between dark intensities than bright ones. Encode log(intensity) instead of intensity.  We’re more sensitive to differences of intensity in green than red or blue.  Use variable quantization: devote most bits to green, fewest to blue.
  • 34. Some Basic Compression Methods Lecture by Kalyan Acharjya 34  Huffman coding (Will Discuss in this Lecture- Coding Redundancy)  Golomb Coding  Arithmetic Coding  LZW Coding  Run Length Coding (Already Discussed)  Symbol Based Coding  Bit Plane Coding (You are familiar) ….many more for detail: Image Processing Gonzalez Book (Chapter 8-Image Compression)
  • 35. Huffman Coding Lecture by Kalyan Acharjya 35
  • 36. Huffman Coding Lecture by Kalyan Acharjya 36 Efficiency=H/Lavg x 100 %
  • 37. Channel Encoder & Decoder Lecture by Kalyan Acharjya 37
  • 38. Remember Lecture by Kalyan Acharjya 38  To study some standard image compression methods Like JPG, JPEG2000 etc. Suggested Further Reading Gonzalez & Woods, Digital Image Processing Book Chapter 8: Image Compression
  • 39. Thank You! Any Question Please? kalyan.acharjya@gmail.com kalyan5.blogspot.in Lecture by Kalyan Acharjya 39 Suggested Further Reading Gonzalez & Woods, Digital Image Processing Book Chapter 8: Image Compression