SlideShare a Scribd company logo
1 of 16
Course : COMP7094 – Multimedia
Programming Foundation
Effective Period: February 2018
Multimedia Data
Compression II
Session 10
1
Learning Outcomes
• LO 2: Select multimedia elements builder
• LO 3: Compare formats in multimedia elements
Introduction to Multimedia
Introduction to Multimedia
COURSE OUTLINE
• Lossy Compression Algorithm
• Kind of Coding
Introduction to Multimedia
Introduction to Multimedia
LOSSY COMPRESSION
• The Compression ratio for image data using lossless
compression techniques ( Huffman Coding, Arithmetic
Coding, LZW) is low when the image histogram is
relatively flat.
• Lossy methods are usually adopted for image
compression in multimedia application where a higher
compression ratios is required.
• In Lossy compression , the compressed image is
usually not the same as the original image, but it is
approximation to the original image perceptually.
• So, the distortion measure is required to describe
quantitatively how close the approximation to the
original data.
Introduction
LOSSY COMPRESSION
• A distortion Measure is a mathematical quantity that
specifies how close an approximation is to its original.
• There are three distortion measure most commonly
used in image compression :
– The mean square error (MSE)
• If interested in the average pixel difference
• Where xn, yn, N are the input data sequence ,
reconstructed data sequence, and length of the
data sequence.
Distortion Measure
LOSSY COMPRESSION
• There are three distortion measure most commonly
used in image compression (Con’t) :
– Measure the Signal-to-Noise ratio (SNR)
• If interested in the size of the error relative to the
signal
• Where is the average square value of the
original data and is the MSE
Distortion Measure
LOSSY COMPRESSION
• There are three distortion measure most commonly
used in image compression (Con’t) :
• The peak-signal-to-noise ratio (PSNR)
– Which measures the size of the error relative
to the peak value of the signal xpeak
Distortion Measure
LOSSY COMPRESSION
• Lossy compression always involves a tradeoff between
rate and distortion .
• Rate is the average number of bits required to represent
each source symbol.
• The tradeoff between rate and distortion is represented
in the form of a rate-distortion function R(D).
• The rate-distortion function is meant to describe a
fundamental limit for the performance of a coding
algorithm and can be used to evaluate the performance
of different algorithms.
The Rate-Distortion Theory
LOSSY COMPRESSION
• Figure 1 show a typical rate-distortion function. The
minimum possible rate at D = 0 , no loss, is the entropy
of the source data.
• The distortion corresponding to a rate R (D) ≡ 0 is the
maximum amount of distortion incurred when “nothing”
is coded.
The Rate-Distortion Theory
Figure 1 Typical rate-
distortion function
LOSSY COMPRESSION
• Without quantization , it would losing little information.
• The input and output of each quantizer can be scalar
values or vector values.
• There are three quantizers :
– Uniform Scalar Quantization
• The goal is to minimize the distortion for a given
source input with a desired number of output
values.
– Non Uniform Scalar Quantization
• There are two common approaches :
– Llyod-Max Quantizer and Companed
Quantizer.
Quantization
LOSSY COMPRESSION
• There are three quantizers (continue):
– Vector Quantization (VQ)
• In VQ an n-component code vector represents
vectors that lie within a region in n-dimensional space.
• A collection of these code vectors forms the codebook
for the vector quantizer.
• In Fig. 2 the encoder find the closet code vector to the
input vector and outputs the associated index.
• On the decoder side , exactly the same codebook is
used. When the coded index of the input vector is
received , a simple table lookup is performed to
determine the reconstruction vector.
Quantization
LOSSY COMPRESSION
• The basic vector quantization procedure ( Fig.2)
Quantization
Figure 2 Basic Vector Quantization Procedure
KIND OF CODING
• There are three transform coding technique :
– Discrete Cosine Transform ( DCT)
• Able to perform decorrelation of the input signal in a
data-independent number manner
– Wavelet-based coding
• Represents a signal with good resolution in both time
and frequency , by using a set of basis functions
called wavelet.
• There are two types of wavelet transforms :
– The Continuous Wavelet Transform (CWT)
– The Discrete Wavelet Transform (DWT)
Transform Coding
KIND OF CODING
• The embedded Zerotree algorithm introduced by Shapiro is
an effective and computationally efficient technique in image
coding.
• This algorithm (EZW) addresses two problems :
– Obtaining the best image quality for a given bitrate
– Accomplishing this task in an embedded fashion
• An embedded code is one that contains all lower rate coded
“embedded’ at the beginning of the bit stream.
• An embedded allows the encoder to terminate the encoding
at any point and thus meet any target bitrate exactly.
• Similarly a decoder can cease to decode at any point and
produce reconstructions corresponding to all lower rate
encodings.
Embedded Zerotree of Wavelet Coefficients
KIND OF CODING
• Similarly a decoder can cease to decode at any point and
produce reconstructions corresponding to all lower rate
encodings.
• The EZW algorithms consists of two central components :
– the zerotree data structure
– The method of successive approximation quantization
Embedded Zerotree of Wavelet Coefficients
REFERENCES
• https://www.coleyconsulting.co.uk/lossy_compression_pt1
.htm
• https://www.sqa.org.uk/e-
learning/BitVect01CD/page_86.htm
16

