SlideShare a Scribd company logo
1 of 20
Image Compression
Presented by : Abdelrahman Almassry
Supervisor : Dr. Samy Salmah
Content :
• Concept of Image Compression.
• Image Compression Models.
• Types of Image Compression.
• Variable-length Coding.
Image Compression
• Refers to reducing the amount of data required to represent a digital
image.
• Image compression address the problem of reducing the amount of
data required to represent a digital image with no significant loss of
information.
Why…….?
• Principal objective: To minimize the number of bits required to
represent an image.
• Reducing the image storage.
• Transmission requirements.
Image Compression
• Image = Information + Redundant Data
• Three Principal type of Data Redundancies
used in Image Compression :
Coding
Redundancy
Interpixel
Redundancy
Psychovisual
Redundancy
Image Compression
 The number of bits used to represent each pixel is based
on number of gray levels used to represent the image
 We represent the entire image by using least possible
number of bits. In this way we can reduce the coding
redundancy.
Coding Redundancy
Image Compression
 It is also called Spatial & Temporal redundancy.
 In an image each pixel depends on its neighbors.
 If spatial resolutions is high then inter pixel redundancy is
high.
Interpixel Redundancy
Image Compression
 Certain information has relatively less importance for the
quality of image perception. This information is said to be
psychovisually redundant.
 Removing this type of redundancy is a lossy process and the
lost information cannot be recovered.
 The method used to remove this type of redundancy is called
quantization which means the mapping of a broad range of
input values to a limited number of output values.
Psychovisual Redundancy
Image Compression Model
• The image compression system is composed of 2 distinct functional
component: an encoder & a decoder.
Source
Encoder
Channel
Encoder
Channel
Channel
Decoder
Source
Decoder
Encoder Decoder
Compression
(No redundancies)
Noise tolerant representation
(additional bits are included to
guarantee detection &
correction of error due to
transmission over channel.-
Hamming Code)
Image Compression Model
• Encoder performs Compression while Decoder performs Decompression.
Encoder is used to remove the redundancies through a series of 3
independent operations.
Mapper Quantizer
Symbol
Encoder
Channel
No Interpixel
redundancies
(Reversible)
No
Psychovisual
redundancies
(non-
reversible)
No Coding
redundancies
(Reversible)
Encoder
Image Compression Model
• Inverse steps are performed .
Channel
Symbol
Encoder
De-quantizer Inverse Mapper
Decoder
Types of Image Compression
• Image data compression methods fall into two common categories:
Lossy
compression
Lossless
compression
Lossy Compression
A lossy compression method is one where compressing
data and then decompressing it retrieves data that may
well be different from the original, but is close enough to
be useful in some way.
Lossy Compression
Used to compress multimedia
data (audio, video, still images),
especially in applications such
as streaming media and
internet telephony.
Provide higher levels of data
reduction
Result in a less than perfect
reproduction of the original
image
Lossless Compression
• Also called Information preserving compression.
• Compress and decompress images without losing information.
Variable-length Coding
• The coding redundancy can be minimized by using a variable-
length coding method where the shortest codes are assigned to
most probable gray levels.
• The most popular variable-length coding method is the Huffman
Coding.
Huffman Coding
• The Huffman coding involves the following steps.
1) Find the gray – level probabilities for the image by finding the
histogram.
2) Order the input probabilities (histogram magnitudes) from smallest to
largest.
3) Combine the smallest two. (add the two smallest)
4) GOTO step 2, until only two probabilities are left.
• Ex.
• Find 010100111100 using
Huffman.
• Find the avg no of bits
required to represent
each pixel(Lavg).
Huffman
Image compression

More Related Content

What's hot

What's hot (20)

Jpeg dct
Jpeg dctJpeg dct
Jpeg dct
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Compression: Video Compression (MPEG and others)
Compression: Video Compression (MPEG and others)Compression: Video Compression (MPEG and others)
Compression: Video Compression (MPEG and others)
 
Comparison between JPEG(DCT) and JPEG 2000(DWT) compression standards
Comparison between JPEG(DCT) and JPEG 2000(DWT) compression standardsComparison between JPEG(DCT) and JPEG 2000(DWT) compression standards
Comparison between JPEG(DCT) and JPEG 2000(DWT) compression standards
 
Lzw coding technique for image compression
Lzw coding technique for image compressionLzw coding technique for image compression
Lzw coding technique for image compression
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Presentation of Lossy compression
Presentation of Lossy compressionPresentation of Lossy compression
Presentation of Lossy compression
 
Digital Image Processing: An Introduction
Digital Image Processing: An IntroductionDigital Image Processing: An Introduction
Digital Image Processing: An Introduction
 
Introduction to Image Compression
Introduction to Image CompressionIntroduction to Image Compression
Introduction to Image Compression
 
Data Compression (Lossy and Lossless)
Data Compression (Lossy and Lossless)Data Compression (Lossy and Lossless)
Data Compression (Lossy and Lossless)
 
Bit plane coding
Bit plane codingBit plane coding
Bit plane coding
 
lecture on data compression
lecture on data compressionlecture on data compression
lecture on data compression
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 
Fundamentals of Data compression
Fundamentals of Data compressionFundamentals of Data compression
Fundamentals of Data compression
 
Image enhancement lecture
Image enhancement lectureImage enhancement lecture
Image enhancement lecture
 
color image processing
color image processingcolor image processing
color image processing
 
ImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).pptImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).ppt
 
Histogram Processing
Histogram ProcessingHistogram Processing
Histogram Processing
 
Mathematical operations in image processing
Mathematical operations in image processingMathematical operations in image processing
Mathematical operations in image processing
 

Similar to Image compression

Image compression introductory presentation
Image compression introductory presentationImage compression introductory presentation
Image compression introductory presentation
Tariq Abbas
 
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
 

