SlideShare a Scribd company logo
1 of 20
IMAGE
COMPRESSION
Digital image processing
By : Huda Seyam
4/5/2018
Overview
– Introduction
– Why do we need compression?
– Benefits of Data Compression
– Fundamentals
– Types of image compression
– Fidelity criteria
– Data Compression Methods
– Coding redundancy
– Huffman coding
Introduction
– Image Compression: It is the Art & Science of reducing the amount
of data required to represent an image.
– From a mathematical viewpoint: transforming a 2-D pixel array
into a statistically uncorrelated data set
– It is the most useful and commercially successful technologies in
the field of Digital Image Processing
– The number of images compressed and decompressed daily is
innumerable
Why do we need compression?
– To understand the need for compact image representation, consider the amount of
data required to represent a 2 hour Standard Definition (SD) using 720 x 480 x 24 bit
pixel arrays.
– A video is a sequence of video frames where each frame is a full color still image.
– Because video player must display the frames sequentially at rates near 30fps, SD
video data must be accessed at
30fps x (720x480)ppf x 3bpp = 31,104,000bps
– Fps : frames per second
– ppf : pixels per frame
– bpp :bytes per pixel & bps
– Bps: bytes per second
– Thus a 2 hour movie consists of 31,104,000 bps x (60^2) sph x 2 hrs
≈ 2.24 x 1011 bytes. OR 224GB of data
• sph = second per hour
– The compression must be even higher for HD, where image resolution
reach 1920 x 1080 x 24 bits/image.
– The objective of image compression is to reduce irrelevant and
redundant image data in order to be able to store or transmit data in an
efficient form
– Compression can reduce the transmission time by a factor of around 2 to
10 or more
Follow
Benefits of Data Compression
– Make optimal use of limited storage space
– Save time and help to optimize resources
• If compression and decompression are done in I/O processor,
less time is required to move data to or from storage subsystem,
freeing I/O bus for other work
• In sending data over communication line: less time to transmit
and less storage to host
Fundamentals
– Data Compression: It refers to the process of reducing the amount
of data required to represent a given quantity of information.
– Data Vs Information
– Data and Information are not the same thing; data are the means
by which information is conveyed.
– Because various amount of data can be used to represent the
same amount of information, representations that contain
irrelevant or repeated information are said to contain redundant
data
Fundamentals
– Let b & b’ denote the number of bits in two representations of the
same information, the relative data redundancy R of the
representation with b bits is
– R = 1 – (1/C); where, C commonly called the compression ratio, is
defined as C = b / b’
– If C = 10 (or 10:1), for larger representation has 10 bits of data for
every 1 bit of data in smaller representation.
– So, R = 0.9, indicating that 90% of its data is redundant.
Types of image compression
• Lossless image compression : is a compression algorithm that
allows the original image to be perfectly reconstructed from the
original data.
• Lossy image compression : is a type of compression where a
certain amount of information is discarded which means that some
data are lost and hence the image cannot be decompressed with
100% originality
– Used for compressing images and video files (our eyes cannot
distinguish subtle changes, so lossy data is acceptable).
Data compression
Original compressed decompressed
– Lossless compression : x = x’
– Lossy compression : x != x’
– Redundant data is removed in compression and
added during decompression
encoderdecoderx y X’
Fidelity criteria
Follow
Data Compression Methods
• Data
compression is
about storing
and sending a
smaller number
of bits.
• There’re two
major categories
for methods to
compress data:
lossless and
lossy methods
compress pictures and graphics compress video compress audio
Coding redundancy
– A code is a system of symbols used to
represent a body of information or sets of
events.
– Each piece of event is assigned a code
word (code symbol). The number of
symbols in each code word is its length
Variable-length coding
Average
24/8 30/8
=3bit/symbol = 3.75 bit/symbol
Huffman coding
– is an entropy encoding algorithm
used for lossless data compression.
– The term refers to the use of a
variable length code table for
encoding a source symbol (such as
a character in a file) where the
variable-length code table has
been derived in a particular way
based on the estimated probability
of occurrence for each possible
value of the of the source symbol
Huffman coding
Huffman coding
Quiz
– The objective of image compression is to reduce
irrelevant and redundant image data ( )
– Compression can increase the transmission time ( )
– Huffman coding used for lossless data
compression( )
– Lossy compression Used for compressing images
and video files ( )
Reference
– https://www.slideshare.net/pareshkamble/image-compression-
12093925?qid=7c802ba8-a832-41cd-8aca-
f44cb0c685cd&v=&b=&from_search=1
– https://www.slideshare.net/blackdevilvikas/data-compression-43937814
– https://www.slideshare.net/AishwaryaKM1/jpeg-image-compression-
56894348?qid=fc26de2d-5594-4bcc-9098-
f558b173683a&v=&b=&from_search=3
– https://www.youtube.com/watch?v=XJTV2aLfg_k&t=1687s

