SlideShare a Scribd company logo
1 of 36
Digital Image Processing
Image Compression
2
Data vs. information
• Data is not the same thing as information
• Data are the means to convey information; various
amounts of data may be used to represent the same
amount of information Part of data may provide no
relevant information: data redundancy
• The amount of data can be much larger expressed
than the amount of information.
3
Data Redundancy
• Data that provide no relevant information=redundant data or
redundancy.
• Image compression techniques can be designed by
reducing or eliminating the Data Redundancy
• Image coding or compression has a goal to reduce the amount of
data by reducing the amount of redundancy.
4
Data Redundancy
5
Data Redundancy
Three basic data redundancies
 Coding Redundancy
 Interpixel Redundancy
 Psychovisual Redundancy
6
Coding Redundancy
A natural m-bit coding method assigns m-bit to each gray
level without considering the probability that gray level occurs
with: Very likely to contain coding redundancy
Basic concept:
 Utilize the probability of occurrence of each gray level
(histogram) to determine length of code representing that
particular gray level: variable-length coding.
 Assign shorter code words to the gray levels that occur most
frequently or vice versa.
7
Coding Redundancy
8
Coding Redundancy (Example)
9
Coding Redundancy (Example)
10
Coding Redundancy (Example)
Spatial and Temporal Redundancy
• Interpixel Spatial redundancy is due to the correlation between the neighboring
pixels in an image.
• That means neighboring pixels are not statistically independent. The gray levels
are not equally probable.
• The value of any given pixel can be predicated from the value of its neighbors that
is they are highly correlated.
• The information carried by individual pixel is relatively small. To reduce the
interpixel Spatial redundancy the difference between adjacent pixels can be used
to represent an image.
Spatial and Temporal Redundancy
• Interpixel temporal redundancy is the statistical correlation between pixels from
successive frames in video sequence.
• Temporal redundancy is also called interframe redundancy. Temporal redundancy
can be exploited using motion compensated predictive coding.
• Removing a large amount of redundancy leads to efficient video compression.
Irrelevant Information
• Information that is not used by the human visual system are psychovisually
redundant.
 The eye does not respond with equal sensitivity to all visual information.
 Certain information has less relative importance than other information in normal
visual processing psychovisually redundant (which can be eliminated without
significantly impairing the quality of image perception).
 The elimination of psychovisually redundant data results in a loss of quantitative
information lossy data compression method.
 Image compression methods based on the elimination of psychovisually redundant
data (usually called quantization) are usually applied to commercial broadcast TV
and similar applications for human visualization.
Irrelevant Information
15
Fidelity Criteria
16
Fidelity Criteria
17
Fidelity Criteria
18
Image Compression Models
 The encoder creates a set of symbols (compressed) from the input
data.
 The data is transmitted over the channel and is fed to decoder.
 The decoder reconstructs the output signal from the coded symbols.
 The source encoder removes the input redundancies, and the