More Related Content

Similar to COMP7094 - Multimedia Programming Foundation: Lossy Compression II

image basics and image compression
image basics and image compressionimage basics and image compression
image basics and image compressionmurugan hari
 
Teknik Pengkodean (2).pptx
Teknik Pengkodean (2).pptxTeknik Pengkodean (2).pptx
Teknik Pengkodean (2).pptxzulhelmanz
 
06 cie552 image_manipulation
06 cie552 image_manipulation06 cie552 image_manipulation
06 cie552 image_manipulationElsayed Hemayed
 
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSIONA REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSIONNancy Ideker
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image CompressionMathankumar S
 
image compression in data compression
image compression in data compressionimage compression in data compression
image compression in data compressionZaabir Ali
 
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
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.pptdudoo1
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.pptssuser6d1fca
 
Compression of digital voice and video
Compression of digital voice and videoCompression of digital voice and video
Compression of digital voice and videosangusajjan
 
Comparison of different Fingerprint Compression Techniques
Comparison of different Fingerprint Compression TechniquesComparison of different Fingerprint Compression Techniques
Comparison of different Fingerprint Compression Techniquessipij
 
project ppt on anti counterfeiting technique for credit card transaction system
project ppt on anti counterfeiting technique for credit card transaction systemproject ppt on anti counterfeiting technique for credit card transaction system
project ppt on anti counterfeiting technique for credit card transaction systemRekha dudiya
 

Similar to COMP7094 - Multimedia Programming Foundation: Lossy Compression II (20)

image basics and image compression
image basics and image compressionimage basics and image compression
image basics and image compression
 
Teknik Pengkodean (2).pptx
Teknik Pengkodean (2).pptxTeknik Pengkodean (2).pptx
Teknik Pengkodean (2).pptx
 
06 cie552 image_manipulation
06 cie552 image_manipulation06 cie552 image_manipulation
06 cie552 image_manipulation
 
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSIONA REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
D017542937
D017542937D017542937
D017542937
 
Image Compression Techniques: A Survey
Image Compression Techniques: A SurveyImage Compression Techniques: A Survey
Image Compression Techniques: A Survey
 
Data compression
Data compressionData compression
Data compression
 
image compression in data compression
image compression in data compressionimage compression in data compression
image compression in data 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)
 
Image compression
Image compressionImage compression
Image compression
 
Image compression
Image compression Image compression
Image compression
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.ppt
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.ppt
 
Compression of digital voice and video
Compression of digital voice and videoCompression of digital voice and video
Compression of digital voice and video
 
Jpeg
JpegJpeg
Jpeg
 
Comparison of different Fingerprint Compression Techniques
Comparison of different Fingerprint Compression TechniquesComparison of different Fingerprint Compression Techniques
Comparison of different Fingerprint Compression Techniques
 
Himadeep
HimadeepHimadeep
Himadeep
 
project ppt on anti counterfeiting technique for credit card transaction system
project ppt on anti counterfeiting technique for credit card transaction systemproject ppt on anti counterfeiting technique for credit card transaction system
project ppt on anti counterfeiting technique for credit card transaction system
 
Image compression
Image compressionImage compression
Image compression
 

Recently uploaded

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting DataJhengPantaleon
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 

Recently uploaded (20)

_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data_Math 4-Q4 Week 5.pptx Steps in Collecting Data
_Math 4-Q4 Week 5.pptx Steps in Collecting Data
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
9953330565 Low Rate Call Girls In Rohini Delhi NCR
9953330565 Low Rate Call Girls In Rohini  Delhi NCR9953330565 Low Rate Call Girls In Rohini  Delhi NCR
9953330565 Low Rate Call Girls In Rohini Delhi NCR
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 