More Related Content

What's hot

Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
Ashish Kumar
 

What's hot (20)

Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Digital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency DomainDigital Image Processing: Image Enhancement in the Frequency Domain
Digital Image Processing: Image Enhancement in the Frequency Domain
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
Image compression Algorithms
Image compression AlgorithmsImage compression Algorithms
Image compression Algorithms
 
Image Filtering in the Frequency Domain
Image Filtering in the Frequency DomainImage Filtering in the Frequency Domain
Image Filtering in the Frequency Domain
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
 
Image enhancement
Image enhancementImage enhancement
Image enhancement
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation model
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)Image Segmentation (Digital Image Processing)
Image Segmentation (Digital Image Processing)
 
Image Restoration
Image RestorationImage Restoration
Image Restoration
 
Image Compression
Image CompressionImage Compression
Image Compression
 
image enhancement
 image enhancement image enhancement
image enhancement
 
Jpeg dct
Jpeg dctJpeg dct
Jpeg dct
 
Image compression in digital image processing
Image compression in digital image processingImage compression in digital image processing
Image compression in digital image processing
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
 
Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)Spatial Filters (Digital Image Processing)
Spatial Filters (Digital Image Processing)
 
Segmentation
SegmentationSegmentation
Segmentation
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 

Similar to Image compression

Image compression introductory presentation
Image compression introductory presentationImage compression introductory presentation
Image compression introductory presentation
Tariq Abbas
 

Similar to Image compression (20)

Image compression
Image compressionImage compression
Image compression
 
Enhanced Image Compression Using Wavelets
Enhanced Image Compression Using WaveletsEnhanced Image Compression Using Wavelets
Enhanced Image Compression Using Wavelets
 
Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)
 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compression
 
Image compression using discrete cosine transform
Image compression using discrete cosine transformImage compression using discrete cosine transform
Image compression using discrete cosine transform
 
Lecture 6 -_presentation_layer
Lecture 6 -_presentation_layerLecture 6 -_presentation_layer
Lecture 6 -_presentation_layer
 
M.sc.iii sem digital image processing unit v
M.sc.iii sem digital image processing unit vM.sc.iii sem digital image processing unit v
M.sc.iii sem digital image processing unit v
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Data compression
Data compressionData compression
Data compression
 
Video compression
Video compressionVideo compression
Video compression
 
Pbl1
Pbl1Pbl1
Pbl1
 
Presentation on Image Compression
Presentation on Image Compression Presentation on Image Compression
Presentation on Image Compression
 
Data compression techniques
Data compression techniquesData compression techniques
Data compression techniques
 
Design of Image Compression Algorithm using MATLAB
Design of Image Compression Algorithm using MATLABDesign of Image Compression Algorithm using MATLAB
Design of Image Compression Algorithm using MATLAB
 
