SlideShare a Scribd company logo
1 of 39
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

Image compression
Image compressionImage compression
Image compressionAle Johnsan
 
MPEG video compression standard
MPEG video compression standardMPEG video compression standard
MPEG video compression standardanuragjagetiya
 
Multimedia graphics and image data representation
Multimedia graphics and image data representationMultimedia graphics and image data representation
Multimedia graphics and image data representationMazin Alwaaly
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processingasodariyabhavesh
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compressionasodariyabhavesh
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processingAnuj Arora
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersSuhaila Afzana
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentationasodariyabhavesh
 
Filtering in frequency domain
Filtering in frequency domainFiltering in frequency domain
Filtering in frequency domainGowriLatha1
 
Image compression standards
Image compression standardsImage compression standards
Image compression standardskirupasuchi1996
 
ImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).pptImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).pptVikramBarapatre2
 
Wavelet based image compression technique
Wavelet based image compression techniqueWavelet based image compression technique
Wavelet based image compression techniquePriyanka Pachori
 
digital image processing
digital image processingdigital image processing
digital image processingAbinaya B
 
Digital Image Processing: Image Enhancement in the Spatial Domain
Digital Image Processing: Image Enhancement in the Spatial DomainDigital Image Processing: Image Enhancement in the Spatial Domain
Digital Image Processing: Image Enhancement in the Spatial DomainMostafa G. M. Mostafa
 
Image compression
Image compressionImage compression
Image compressionHuda Seyam
 
Transform coding
Transform codingTransform coding
Transform codingNancy K
 
Fidelity criteria in image compression
Fidelity criteria in image compressionFidelity criteria in image compression
Fidelity criteria in image compressionKadamPawan
 

What's hot (20)

Image compression
Image compressionImage compression
Image compression
 
MPEG video compression standard
MPEG video compression standardMPEG video compression standard
MPEG video compression standard
 
Multimedia graphics and image data representation
Multimedia graphics and image data representationMultimedia graphics and image data representation
Multimedia graphics and image data representation
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processing
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Filtering in frequency domain
Filtering in frequency domainFiltering in frequency domain
Filtering in frequency domain
 
Image compression standards
Image compression standardsImage compression standards
Image compression standards
 
ImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).pptImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).ppt
 
Image compression .
Image compression .Image compression .
Image compression .
 
Wavelet based image compression technique
Wavelet based image compression techniqueWavelet based image compression technique
Wavelet based image compression technique
 
Jpeg standards
Jpeg   standardsJpeg   standards
Jpeg standards
 
digital image processing
digital image processingdigital image processing
digital image processing
 
Digital Image Processing: Image Enhancement in the Spatial Domain
Digital Image Processing: Image Enhancement in the Spatial DomainDigital Image Processing: Image Enhancement in the Spatial Domain
Digital Image Processing: Image Enhancement in the Spatial Domain
 
Image compression
Image compressionImage compression
Image compression
 
Basic image processing techniques
Basic image processing techniquesBasic image processing techniques
Basic image processing techniques
 
Transform coding
Transform codingTransform coding
Transform coding
 
Fidelity criteria in image compression
Fidelity criteria in image compressionFidelity criteria in image compression
Fidelity criteria in image compression
 

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 ImageDr 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.pptxssuserd546c51
 
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 ImagesCSCJournals
 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compressionPradip 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 techniqueseSAT Publishing House
 
Digital image compression techniques
Digital image compression techniquesDigital image compression techniques
Digital image compression techniqueseSAT Journals
 
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
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image CompressionMathankumar S
 
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 compressionnnmaurya
 
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 ImagesIDES Editor
 
Iaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosineIaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosineIaetsd 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
 
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 codingIRJET Journal
 

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
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - 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)
 
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
 

More from Kalyan Acharjya

Image Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsImage Restoration (Frequency Domain Filters):Basics
Image Restoration (Frequency Domain Filters):BasicsKalyan 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 ProblemKalyan Acharjya
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image FundamentalsKalyan 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 ComponentsKalyan Acharjya
 
Introduction to Image Processing:Image Modalities
Introduction to Image Processing:Image ModalitiesIntroduction to Image Processing:Image Modalities
Introduction to Image Processing:Image ModalitiesKalyan Acharjya
 
Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)Electron Microscopy (SEM & TEM)
Electron Microscopy (SEM & TEM)Kalyan Acharjya
 
Photodetector (Photodiode)
Photodetector (Photodiode)Photodetector (Photodiode)
Photodetector (Photodiode)Kalyan Acharjya
 
Fiber End Preparations & Splicing
Fiber End Preparations & SplicingFiber End Preparations & Splicing
Fiber End Preparations & SplicingKalyan Acharjya
 
Connector losses Optical Fiber Cable
Connector losses Optical Fiber CableConnector losses Optical Fiber Cable
Connector losses Optical Fiber CableKalyan Acharjya
 
Introduction to VLSI Design
Introduction to VLSI DesignIntroduction to VLSI Design
Introduction to VLSI DesignKalyan Acharjya
 
Guidlines for ppt Design
Guidlines for ppt DesignGuidlines for ppt Design
Guidlines for ppt DesignKalyan 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 2016Kalyan Acharjya
 
Face recognition Face Identification
Face recognition Face IdentificationFace recognition Face Identification
Face recognition Face IdentificationKalyan Acharjya
 
Internship Presentation B.Tech Communication Networks
Internship Presentation B.Tech Communication NetworksInternship Presentation B.Tech Communication Networks
Internship Presentation B.Tech Communication NetworksKalyan Acharjya
 

More from Kalyan Acharjya (20)

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
 
Histogram Equalization
Histogram EqualizationHistogram Equalization
Histogram Equalization
 
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

UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxkalpana413121
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network DevicesChandrakantDivate1
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...Amil baba
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesMayuraD1
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...gragchanchal546
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Call Girls Mumbai
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Ramkumar k
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...ppkakm
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdfAldoGarca30
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...ronahami
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxMuhammadAsimMuhammad6
 

Recently uploaded (20)

UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Computer Networks Basics of Network Devices
Computer Networks  Basics of Network DevicesComputer Networks  Basics of Network Devices
Computer Networks Basics of Network Devices
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Signal Processing and Linear System Analysis
Signal Processing and Linear System AnalysisSignal Processing and Linear System Analysis
Signal Processing and Linear System Analysis
 
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
NO1 Top No1 Amil Baba In Azad Kashmir, Kashmir Black Magic Specialist Expert ...
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
Ghuma $ Russian Call Girls Ahmedabad ₹7.5k Pick Up & Drop With Cash Payment 8...
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
1_Introduction + EAM Vocabulary + how to navigate in EAM.pdf
 
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...Max. shear stress theory-Maximum Shear Stress Theory ​  Maximum Distortional ...
Max. shear stress theory-Maximum Shear Stress Theory ​ Maximum Distortional ...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 

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