SlideShare a Scribd company logo
16
Most read
20
Most read
21
Most read
IMAGE COMPRESSION
Comparison between JPEG(DCT) and JPEG
2000(DWT) compression standards
Presented by
Rishab Shah
(1313048 )
Introduction
Need of Compression
 Image compression is done to reduce the number
of bits required to store the same image
 Lesser the number of bits per pixel, lesser is the
space consumed to store the Image
Example,
256X256, 8 bpp image
Before Compression:
Space consumed= (28x28x8 / 23x210 ) = 64KB
After Compression (assuming 5bpp)
Space consumed= (28x28x5 / 23x210 ) = 40KB
Space saved = 24KB
Compression Ratio
 It is defined in 2 ways
 Definition 1: It is defined as the ratio of number of
bits required after compression to the number of
bits required before compression
Used by MATLAB software
 Definition 2: It is defined as the ratio of number of
bits saved after compression to the number of bits
required before compression
Theoretical definition
Previous example,
Definition 1 Definition 2
Compression ratio=
0.625(40/64)
Compression Ratio
=0.375(24/64)
Types of Compression
 Lossy Compression: When the image is
uncompressed, some part of the original data is
completely lost
A redundant information is eliminated
 Lossless compression: When the image is
uncompressed, every single bit of data is restoredLossless Compression Lossy Compression
No loss of information Some loss of information
MSE =0 MSE ≠0
PSNR =∞ PSNR ‹∞
Different methods
1)Run Length Encoding
2)Huffman codes
3)Arithmetic codes
4)Dictionary(LZW)
Different methods
1)Improved Grey Scale
Quantization (IGS)
2)DPCM
3)Transform coding
General Block Diagram for compression
• Transformer: It transforms the input data into a format
to reduce inter-pixel redundancies in the input image
• Higher the capability of compressing information in
fewer coefficients, better the transform. Hence, DCT
and DWT are used
• Quantizer: operation is not reversible and must be
omitted if lossless compression is desired
• Reduces the psych visual redundancies of the input
image
• Symbol (entropy) encoder: It creates a fixed or
variable-length code to represent the quantizer’s
output and maps the output in accordance with the
Compression process for JPEG
 Original image is divided into blocks of 8 x 8.
 Pixel values of a black and white image range from 0-
255 but DCT is designed to work on pixel values
ranging from -128 to 127. Therefore each block is
modified to work in the range
 Equation is used to calculate DCT matrix.
 DCT is applied to each block by multiplying the modified
block with DCT matrix on the left and transpose of DCT
matrix on its right.
 Each block is then compressed through quantization.
 Quantized matrix is then entropy encoded.
 Compressed image is reconstructed through reverse
process.
 Inverse DCT is used for decompression
Mathematical expression for DCT
Results of DCT
Original Image After 8X8 DCT After 4X4 DCT
As the number of coefficients increases quality of the
image decreases whereas compression ratio continues
to increase
SNR value increases with number of
coefficients.
Advantages of DCT
 It has been implemented in single integrated circuit
 It has the ability to pack most information in fewest
coefficients
 It minimizes the block like appearance called
blocking artifact that results when boundaries
between sub-images become visible
JPEG 2000
Addresses the problems like
 Low bit rate compression
 Large images
 Single Decompression Architecture
 Transmission in Noisy Environment
 Computer generated imaginary
 Compound Documents
Compression steps for JPEG 2000
 Digitize the source image into a signal s, which is a
string of numbers.
 Characterized by its intensity levels or scales of gray
which range from 0(black) to 255(white)
 Decompose the signal into a sequence of wavelet
coefficients w.
 Use threshold to modify the wavelet coefficients from w
to w’.
 Use quantization to convert w’ to a sequence q.
 Entropy encoding is applied to convert q into a
sequence e.
Mathematical expression for DWT
The two-dimensional DWT of an image function of
size may be expressed as
The image function is obtained through the
2-D IDWT, as given below
Results of DWT
As threshold value increases blurring of image continues to
Advantages of JPEG 2000
 Reduced costs for storage and maintenance
 Smaller file size compared to uncompressed TIFF
 One master replaces multiple derivatives
 Enhanced handling of large images
 Fast access to image subsets
 Intelligent metadata support
 Enables new opportunities