Dr.U.Priya, Head & Assistant Professor of Commerce, Bon Secours for Women, Th...
Dr.U.Priya, Head & Assistant Professor of Commerce, Bon Secours for Women, Th...Dr.U.Priya, Head & Assistant Professor of Commerce, Bon Secours for Women, Th...
Dr.U.Priya, Head & Assistant Professor of Commerce, Bon Secours for Women, Th...
 
Affable Compression through Lossless Column-Oriented Huffman Coding Technique
Affable Compression through Lossless Column-Oriented Huffman Coding TechniqueAffable Compression through Lossless Column-Oriented Huffman Coding Technique
Affable Compression through Lossless Column-Oriented Huffman Coding Technique
 
Video compression
Video compressionVideo compression
Video compression
 
Image compression introductory presentation
Image compression introductory presentationImage compression introductory presentation
Image compression introductory presentation
 
Why Image compression is Necessary?
Why Image compression is Necessary?Why Image compression is Necessary?
Why Image compression is Necessary?
 
Image_Compression_Slide_Set_1.pptx
Image_Compression_Slide_Set_1.pptxImage_Compression_Slide_Set_1.pptx
Image_Compression_Slide_Set_1.pptx
 

More from Huda Seyam

More from Huda Seyam (14)

Blockchain Development Kit
Blockchain Development KitBlockchain Development Kit
Blockchain Development Kit
 
Traffic Sign Detection
Traffic Sign Detection Traffic Sign Detection
Traffic Sign Detection
 
Detect HTTP Brute Force attack using Snort IDS/IPS on PFSense Firewall
Detect HTTP Brute Force attack using Snort IDS/IPS on PFSense FirewallDetect HTTP Brute Force attack using Snort IDS/IPS on PFSense Firewall
Detect HTTP Brute Force attack using Snort IDS/IPS on PFSense Firewall
 
Snort Intrusion Detection / Prevention System on PFSense Firewall
Snort Intrusion Detection / Prevention System  on PFSense FirewallSnort Intrusion Detection / Prevention System  on PFSense Firewall
Snort Intrusion Detection / Prevention System on PFSense Firewall
 
Poisson Distribution
Poisson DistributionPoisson Distribution
Poisson Distribution
 
Docker
DockerDocker
Docker
 
WEP/WPA attacks
WEP/WPA attacksWEP/WPA attacks
WEP/WPA attacks
 
Security Policy
Security PolicySecurity Policy
Security Policy
 
Course registration system
Course registration systemCourse registration system
Course registration system
 
Network security situational awareness
Network security situational awarenessNetwork security situational awareness
Network security situational awareness
 
Wireless Site Survey
Wireless Site SurveyWireless Site Survey
Wireless Site Survey
 
Speech Recognition
Speech Recognition Speech Recognition
Speech Recognition
 
Transport Layer Security
Transport Layer SecurityTransport Layer Security
Transport Layer Security
 
Software prototyping
Software prototyping  Software prototyping
Software prototyping
 

Recently uploaded

Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Recently uploaded (20)

MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​Elevate Developer Efficiency & build GenAI Application with Amazon Q​
Elevate Developer Efficiency & build GenAI Application with Amazon Q​
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..Understanding the FAA Part 107 License ..
Understanding the FAA Part 107 License ..
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal OntologySix Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 