channel encoder increases the noise immunity.
19
Source Encoder and Decoder
Some Basic Compression Methods
Variable-length Coding Method: Huffman Coding
21
Variable-length Coding Method: Huffman Coding
22
Huffman coding: give the smallest possible number of
code symbols per source symbols.
Step 1: Source reduction
Variable-length Coding Method: Huffman Coding
23
Step 2: Code assignment procedure
The code is instantaneous uniquely decodable without referencing
succeeding symbols.
24
Variable-length Coding Method: Huffman Coding
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Nonblock code: one-to-one correspondence between source symbols
And code words does not exist.
Concept: The entire sequences of source symbols is assigned a single
arithmetic code word in the form of a number in an interval of real
number between 0 and 1.
Arithmetic Coding
Arithmetic Coding Example
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
0.2x0.4 0.04+0.8x0.04 0.056+0.8x0.016
0.2x0.2 0.04+0.4x0.04 0.056+0.4x0.016
The number
between 0.0688
and 0.06752
can be used to
represent the
sequence
a1 a2 a3 a3 a4
In this type of arithmetic coding, symbol probabilites that are based on
predefined neighborhood of pixels called context are updated as symbols
are coded or become known.
Example : Q-Coder and MQ-Coder in JBIG,JPEG 2000
Adaptive Context Dependent Probability Estimates
LZW Coding
Lempel-Ziv-Welch (LZW) coding assigns fixed length code
words to variable length sequences of source symbols.
28
LZW Coding Algorithm
0. Initialize a dictionary by all possible gray values (0-255)
1. Input current pixel
2. If the current pixel combined with previous pixels
form one of existing dictionary entries
Then
2.1 Move to the next pixel and repeat Step 1
Else
2.2 Output the dictionary location of the currently recognized
sequence (which is not include the current pixel)
2.3 Create a new dictionary entry by appending the currently
recognized sequence in 2.2 with the current pixel
2.4 Move to the next pixel and repeat Step 1
LZW Coding
(Images from Rafael C. Gonzalez and Richard E.
Wood, Digital Image Processing, 2nd Edition.
Lempel-Ziv-Welch coding : assign fixed length code words to
variable length sequences of source symbols.
24 Bits
9 Bits
LZW Coding Example
Input
pixel
39
39
126
126
39
39
126
126
39
39
126
126
Dictionary
Location Entry
0 0
1 1
… …
255 255
256 39-39
257 39-126
258 126-126
259 126-39
260 39-39-126
261 126-126-39
262 39-39-126-126
Encoded
Output (9 bits)
39
39
126
126
256
258
260
Currently
recognized
Sequences
39
39
126
126
39
39-39
126
126-126
39
39-39
39-39-126
126
Bit-Plane Coding
Bit-Plane Coding
Bit-Plane Decomposition (Example)
Bit-Plane Decomposition (Example)
Bit-Plane Decomposition (Example)

More Related Content

What's hot

Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & DescriptorsPundrikPatel
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersSuhaila Afzana
 
1.arithmetic & logical operations
1.arithmetic & logical operations1.arithmetic & logical operations
1.arithmetic & logical operationsmukesh bhardwaj
 
Fields of digital image processing slides
Fields of digital image processing slidesFields of digital image processing slides
Fields of digital image processing slidesSrinath Dhayalamoorthy
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancyNaveen Kumar
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filterarulraj121
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image FundamentalsA B Shinde
 
Image compression
Image compressionImage compression
Image compressionAle Johnsan
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processingAnuj Arora
 
Transform coding
Transform codingTransform coding
Transform codingNancy K
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processingasodariyabhavesh
 

What's hot (20)

Lzw coding technique for image compression
Lzw coding technique for image compressionLzw coding technique for image compression
Lzw coding technique for image compression
 
Bit plane coding
Bit plane codingBit plane coding
Bit plane coding
 
Image compression models
Image compression modelsImage compression models
Image compression models
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Noise Models
Noise ModelsNoise Models
Noise Models
 
Digital Image Processing
Digital Image ProcessingDigital Image Processing
Digital Image Processing
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Psuedo color
Psuedo colorPsuedo color
Psuedo color
 
Image compression
Image compressionImage compression
Image compression
 
1.arithmetic & logical operations
1.arithmetic & logical operations1.arithmetic & logical operations
1.arithmetic & logical operations
 
Fields of digital image processing slides
Fields of digital image processing slidesFields of digital image processing slides
Fields of digital image processing slides
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancy
 
Sharpening using frequency Domain Filter
Sharpening using frequency Domain FilterSharpening using frequency Domain Filter
Sharpening using frequency Domain Filter
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Digital Image Fundamentals
Digital Image FundamentalsDigital Image Fundamentals
Digital Image Fundamentals
 
Image compression
Image compressionImage compression
Image compression
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
 
Transform coding
Transform codingTransform coding
Transform coding
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
 

Similar to Image compression in digital image processing

notes_Image Compression_edited.ppt
notes_Image Compression_edited.pptnotes_Image Compression_edited.ppt
notes_Image Compression_edited.pptHarisMasood20
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.pptdudoo1
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.pptssuser6d1fca
 
notes_Image Compression.ppt
notes_Image Compression.pptnotes_Image Compression.ppt
notes_Image Compression.pptHarisMasood20
 
notes_Image Compression.ppt
notes_Image Compression.pptnotes_Image Compression.ppt
notes_Image Compression.pptHarisMasood20
 
A Critical Review of Well Known Method For Image Compression
A Critical Review of Well Known Method For Image CompressionA Critical Review of Well Known Method For Image Compression
A Critical Review of Well Known Method For Image CompressionEditor IJMTER
 
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
 
chapter-8imagecompression-170804060146.pdf
chapter-8imagecompression-170804060146.pdfchapter-8imagecompression-170804060146.pdf
chapter-8imagecompression-170804060146.pdfssuser6d1fca
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compressionasodariyabhavesh
 
VII Compression Introduction
VII Compression IntroductionVII Compression Introduction
VII Compression Introductionsangusajjan
 
Image compression using negative format
Image compression using negative formatImage compression using negative format
Image compression using negative formateSAT Journals
 
Image compression using negative format
Image compression using negative formatImage compression using negative format
Image compression using negative formateSAT Publishing House
 
Importance of Dimensionality Reduction in Image Processing
Importance of Dimensionality Reduction in Image ProcessingImportance of Dimensionality Reduction in Image Processing
Importance of Dimensionality Reduction in Image Processingrahulmonikasharma
 

Similar to Image compression in digital image processing (20)

Image compression
Image compressionImage compression
Image compression
 
notes_Image Compression_edited.ppt
notes_Image Compression_edited.pptnotes_Image Compression_edited.ppt
notes_Image Compression_edited.ppt
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.ppt
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.ppt
 
notes_Image Compression.ppt
notes_Image Compression.pptnotes_Image Compression.ppt
notes_Image Compression.ppt
 
notes_Image Compression.ppt
notes_Image Compression.pptnotes_Image Compression.ppt
notes_Image Compression.ppt
 
Image compression
Image compression Image compression
Image compression
 
A Critical Review of Well Known Method For Image Compression
A Critical Review of Well Known Method For Image CompressionA Critical Review of Well Known Method For Image Compression
A Critical Review of Well Known Method For Image Compression
 
Image compression
Image compressionImage compression
Image compression
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
Compressionbasics
CompressionbasicsCompressionbasics
Compressionbasics
 
Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)
 