Comparison of JPEG and JPEG2000
Performance
Original Image JPEG JPEG2000
Compressed images at 1bpp
Comparison between DCT and DWT based
on various performance parameters
The above Graphs shows that for DCT based image compression ,as
the window size increases MSE increases proportionately whereas
for DWT based image compression shows that MSE first decreases
with increase in window size and then starts to increase slowly with
finally attaining a constant value.
A) Mean Squared Error vs Window Size
Compression increases with increase in window size for
DCT and decreases with increase in window size for DWT.
B) Compression vs Window Size
Results and Conclusion
 DCT is used for transformation in JPEG standard. DCT
performs efficiently at medium bit rates. Disadvantage with
DCT is that only spatial correlation of the pixels inside the
single 2-D block is considered and the correlation from the
pixels of the neighboring blocks is neglected. Blocks cannot
be decorrelated at their boundaries using DCT.
 DWT is used as basis for transformation in JPEG 2000
standard. DWT provides high quality compression at low bit
rates. The use of larger DWT basis functions or wavelet filters
produces blurring near edges in images.
 DWT performs better than DCT in the context that it avoids
blocking artifacts which degrade the reconstructed images.
However, DWT provides lower quality than JPEG at the Low
compression rates. DWT requires longer compression time
THANK YOU!

More Related Content

PDF
Video Compression
PPTX
PDF
Chapter 5 - Data Compression
PPTX
Jpeg dct
PPTX
Image compression standards
PPTX
PPT
Data compression
PPT
Compression
Video Compression
Chapter 5 - Data Compression
Jpeg dct
Image compression standards
Data compression
Compression

What's hot (20)

PPTX
Transform coding
PDF
IMAGE COMPRESSION AND DECOMPRESSION SYSTEM
PPTX
Data compression
PPTX
Wavelet based image compression technique
PPTX
Data Compression (Lossy and Lossless)
PPTX
Multimedia lossy compression algorithms
PPTX
Image Steganography using LSB
PPTX
Text compression
PPTX
digital image processing
PPTX
SPIHT(Set Partitioning In Hierarchical Trees)
PPTX
Digital watermarking
PDF
Digital Image Processing - Image Compression
PPT
Lzw coding technique for image compression
ODP
image compression ppt
PPTX
MPEG video compression standard
PPTX
Image compression .
PPTX
Bit plane coding
PPTX
Comparison between Lossy and Lossless Compression
PPTX
Lzw compression ppt
PPT
Image segmentation ppt
Transform coding
IMAGE COMPRESSION AND DECOMPRESSION SYSTEM
Data compression
Wavelet based image compression technique
Data Compression (Lossy and Lossless)
Multimedia lossy compression algorithms
Image Steganography using LSB
Text compression
digital image processing
SPIHT(Set Partitioning In Hierarchical Trees)
Digital watermarking
Digital Image Processing - Image Compression
Lzw coding technique for image compression
image compression ppt
MPEG video compression standard
Image compression .
Bit plane coding
Comparison between Lossy and Lossless Compression
Lzw compression ppt
Image segmentation ppt
Ad

Viewers also liked (20)

PPTX
JPEG Image Compression
PDF
JPEG Image Compression
PPT
A quick illustration of jpeg 2000
PPT
Image compression jpeg coding standards
PPTX
Image Compression
PPTX
Mp3 kodlama standarti
PDF
Digital Image Watermarking using DWT and SVD
PPTX
DCT image compression
PPTX
Image compression
PPTX
Image compression and jpeg
PDF
Introduction to Digital Image Processing Using MATLAB
PPTX
discrete wavelet transform
PDF
Energy Efficient Compression of Shock Data using Compressed Sensing
PDF
JPEG 1991 GK Wallace paper on JPEG standard
PPTX
Danang Jaya, Query Adika Rezylana - Steganografi DCT dengan Memanfaatkan Apli...
PDF
akashreport
PPTX
Scaling compression2
PPTX
6 big google buys of 2012
PPT
Common image compression formats
DOCX
Project004
JPEG Image Compression
JPEG Image Compression
A quick illustration of jpeg 2000
Image compression jpeg coding standards
Image Compression
Mp3 kodlama standarti
Digital Image Watermarking using DWT and SVD
DCT image compression
Image compression
Image compression and jpeg
Introduction to Digital Image Processing Using MATLAB
discrete wavelet transform
Energy Efficient Compression of Shock Data using Compressed Sensing
JPEG 1991 GK Wallace paper on JPEG standard
Danang Jaya, Query Adika Rezylana - Steganografi DCT dengan Memanfaatkan Apli...
akashreport
Scaling compression2
6 big google buys of 2012
Common image compression formats
Project004
Ad