COMP7094 - Multimedia Programming Foundation: Lossy Compression II

  • 1. Course : COMP7094 – Multimedia Programming Foundation Effective Period: February 2018 Multimedia Data Compression II Session 10 1
  • 2. Learning Outcomes • LO 2: Select multimedia elements builder • LO 3: Compare formats in multimedia elements Introduction to Multimedia Introduction to Multimedia
  • 3. COURSE OUTLINE • Lossy Compression Algorithm • Kind of Coding Introduction to Multimedia Introduction to Multimedia
  • 4. LOSSY COMPRESSION • The Compression ratio for image data using lossless compression techniques ( Huffman Coding, Arithmetic Coding, LZW) is low when the image histogram is relatively flat. • Lossy methods are usually adopted for image compression in multimedia application where a higher compression ratios is required. • In Lossy compression , the compressed image is usually not the same as the original image, but it is approximation to the original image perceptually. • So, the distortion measure is required to describe quantitatively how close the approximation to the original data. Introduction
  • 5. LOSSY COMPRESSION • A distortion Measure is a mathematical quantity that specifies how close an approximation is to its original. • There are three distortion measure most commonly used in image compression : – The mean square error (MSE) • If interested in the average pixel difference • Where xn, yn, N are the input data sequence , reconstructed data sequence, and length of the data sequence. Distortion Measure
  • 6. LOSSY COMPRESSION • There are three distortion measure most commonly used in image compression (Con’t) : – Measure the Signal-to-Noise ratio (SNR) • If interested in the size of the error relative to the signal • Where is the average square value of the original data and is the MSE Distortion Measure
  • 7. LOSSY COMPRESSION • There are three distortion measure most commonly used in image compression (Con’t) : • The peak-signal-to-noise ratio (PSNR) – Which measures the size of the error relative to the peak value of the signal xpeak Distortion Measure
  • 8. LOSSY COMPRESSION • Lossy compression always involves a tradeoff between rate and distortion . • Rate is the average number of bits required to represent each source symbol. • The tradeoff between rate and distortion is represented in the form of a rate-distortion function R(D). • The rate-distortion function is meant to describe a fundamental limit for the performance of a coding algorithm and can be used to evaluate the performance of different algorithms. The Rate-Distortion Theory
  • 9. LOSSY COMPRESSION • Figure 1 show a typical rate-distortion function. The minimum possible rate at D = 0 , no loss, is the entropy of the source data. • The distortion corresponding to a rate R (D) ≡ 0 is the maximum amount of distortion incurred when “nothing” is coded. The Rate-Distortion Theory Figure 1 Typical rate- distortion function
  • 10. LOSSY COMPRESSION • Without quantization , it would losing little information. • The input and output of each quantizer can be scalar values or vector values. • There are three quantizers : – Uniform Scalar Quantization • The goal is to minimize the distortion for a given source input with a desired number of output values. – Non Uniform Scalar Quantization • There are two common approaches : – Llyod-Max Quantizer and Companed Quantizer. Quantization
  • 11. LOSSY COMPRESSION • There are three quantizers (continue): – Vector Quantization (VQ) • In VQ an n-component code vector represents vectors that lie within a region in n-dimensional space. • A collection of these code vectors forms the codebook for the vector quantizer. • In Fig. 2 the encoder find the closet code vector to the input vector and outputs the associated index. • On the decoder side , exactly the same codebook is used. When the coded index of the input vector is received , a simple table lookup is performed to determine the reconstruction vector. Quantization
  • 12. LOSSY COMPRESSION • The basic vector quantization procedure ( Fig.2) Quantization Figure 2 Basic Vector Quantization Procedure
  • 13. KIND OF CODING • There are three transform coding technique : – Discrete Cosine Transform ( DCT) • Able to perform decorrelation of the input signal in a data-independent number manner – Wavelet-based coding • Represents a signal with good resolution in both time and frequency , by using a set of basis functions called wavelet. • There are two types of wavelet transforms : – The Continuous Wavelet Transform (CWT) – The Discrete Wavelet Transform (DWT) Transform Coding
  • 14. KIND OF CODING • The embedded Zerotree algorithm introduced by Shapiro is an effective and computationally efficient technique in image coding. • This algorithm (EZW) addresses two problems : – Obtaining the best image quality for a given bitrate – Accomplishing this task in an embedded fashion • An embedded code is one that contains all lower rate coded “embedded’ at the beginning of the bit stream. • An embedded allows the encoder to terminate the encoding at any point and thus meet any target bitrate exactly. • Similarly a decoder can cease to decode at any point and produce reconstructions corresponding to all lower rate encodings. Embedded Zerotree of Wavelet Coefficients
  • 15. KIND OF CODING • Similarly a decoder can cease to decode at any point and produce reconstructions corresponding to all lower rate encodings. • The EZW algorithms consists of two central components : – the zerotree data structure – The method of successive approximation quantization Embedded Zerotree of Wavelet Coefficients