chapter-8imagecompression-170804060146.pdf
chapter-8imagecompression-170804060146.pdfchapter-8imagecompression-170804060146.pdf
chapter-8imagecompression-170804060146.pdf
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
VII Compression Introduction
VII Compression IntroductionVII Compression Introduction
VII Compression Introduction
 
Image compression
Image compressionImage compression
Image compression
 
akashreport
akashreportakashreport
akashreport
 
Image compression using negative format
Image compression using negative formatImage compression using negative format
Image compression using negative format
 
Image compression using negative format
Image compression using negative formatImage compression using negative format
Image compression using negative format
 
Importance of Dimensionality Reduction in Image Processing
Importance of Dimensionality Reduction in Image ProcessingImportance of Dimensionality Reduction in Image Processing
Importance of Dimensionality Reduction in Image Processing
 

More from DHIVYADEVAKI

Computer Networks - DNS
Computer Networks - DNSComputer Networks - DNS
Computer Networks - DNSDHIVYADEVAKI
 
Error detection methods-computer networks
Error detection methods-computer networksError detection methods-computer networks
Error detection methods-computer networksDHIVYADEVAKI
 
Introduction basic schema and SQL QUERIES
Introduction basic schema and SQL QUERIESIntroduction basic schema and SQL QUERIES
Introduction basic schema and SQL QUERIESDHIVYADEVAKI
 
Image segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingImage segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingDHIVYADEVAKI
 
Data preprocessing in Data Mining
Data preprocessing in Data MiningData preprocessing in Data Mining
Data preprocessing in Data MiningDHIVYADEVAKI
 
Apriori algorithm
Apriori algorithm Apriori algorithm
Apriori algorithm DHIVYADEVAKI
 
Types of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed SystemTypes of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed SystemDHIVYADEVAKI
 
Deadlock Detection in Distributed Systems
Deadlock Detection in Distributed SystemsDeadlock Detection in Distributed Systems
Deadlock Detection in Distributed SystemsDHIVYADEVAKI
 

More from DHIVYADEVAKI (9)

Computer Networks - DNS
Computer Networks - DNSComputer Networks - DNS
Computer Networks - DNS
 
Error detection methods-computer networks
Error detection methods-computer networksError detection methods-computer networks
Error detection methods-computer networks
 
Introduction basic schema and SQL QUERIES
Introduction basic schema and SQL QUERIESIntroduction basic schema and SQL QUERIES
Introduction basic schema and SQL QUERIES
 
Image segmentation in Digital Image Processing
Image segmentation in Digital Image ProcessingImage segmentation in Digital Image Processing
Image segmentation in Digital Image Processing
 
R graphics
R graphicsR graphics
R graphics
 
Data preprocessing in Data Mining
Data preprocessing in Data MiningData preprocessing in Data Mining
Data preprocessing in Data Mining
 
Apriori algorithm
Apriori algorithm Apriori algorithm
Apriori algorithm
 
Types of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed SystemTypes of Load distributing algorithm in Distributed System
Types of Load distributing algorithm in Distributed System
 
Deadlock Detection in Distributed Systems
Deadlock Detection in Distributed SystemsDeadlock Detection in Distributed Systems
Deadlock Detection in Distributed Systems
 

Recently uploaded

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
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.pptxMaritesTamaniVerdade
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
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Ữ Â...Nguyen Thanh Tu Collection
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 

Recently uploaded (20)

psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
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
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
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
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
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Ữ Â...
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 