Similar to Comparison between JPEG(DCT) and JPEG 2000(DWT) compression standards (20)

PPT
4_14755_CS411_20182019_1__1_1_ImageCompression 1.ppt
PDF
A COMPARATIVE STUDY OF IMAGE COMPRESSION ALGORITHMS
PDF
steganography based image compression
PDF
Jpeg image compression using discrete cosine transform a survey
PPTX
JPEG and MPEG Compression in Digital Image Processing.pptx
PDF
H0144952
PDF
www.ijerd.com
PPT
introduction to jpeg for image proce.ppt
PPT
Why Image compression is Necessary?
PPTX
Image compression and it’s security1
PDF
Jv2517361741
PDF
Jv2517361741
PDF
CyberSec_JPEGcompressionForensics.pdf
PPTX
Jpeg standards
PPT
image processing for jpeg presentati.ppt
PPT
Mmclass4
PDF
Paper id 25201490
PDF
An approach for color image compression of bmp and tiff images using dct and dwt
PPT
Multimedia image compression standards
DOC
Image Compression Using Discrete Cosine Transform & Discrete Wavelet Transform
4_14755_CS411_20182019_1__1_1_ImageCompression 1.ppt
A COMPARATIVE STUDY OF IMAGE COMPRESSION ALGORITHMS
steganography based image compression
Jpeg image compression using discrete cosine transform a survey
JPEG and MPEG Compression in Digital Image Processing.pptx
H0144952
www.ijerd.com
introduction to jpeg for image proce.ppt
Why Image compression is Necessary?
Image compression and it’s security1
Jv2517361741
Jv2517361741
CyberSec_JPEGcompressionForensics.pdf
Jpeg standards
image processing for jpeg presentati.ppt
Mmclass4
Paper id 25201490
An approach for color image compression of bmp and tiff images using dct and dwt
Multimedia image compression standards
Image Compression Using Discrete Cosine Transform & Discrete Wavelet Transform

Recently uploaded (20)

PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Construction Project Organization Group 2.pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPT
Mechanical Engineering MATERIALS Selection
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
UNIT-1 - COAL BASED THERMAL POWER PLANTS
PPTX
bas. eng. economics group 4 presentation 1.pptx
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
DOCX
573137875-Attendance-Management-System-original
PPTX
Internet of Things (IOT) - A guide to understanding
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Embodied AI: Ushering in the Next Era of Intelligent Systems
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Construction Project Organization Group 2.pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Foundation to blockchain - A guide to Blockchain Tech
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
Mechanical Engineering MATERIALS Selection
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
UNIT-1 - COAL BASED THERMAL POWER PLANTS
bas. eng. economics group 4 presentation 1.pptx
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
573137875-Attendance-Management-System-original
Internet of Things (IOT) - A guide to understanding
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Mitigating Risks through Effective Management for Enhancing Organizational Pe...