Similar to Image compression (20)

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 proccessing and its applications.
Image proccessing and its applications.Image proccessing and its applications.
Image proccessing and its applications.
 
Image compression introductory presentation
Image compression introductory presentationImage compression introductory presentation
Image compression introductory presentation
 
Presentation on Image Compression
Presentation on Image Compression Presentation on Image Compression
Presentation on Image Compression
 
image basics and image compression
image basics and image compressionimage basics and image compression
image basics and image compression
 
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
 
Iaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosineIaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosine
 
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 ...
 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compression
 
Image Compression Techniques: A Survey
Image Compression Techniques: A SurveyImage Compression Techniques: A Survey
Image Compression Techniques: A Survey
 
06 cie552 image_manipulation
06 cie552 image_manipulation06 cie552 image_manipulation
06 cie552 image_manipulation
 
Image compression
Image compressionImage compression
Image compression
 
Image compression (4)
Image compression (4)Image compression (4)
Image compression (4)
 
Image compression in digital image processing
Image compression in digital image processingImage compression in digital image processing
Image compression in digital image processing
 
Image compression
Image compressionImage compression
Image compression
 
Seminar
SeminarSeminar
Seminar
 
Chapter 3 : IMAGE
Chapter 3 : IMAGEChapter 3 : IMAGE
Chapter 3 : IMAGE
 
Chapter 3
Chapter 3Chapter 3
Chapter 3
 
notes_Image Compression_edited.ppt
notes_Image Compression_edited.pptnotes_Image Compression_edited.ppt
notes_Image Compression_edited.ppt
 

Recently uploaded

Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
KarakKing
 

Recently uploaded (20)

How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 

Image compression

  • 1. Image Compression Presented by : Abdelrahman Almassry Supervisor : Dr. Samy Salmah
  • 2. Content : • Concept of Image Compression. • Image Compression Models. • Types of Image Compression. • Variable-length Coding.
  • 3. Image Compression • Refers to reducing the amount of data required to represent a digital image. • Image compression address the problem of reducing the amount of data required to represent a digital image with no significant loss of information.
  • 4. Why…….? • Principal objective: To minimize the number of bits required to represent an image. • Reducing the image storage. • Transmission requirements.
  • 5. Image Compression • Image = Information + Redundant Data • Three Principal type of Data Redundancies used in Image Compression : Coding Redundancy Interpixel Redundancy Psychovisual Redundancy
  • 6. Image Compression  The number of bits used to represent each pixel is based on number of gray levels used to represent the image  We represent the entire image by using least possible number of bits. In this way we can reduce the coding redundancy. Coding Redundancy
  • 7. Image Compression  It is also called Spatial & Temporal redundancy.  In an image each pixel depends on its neighbors.  If spatial resolutions is high then inter pixel redundancy is high. Interpixel Redundancy
  • 8. Image Compression  Certain information has relatively less importance for the quality of image perception. This information is said to be psychovisually redundant.  Removing this type of redundancy is a lossy process and the lost information cannot be recovered.  The method used to remove this type of redundancy is called quantization which means the mapping of a broad range of input values to a limited number of output values. Psychovisual Redundancy
  • 9. Image Compression Model • The image compression system is composed of 2 distinct functional component: an encoder & a decoder. Source Encoder Channel Encoder Channel Channel Decoder Source Decoder Encoder Decoder Compression (No redundancies) Noise tolerant representation (additional bits are included to guarantee detection & correction of error due to transmission over channel.- Hamming Code)
  • 10. Image Compression Model • Encoder performs Compression while Decoder performs Decompression. Encoder is used to remove the redundancies through a series of 3 independent operations. Mapper Quantizer Symbol Encoder Channel No Interpixel redundancies (Reversible) No Psychovisual redundancies (non- reversible) No Coding redundancies (Reversible) Encoder
  • 11. Image Compression Model • Inverse steps are performed . Channel Symbol Encoder De-quantizer Inverse Mapper Decoder
  • 12. Types of Image Compression • Image data compression methods fall into two common categories: Lossy compression Lossless compression
  • 13. Lossy Compression A lossy compression method is one where compressing data and then decompressing it retrieves data that may well be different from the original, but is close enough to be useful in some way.
  • 14. Lossy Compression Used to compress multimedia data (audio, video, still images), especially in applications such as streaming media and internet telephony. Provide higher levels of data reduction Result in a less than perfect reproduction of the original image
  • 15. Lossless Compression • Also called Information preserving compression. • Compress and decompress images without losing information.
  • 16.
  • 17. Variable-length Coding • The coding redundancy can be minimized by using a variable- length coding method where the shortest codes are assigned to most probable gray levels. • The most popular variable-length coding method is the Huffman Coding.
  • 18. Huffman Coding • The Huffman coding involves the following steps. 1) Find the gray – level probabilities for the image by finding the histogram. 2) Order the input probabilities (histogram magnitudes) from smallest to largest. 3) Combine the smallest two. (add the two smallest) 4) GOTO step 2, until only two probabilities are left.
  • 19. • Ex. • Find 010100111100 using Huffman. • Find the avg no of bits required to represent each pixel(Lavg). Huffman

Editor's Notes

  1. Mapper: transforms input data in a way that facilitates reduction of inter pixel redundancies. Quantizer: achieved by compressing a range of values to a single quantum value. When the number of discrete symbols in a given stream is reduced, the stream becomes more compressible. Symbol encoder: assigns the shortest code to the most frequently occurring output values
  2. Lavg = Σ l(rk) pr(rk) احتمالية كل بيت * عدد البايناري بيت لهذه الاحتمالية bits / pixel Total no. of bits required to represent entire image = MNLavg = 256*256*L