Image compression in digital image processing

  • 2. 2 Data vs. information • Data is not the same thing as information • Data are the means to convey information; various amounts of data may be used to represent the same amount of information Part of data may provide no relevant information: data redundancy • The amount of data can be much larger expressed than the amount of information.
  • 3. 3 Data Redundancy • Data that provide no relevant information=redundant data or redundancy. • Image compression techniques can be designed by reducing or eliminating the Data Redundancy • Image coding or compression has a goal to reduce the amount of data by reducing the amount of redundancy.
  • 5. 5 Data Redundancy Three basic data redundancies  Coding Redundancy  Interpixel Redundancy  Psychovisual Redundancy
  • 6. 6 Coding Redundancy A natural m-bit coding method assigns m-bit to each gray level without considering the probability that gray level occurs with: Very likely to contain coding redundancy Basic concept:  Utilize the probability of occurrence of each gray level (histogram) to determine length of code representing that particular gray level: variable-length coding.  Assign shorter code words to the gray levels that occur most frequently or vice versa.
  • 11. Spatial and Temporal Redundancy • Interpixel Spatial redundancy is due to the correlation between the neighboring pixels in an image. • That means neighboring pixels are not statistically independent. The gray levels are not equally probable. • The value of any given pixel can be predicated from the value of its neighbors that is they are highly correlated. • The information carried by individual pixel is relatively small. To reduce the interpixel Spatial redundancy the difference between adjacent pixels can be used to represent an image.
  • 12. Spatial and Temporal Redundancy • Interpixel temporal redundancy is the statistical correlation between pixels from successive frames in video sequence. • Temporal redundancy is also called interframe redundancy. Temporal redundancy can be exploited using motion compensated predictive coding. • Removing a large amount of redundancy leads to efficient video compression.
  • 13. Irrelevant Information • Information that is not used by the human visual system are psychovisually redundant.  The eye does not respond with equal sensitivity to all visual information.  Certain information has less relative importance than other information in normal visual processing psychovisually redundant (which can be eliminated without significantly impairing the quality of image perception).  The elimination of psychovisually redundant data results in a loss of quantitative information lossy data compression method.  Image compression methods based on the elimination of psychovisually redundant data (usually called quantization) are usually applied to commercial broadcast TV and similar applications for human visualization.
  • 18. 18 Image Compression Models  The encoder creates a set of symbols (compressed) from the input data.  The data is transmitted over the channel and is fed to decoder.  The decoder reconstructs the output signal from the coded symbols.  The source encoder removes the input redundancies, and the channel encoder increases the noise immunity.
  • 21. Variable-length Coding Method: Huffman Coding 21
  • 22. Variable-length Coding Method: Huffman Coding 22 Huffman coding: give the smallest possible number of code symbols per source symbols. Step 1: Source reduction
  • 23. Variable-length Coding Method: Huffman Coding 23 Step 2: Code assignment procedure The code is instantaneous uniquely decodable without referencing succeeding symbols.
  • 25. (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Nonblock code: one-to-one correspondence between source symbols And code words does not exist. Concept: The entire sequences of source symbols is assigned a single arithmetic code word in the form of a number in an interval of real number between 0 and 1. Arithmetic Coding
  • 26. Arithmetic Coding Example (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. 0.2x0.4 0.04+0.8x0.04 0.056+0.8x0.016 0.2x0.2 0.04+0.4x0.04 0.056+0.4x0.016 The number between 0.0688 and 0.06752 can be used to represent the sequence a1 a2 a3 a3 a4
  • 27. In this type of arithmetic coding, symbol probabilites that are based on predefined neighborhood of pixels called context are updated as symbols are coded or become known. Example : Q-Coder and MQ-Coder in JBIG,JPEG 2000 Adaptive Context Dependent Probability Estimates
  • 28. LZW Coding Lempel-Ziv-Welch (LZW) coding assigns fixed length code words to variable length sequences of source symbols. 28
  • 29. LZW Coding Algorithm 0. Initialize a dictionary by all possible gray values (0-255) 1. Input current pixel 2. If the current pixel combined with previous pixels form one of existing dictionary entries Then 2.1 Move to the next pixel and repeat Step 1 Else 2.2 Output the dictionary location of the currently recognized sequence (which is not include the current pixel) 2.3 Create a new dictionary entry by appending the currently recognized sequence in 2.2 with the current pixel 2.4 Move to the next pixel and repeat Step 1
  • 30. LZW Coding (Images from Rafael C. Gonzalez and Richard E. Wood, Digital Image Processing, 2nd Edition. Lempel-Ziv-Welch coding : assign fixed length code words to variable length sequences of source symbols. 24 Bits 9 Bits
  • 31. LZW Coding Example Input pixel 39 39 126 126 39 39 126 126 39 39 126 126 Dictionary Location Entry 0 0 1 1 … … 255 255 256 39-39 257 39-126 258 126-126 259 126-39 260 39-39-126 261 126-126-39 262 39-39-126-126 Encoded Output (9 bits) 39 39 126 126 256 258 260 Currently recognized Sequences 39 39 126 126 39 39-39 126 126-126 39 39-39 39-39-126 126