Comparison between JPEG(DCT) and JPEG 2000(DWT) compression standards

  • 1. IMAGE COMPRESSION Comparison between JPEG(DCT) and JPEG 2000(DWT) compression standards Presented by Rishab Shah (1313048 )
  • 2. Introduction Need of Compression  Image compression is done to reduce the number of bits required to store the same image  Lesser the number of bits per pixel, lesser is the space consumed to store the Image Example, 256X256, 8 bpp image Before Compression: Space consumed= (28x28x8 / 23x210 ) = 64KB After Compression (assuming 5bpp) Space consumed= (28x28x5 / 23x210 ) = 40KB Space saved = 24KB
  • 3. Compression Ratio  It is defined in 2 ways  Definition 1: It is defined as the ratio of number of bits required after compression to the number of bits required before compression Used by MATLAB software  Definition 2: It is defined as the ratio of number of bits saved after compression to the number of bits required before compression Theoretical definition Previous example, Definition 1 Definition 2 Compression ratio= 0.625(40/64) Compression Ratio =0.375(24/64)
  • 4. Types of Compression  Lossy Compression: When the image is uncompressed, some part of the original data is completely lost A redundant information is eliminated  Lossless compression: When the image is uncompressed, every single bit of data is restoredLossless Compression Lossy Compression No loss of information Some loss of information MSE =0 MSE ≠0 PSNR =∞ PSNR ‹∞ Different methods 1)Run Length Encoding 2)Huffman codes 3)Arithmetic codes 4)Dictionary(LZW) Different methods 1)Improved Grey Scale Quantization (IGS) 2)DPCM 3)Transform coding
  • 5. General Block Diagram for compression • Transformer: It transforms the input data into a format to reduce inter-pixel redundancies in the input image • Higher the capability of compressing information in fewer coefficients, better the transform. Hence, DCT and DWT are used • Quantizer: operation is not reversible and must be omitted if lossless compression is desired • Reduces the psych visual redundancies of the input image • Symbol (entropy) encoder: It creates a fixed or variable-length code to represent the quantizer’s output and maps the output in accordance with the
  • 6. Compression process for JPEG  Original image is divided into blocks of 8 x 8.  Pixel values of a black and white image range from 0- 255 but DCT is designed to work on pixel values ranging from -128 to 127. Therefore each block is modified to work in the range  Equation is used to calculate DCT matrix.  DCT is applied to each block by multiplying the modified block with DCT matrix on the left and transpose of DCT matrix on its right.  Each block is then compressed through quantization.  Quantized matrix is then entropy encoded.  Compressed image is reconstructed through reverse process.  Inverse DCT is used for decompression
  • 8. Results of DCT Original Image After 8X8 DCT After 4X4 DCT
  • 9. As the number of coefficients increases quality of the image decreases whereas compression ratio continues to increase
  • 10. SNR value increases with number of coefficients.
  • 11. Advantages of DCT  It has been implemented in single integrated circuit  It has the ability to pack most information in fewest coefficients  It minimizes the block like appearance called blocking artifact that results when boundaries between sub-images become visible
  • 12. JPEG 2000 Addresses the problems like  Low bit rate compression  Large images  Single Decompression Architecture  Transmission in Noisy Environment  Computer generated imaginary  Compound Documents
  • 13. Compression steps for JPEG 2000  Digitize the source image into a signal s, which is a string of numbers.  Characterized by its intensity levels or scales of gray which range from 0(black) to 255(white)  Decompose the signal into a sequence of wavelet coefficients w.  Use threshold to modify the wavelet coefficients from w to w’.  Use quantization to convert w’ to a sequence q.  Entropy encoding is applied to convert q into a sequence e.
  • 14. Mathematical expression for DWT The two-dimensional DWT of an image function of size may be expressed as The image function is obtained through the 2-D IDWT, as given below
  • 15. Results of DWT As threshold value increases blurring of image continues to
  • 16. Advantages of JPEG 2000  Reduced costs for storage and maintenance  Smaller file size compared to uncompressed TIFF  One master replaces multiple derivatives  Enhanced handling of large images  Fast access to image subsets  Intelligent metadata support  Enables new opportunities
  • 17. Comparison of JPEG and JPEG2000 Performance Original Image JPEG JPEG2000 Compressed images at 1bpp
  • 18. Comparison between DCT and DWT based on various performance parameters The above Graphs shows that for DCT based image compression ,as the window size increases MSE increases proportionately whereas for DWT based image compression shows that MSE first decreases with increase in window size and then starts to increase slowly with finally attaining a constant value. A) Mean Squared Error vs Window Size
  • 19. Compression increases with increase in window size for DCT and decreases with increase in window size for DWT. B) Compression vs Window Size
  • 20. Results and Conclusion  DCT is used for transformation in JPEG standard. DCT performs efficiently at medium bit rates. Disadvantage with DCT is that only spatial correlation of the pixels inside the single 2-D block is considered and the correlation from the pixels of the neighboring blocks is neglected. Blocks cannot be decorrelated at their boundaries using DCT.  DWT is used as basis for transformation in JPEG 2000 standard. DWT provides high quality compression at low bit rates. The use of larger DWT basis functions or wavelet filters produces blurring near edges in images.  DWT performs better than DCT in the context that it avoids blocking artifacts which degrade the reconstructed images. However, DWT provides lower quality than JPEG at the Low compression rates. DWT requires longer compression time