Image compression

  • 2. Overview – Introduction – Why do we need compression? – Benefits of Data Compression – Fundamentals – Types of image compression – Fidelity criteria – Data Compression Methods – Coding redundancy – Huffman coding
  • 3. Introduction – Image Compression: It is the Art & Science of reducing the amount of data required to represent an image. – From a mathematical viewpoint: transforming a 2-D pixel array into a statistically uncorrelated data set – It is the most useful and commercially successful technologies in the field of Digital Image Processing – The number of images compressed and decompressed daily is innumerable
  • 4. Why do we need compression? – To understand the need for compact image representation, consider the amount of data required to represent a 2 hour Standard Definition (SD) using 720 x 480 x 24 bit pixel arrays. – A video is a sequence of video frames where each frame is a full color still image. – Because video player must display the frames sequentially at rates near 30fps, SD video data must be accessed at 30fps x (720x480)ppf x 3bpp = 31,104,000bps – Fps : frames per second – ppf : pixels per frame – bpp :bytes per pixel & bps – Bps: bytes per second
  • 5. – Thus a 2 hour movie consists of 31,104,000 bps x (60^2) sph x 2 hrs ≈ 2.24 x 1011 bytes. OR 224GB of data • sph = second per hour – The compression must be even higher for HD, where image resolution reach 1920 x 1080 x 24 bits/image. – The objective of image compression is to reduce irrelevant and redundant image data in order to be able to store or transmit data in an efficient form – Compression can reduce the transmission time by a factor of around 2 to 10 or more Follow
  • 6. Benefits of Data Compression – Make optimal use of limited storage space – Save time and help to optimize resources • If compression and decompression are done in I/O processor, less time is required to move data to or from storage subsystem, freeing I/O bus for other work • In sending data over communication line: less time to transmit and less storage to host
  • 7. Fundamentals – Data Compression: It refers to the process of reducing the amount of data required to represent a given quantity of information. – Data Vs Information – Data and Information are not the same thing; data are the means by which information is conveyed. – Because various amount of data can be used to represent the same amount of information, representations that contain irrelevant or repeated information are said to contain redundant data
  • 8. Fundamentals – Let b & b’ denote the number of bits in two representations of the same information, the relative data redundancy R of the representation with b bits is – R = 1 – (1/C); where, C commonly called the compression ratio, is defined as C = b / b’ – If C = 10 (or 10:1), for larger representation has 10 bits of data for every 1 bit of data in smaller representation. – So, R = 0.9, indicating that 90% of its data is redundant.
  • 9. Types of image compression • Lossless image compression : is a compression algorithm that allows the original image to be perfectly reconstructed from the original data. • Lossy image compression : is a type of compression where a certain amount of information is discarded which means that some data are lost and hence the image cannot be decompressed with 100% originality – Used for compressing images and video files (our eyes cannot distinguish subtle changes, so lossy data is acceptable).
  • 10. Data compression Original compressed decompressed – Lossless compression : x = x’ – Lossy compression : x != x’ – Redundant data is removed in compression and added during decompression encoderdecoderx y X’
  • 13. Data Compression Methods • Data compression is about storing and sending a smaller number of bits. • There’re two major categories for methods to compress data: lossless and lossy methods compress pictures and graphics compress video compress audio
  • 14. Coding redundancy – A code is a system of symbols used to represent a body of information or sets of events. – Each piece of event is assigned a code word (code symbol). The number of symbols in each code word is its length
  • 16. Huffman coding – is an entropy encoding algorithm used for lossless data compression. – The term refers to the use of a variable length code table for encoding a source symbol (such as a character in a file) where the variable-length code table has been derived in a particular way based on the estimated probability of occurrence for each possible value of the of the source symbol
  • 19. Quiz – The objective of image compression is to reduce irrelevant and redundant image data ( ) – Compression can increase the transmission time ( ) – Huffman coding used for lossless data compression( ) – Lossy compression Used for compressing images and video files ( )
  • 20. Reference – https://www.slideshare.net/pareshkamble/image-compression- 12093925?qid=7c802ba8-a832-41cd-8aca- f44cb0c685cd&v=&b=&from_search=1 – https://www.slideshare.net/blackdevilvikas/data-compression-43937814 – https://www.slideshare.net/AishwaryaKM1/jpeg-image-compression- 56894348?qid=fc26de2d-5594-4bcc-9098- f558b173683a&v=&b=&from_search=3 – https://www.youtube.com/watch?v=XJTV2aLfg_k&t=1687s