SlideShare une entreprise Scribd logo
1  sur  35
Image Compression
Subject: FIP (181102)
Prof. Asodariya Bhavesh
ECD,SSASIT, Surat
Digital Image Processing, 3rd edition by
Gonzalez and Woods
Preview
• Image Compression is the art and science of
reducing amount data required to represent an
image
• Data required for two hour standard definition(SD)
television movie using 720×480×24 bits pixel arrays
• Answer is 224 Gbytes
• To save storage space and reduce transmission
time
• If you have 8 megapixel camera then what is the
size of one uncompressed image?
Preview
• Applications in many other areas like televideo
conferencing, remote sensing, document and
medical imaging, and Facsimile transmission(FAX)
Fundamentals
• Data compression refers to the process of reducing
the amount of data required to represent a given
quantity of information
• Data and Information are not the same thing
• Data are the means by which information is
conveyed
• Various amounts of data can be used to represent
the same amount of information
• Data contains irrelevant or repeated information
called redundant data
Fundamentals
• Relative data redundancy R
• R = 1 – 1/C where C commonly called the
compression ratio is defined as
• C = b/b’ where b and b’ denote the number of bits
in two representations of the same information
• If C = 10,for instance, means larger representation
has 10 bits of data for every 1 bit of data in the
smaller representation
• Corresponding relative data redundancy of the
larger representation is 0.9 indicating 90% of its
data is redundant
Principal types of data
redundancies
• 1) Coding Redundancy 2) Spatial and temporal
redundancy 3) Irrelevant information
• 1) Coding Redundancy: A code is a system of
symbols (letters, numbers, bits) used to represent
a body of information or set of events
• Each piece of information or event is assigned a
sequence of code symbols, called a code word
• Number of symbols in each code word is its length
• 2) Spatial and temporal redundancy: Pixels of most
2-D intensity arrays are correlated spatially (i.e.
each pixel is similar to or dependent on
neighboring pixels
Principal types of data
redundancies
• Information is unnecessarily replicated in the
representations of the correlated pixels
• In a video sequence, temporally correlated pixels
also duplicate information
• 3) Irrelevant information: Most 2-D intensity arrays
contain information that is ignored by human
visual system and/or extraneous to the intended
use of the image. It is redundant in the sense that
it is not used
Principal types of data
redundancies
Coding Redundancy
Coding Redundancy
Spatial and Temporal Redundancy
Irrelevant Information
Measuring Image Information
• How few bits are actually needed to represent the
information in an image?
• Is there a minimum amount of data that is
sufficient to describe an image without losing
information?
• Answer is given by Information Theory
• I(E) = log(1/P(E) )= - log(P(E)) units of information
• If the base 2 is selected, the unit of information is
the bit
Measuring Image Information
• Given a source of statistically independent random
events from a discrete set of possible events
{a1,a2,…..,aj} with associated probabilities {P(a1),
P(a2),……,P(aj)}, the average information per
source output, called the entropy of the source, is
• aj is called the source symbols
• Because they are statistically independent, the
source itself is called a zero-memory source
Measuring Image Information
• H for previous example (first image) is 1.6614
bits/pixel
• H for second image is 8 bits/pixel
• H for third image is 1.566 bits/pixel
• Shannon’s first theorem
Image Compression Models
Some Basic Compression Methods
• Huffman Coding
• Most popular techniques for removing coding
redundancy
Huffman Coding
Some Basic Compression Methods
• Arithmetic Coding
• Generates nonblock codes and it is used to remove
coding redundacy
• One to one correspondence between source
symbols and code words does not exist
• Entire sequence of source symbols is assigned a
single arithmetic code word
• Number of symbols in the message increases, the
interval used to represent it becomes smaller and
the number of information units required to
represent the interval becomes larger
Arithmetic Coding
Arithmetic Coding
• (Higher value-lower value)*Prob + lower value
Arithmetic Coding
• Three decimal digits are used to represent the five
symbol message
• 0.6 decimal digits per source symbol
• Entropy is 0.58 decimal digit per source symbol
• Length of the sequence being coded increases, the
resulting arithmetic code approaches the bound
established by shannon’s first theorem
• Two disadvantage 1) the addition of the end of
message indicator that is needed to separate one
message from another ; 2) the use of finite
precision arithmetic
LZW Coding
• Addresses spatial redundancies in an image
• The technique, called Lempel-Ziv-Welch (LZW)
coding, assigns fixed length code words to variable
length sequences of source symbols
• Probabilities are not required
• It was protected under a United States patent, LZW
compression has been integrated into a variety of
mainstream imaging file formats, including GIF,
TIFF, and PDF. The PNG format was created to get
around LZW licensing requirements
LZW Coding
Run Length Coding
• Images with repeating intensities along their rows(columns) can
often be compressed by representing runs of identical
intensities as run-length pairs, where each run-length pair
specifies the start of a new intensity and the number of
consecutive pixels that have that intensity
Run Length Coding
• RLE was developed in 1950s and used in FAX coding
• Compression is achieved by eliminating a simple form of spatial
redundancy-group of identical intensities
• When there are few(or no) runs of identical pixels, run-length
encoding results in data expansion
• BMP file format uses a form of run-length encoding in which
image data is represented in two different modes; encoded and
absolute
• Either mode can occur anywhere in the image
• Encoded mode, a two byte RLE representation is used. The first
byte specifies the number of consecutive pixels that have the
color index contained in the second byte. The 8-bit color index
selects the run’s intensity from a table of 256 possible
intensities
Run Length Coding
• Absolute mode, the first byte is 0 and the second byte signals
one of four possible conditions as shown in table
• When the second byte is 0 or 1, the end of a line or the end of
the image has been reached
• If it is 2, the next two bytes contain unsigned horizontal and
vertical offsets to a new spatial position (and pixel) in the image
Second Byte Value Conditions
0 End of line
1 End of image
2 Move to a new position
3-255 Specify pixels individually
Run Length Coding
• Effective when compressing binary images
• Additional compression can be achieved by variable length
coding the run lengths themselves
• The approximate run-length entropy of the image is then
HRL = H0 + H1 /L0 + L1
• Where the variables L0 and L1 denote the average values of
black and white run lengths, respectively
Types of File Formats
• Simplest way of storing image data is by using a 2D array of
pixel intensities. This is referred to as a Bitmap.
• Another way of encoding the images is to use vector
graphics where the image is stored as a collection of
vectors.
• Popular file formats are listed below:
• 1) GIF(Graphics Interchange Format) 2) JPEG(Joint
Photographic Experts Group) 3) PNG (Portable Network
Group) 4) DICOM(Digital Imaging and COMmunication) 5)
SVG (Vector Graphics file format) 6) TIFF (Tagged Image File
Format
Types of File Formats
• 1) GIF: Uses lossless compression LZW technique
• Quality of image is very high
• It supports 256 colors (8-bit)
• File is smaller in size, has good compression, and is good in
displaying flat color areas
• Also supports animation
• Can store multiple images and using timing information can
build animations where multiple static images play
continuously, creating the illusion of motion
• 2) JPEG : Used for storing continuous tone images
• Provides lossy and lossless compression
Types of File Formats
• Used DCT and DWT technique for compression
• Common format for storing and transmitting photographic
images on the World Wide Web
• 3) PNG : Specially designed for the Web
• Supports grey scale or RGB images
• Designed for transmitting images on the Internet
• Supports transparency and interlacing
• One useful feature of PNG is its built-in text capabilities for
image indexing, allowing storage of text within the file itself
Types of File Formats
• 4) DICOM : Popular format in medical imaging
• Contains image data and also metadata such as patient
details, equipment, and acquisition details
• Provides many communication standards
• 5) SVG : It is a vector graphics file format that enables 2D
images to be displayed on the web
• Scalable to the size of the viewing window and adjust in
size and resolution according to the window in which they
are displayed
• 6) TIFF : A flexible file format supporting a variety of image
compression standards, including JPEG, JPEG-LS, JPEG-
2000, and others
Chapter 8 image compression

Contenu connexe

Tendances

Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentationasodariyabhavesh
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression modelslavanya marichamy
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsasodariyabhavesh
 
Image processing fundamentals
Image processing fundamentalsImage processing fundamentals
Image processing fundamentalsA B Shinde
 
digital image processing
digital image processingdigital image processing
digital image processingAbinaya B
 
Image enhancement sharpening
Image enhancement  sharpeningImage enhancement  sharpening
Image enhancement sharpeningarulraj121
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image CompressionMathankumar S
 
Transform coding
Transform codingTransform coding
Transform codingNancy K
 
Anti- aliasing computer graphics
Anti- aliasing computer graphicsAnti- aliasing computer graphics
Anti- aliasing computer graphicsSafayet Hossain
 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringIntensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringShajun Nisha
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & DescriptorsPundrikPatel
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domainAshish Kumar
 

Tendances (20)

Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Chapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woodsChapter 1 and 2 gonzalez and woods
Chapter 1 and 2 gonzalez and woods
 
Lzw coding technique for image compression
Lzw coding technique for image compressionLzw coding technique for image compression
Lzw coding technique for image compression
 
Image processing fundamentals
Image processing fundamentalsImage processing fundamentals
Image processing fundamentals
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
digital image processing
digital image processingdigital image processing
digital image processing
 
Image enhancement sharpening
Image enhancement  sharpeningImage enhancement  sharpening
Image enhancement sharpening
 
Image segmentation
Image segmentationImage segmentation
Image segmentation
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 
Transform coding
Transform codingTransform coding
Transform coding
 
Anti- aliasing computer graphics
Anti- aliasing computer graphicsAnti- aliasing computer graphics
Anti- aliasing computer graphics
 
Intensity Transformation and Spatial filtering
Intensity Transformation and Spatial filteringIntensity Transformation and Spatial filtering
Intensity Transformation and Spatial filtering
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
 
Digital image processing
Digital image processing  Digital image processing
Digital image processing
 
Run length encoding
Run length encodingRun length encoding
Run length encoding
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
 
Bit plane coding
Bit plane codingBit plane coding
Bit plane coding
 

Similaire à Chapter 8 image compression

image basics and image compression
image basics and image compressionimage basics and image compression
image basics and image compressionmurugan hari
 
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
 
fundamentals of digital imaging - POONAM.pptx
fundamentals of digital imaging - POONAM.pptxfundamentals of digital imaging - POONAM.pptx
fundamentals of digital imaging - POONAM.pptxPoonamRijal
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.pptdudoo1
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.pptssuser6d1fca
 
notes_Image Compression_edited.ppt
notes_Image Compression_edited.pptnotes_Image Compression_edited.ppt
notes_Image Compression_edited.pptHarisMasood20
 
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 MATLABIJEEE
 
Image compression in digital image processing
Image compression in digital image processingImage compression in digital image processing
Image compression in digital image processingDHIVYADEVAKI
 
Scct2013 topic 3_graphics
Scct2013 topic 3_graphicsScct2013 topic 3_graphics
Scct2013 topic 3_graphicsAnies Syahieda
 
Technical glossary
Technical glossaryTechnical glossary
Technical glossaryhalo4robo
 
Standards and procedure in digitization and digital preservation
Standards and procedure in digitization and digital preservationStandards and procedure in digitization and digital preservation
Standards and procedure in digitization and digital preservationCandy Husmillo
 
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
 
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
 
Lec6 compression
Lec6 compressionLec6 compression
Lec6 compressionShona Hira
 
Lec6 compression
Lec6 compressionLec6 compression
Lec6 compressionDom Mike
 

Similaire à Chapter 8 image compression (20)

image compression Tech. 31.pptx
image compression Tech. 31.pptximage compression Tech. 31.pptx
image compression Tech. 31.pptx
 
image basics and image compression
image basics and image compressionimage basics and image compression
image basics and image compression
 
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
 
fundamentals of digital imaging - POONAM.pptx
fundamentals of digital imaging - POONAM.pptxfundamentals of digital imaging - POONAM.pptx
fundamentals of digital imaging - POONAM.pptx
 
DIP.pptx
DIP.pptxDIP.pptx
DIP.pptx
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.ppt
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.ppt
 
notes_Image Compression_edited.ppt
notes_Image Compression_edited.pptnotes_Image Compression_edited.ppt
notes_Image Compression_edited.ppt
 
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
 
Image compression in digital image processing
Image compression in digital image processingImage compression in digital image processing
Image compression in digital image processing
 
Scct2013 topic 3_graphics
Scct2013 topic 3_graphicsScct2013 topic 3_graphics
Scct2013 topic 3_graphics
 
akashreport
akashreportakashreport
akashreport
 
Technical glossary
Technical glossaryTechnical glossary
Technical glossary
 
Standards and procedure in digitization and digital preservation
Standards and procedure in digitization and digital preservationStandards and procedure in digitization and digital preservation
Standards and procedure in digitization and digital preservation
 
Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)
 
Files and stuff
Files and stuffFiles and stuff
Files and stuff
 
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
 
Lec6 compression
Lec6 compressionLec6 compression
Lec6 compression
 
Lec6 compression
Lec6 compressionLec6 compression
Lec6 compression
 

Plus de asodariyabhavesh

wirelessSlidesCh04 (2).ppt
wirelessSlidesCh04 (2).pptwirelessSlidesCh04 (2).ppt
wirelessSlidesCh04 (2).pptasodariyabhavesh
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processingasodariyabhavesh
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)asodariyabhavesh
 
Arm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberArm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberasodariyabhavesh
 
Introduction of digital communication
Introduction of digital communicationIntroduction of digital communication
Introduction of digital communicationasodariyabhavesh
 

Plus de asodariyabhavesh (6)

wirelessSlidesCh04 (2).ppt
wirelessSlidesCh04 (2).pptwirelessSlidesCh04 (2).ppt
wirelessSlidesCh04 (2).ppt
 
Chapter 9 morphological image processing
Chapter 9 morphological image processingChapter 9 morphological image processing
Chapter 9 morphological image processing
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Arm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furberArm architecture chapter2_steve_furber
Arm architecture chapter2_steve_furber
 
Introduction of digital communication
Introduction of digital communicationIntroduction of digital communication
Introduction of digital communication
 

Dernier

Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLManishPatel169454
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdfKamal Acharya
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...roncy bisnoi
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueBhangaleSonal
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Standamitlee9823
 

Dernier (20)

Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
Call Girls Pimpri Chinchwad Call Me 7737669865 Budget Friendly No Advance Boo...
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night StandCall Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
Call Girls In Bangalore ☎ 7737669865 🥵 Book Your One night Stand
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 

Chapter 8 image compression

  • 1. Image Compression Subject: FIP (181102) Prof. Asodariya Bhavesh ECD,SSASIT, Surat
  • 2. Digital Image Processing, 3rd edition by Gonzalez and Woods
  • 3. Preview • Image Compression is the art and science of reducing amount data required to represent an image • Data required for two hour standard definition(SD) television movie using 720×480×24 bits pixel arrays • Answer is 224 Gbytes • To save storage space and reduce transmission time • If you have 8 megapixel camera then what is the size of one uncompressed image?
  • 4. Preview • Applications in many other areas like televideo conferencing, remote sensing, document and medical imaging, and Facsimile transmission(FAX)
  • 5. Fundamentals • Data compression refers to the process of reducing the amount of data required to represent a given quantity of information • Data and Information are not the same thing • Data are the means by which information is conveyed • Various amounts of data can be used to represent the same amount of information • Data contains irrelevant or repeated information called redundant data
  • 6. Fundamentals • Relative data redundancy R • R = 1 – 1/C where C commonly called the compression ratio is defined as • C = b/b’ where b and b’ denote the number of bits in two representations of the same information • If C = 10,for instance, means larger representation has 10 bits of data for every 1 bit of data in the smaller representation • Corresponding relative data redundancy of the larger representation is 0.9 indicating 90% of its data is redundant
  • 7. Principal types of data redundancies • 1) Coding Redundancy 2) Spatial and temporal redundancy 3) Irrelevant information • 1) Coding Redundancy: A code is a system of symbols (letters, numbers, bits) used to represent a body of information or set of events • Each piece of information or event is assigned a sequence of code symbols, called a code word • Number of symbols in each code word is its length • 2) Spatial and temporal redundancy: Pixels of most 2-D intensity arrays are correlated spatially (i.e. each pixel is similar to or dependent on neighboring pixels
  • 8. Principal types of data redundancies • Information is unnecessarily replicated in the representations of the correlated pixels • In a video sequence, temporally correlated pixels also duplicate information • 3) Irrelevant information: Most 2-D intensity arrays contain information that is ignored by human visual system and/or extraneous to the intended use of the image. It is redundant in the sense that it is not used
  • 9. Principal types of data redundancies
  • 12. Spatial and Temporal Redundancy
  • 14. Measuring Image Information • How few bits are actually needed to represent the information in an image? • Is there a minimum amount of data that is sufficient to describe an image without losing information? • Answer is given by Information Theory • I(E) = log(1/P(E) )= - log(P(E)) units of information • If the base 2 is selected, the unit of information is the bit
  • 15. Measuring Image Information • Given a source of statistically independent random events from a discrete set of possible events {a1,a2,…..,aj} with associated probabilities {P(a1), P(a2),……,P(aj)}, the average information per source output, called the entropy of the source, is • aj is called the source symbols • Because they are statistically independent, the source itself is called a zero-memory source
  • 16. Measuring Image Information • H for previous example (first image) is 1.6614 bits/pixel • H for second image is 8 bits/pixel • H for third image is 1.566 bits/pixel • Shannon’s first theorem
  • 18. Some Basic Compression Methods • Huffman Coding • Most popular techniques for removing coding redundancy
  • 20. Some Basic Compression Methods • Arithmetic Coding • Generates nonblock codes and it is used to remove coding redundacy • One to one correspondence between source symbols and code words does not exist • Entire sequence of source symbols is assigned a single arithmetic code word • Number of symbols in the message increases, the interval used to represent it becomes smaller and the number of information units required to represent the interval becomes larger
  • 22. Arithmetic Coding • (Higher value-lower value)*Prob + lower value
  • 23. Arithmetic Coding • Three decimal digits are used to represent the five symbol message • 0.6 decimal digits per source symbol • Entropy is 0.58 decimal digit per source symbol • Length of the sequence being coded increases, the resulting arithmetic code approaches the bound established by shannon’s first theorem • Two disadvantage 1) the addition of the end of message indicator that is needed to separate one message from another ; 2) the use of finite precision arithmetic
  • 24. LZW Coding • Addresses spatial redundancies in an image • The technique, called Lempel-Ziv-Welch (LZW) coding, assigns fixed length code words to variable length sequences of source symbols • Probabilities are not required • It was protected under a United States patent, LZW compression has been integrated into a variety of mainstream imaging file formats, including GIF, TIFF, and PDF. The PNG format was created to get around LZW licensing requirements
  • 26.
  • 27. Run Length Coding • Images with repeating intensities along their rows(columns) can often be compressed by representing runs of identical intensities as run-length pairs, where each run-length pair specifies the start of a new intensity and the number of consecutive pixels that have that intensity
  • 28. Run Length Coding • RLE was developed in 1950s and used in FAX coding • Compression is achieved by eliminating a simple form of spatial redundancy-group of identical intensities • When there are few(or no) runs of identical pixels, run-length encoding results in data expansion • BMP file format uses a form of run-length encoding in which image data is represented in two different modes; encoded and absolute • Either mode can occur anywhere in the image • Encoded mode, a two byte RLE representation is used. The first byte specifies the number of consecutive pixels that have the color index contained in the second byte. The 8-bit color index selects the run’s intensity from a table of 256 possible intensities
  • 29. Run Length Coding • Absolute mode, the first byte is 0 and the second byte signals one of four possible conditions as shown in table • When the second byte is 0 or 1, the end of a line or the end of the image has been reached • If it is 2, the next two bytes contain unsigned horizontal and vertical offsets to a new spatial position (and pixel) in the image Second Byte Value Conditions 0 End of line 1 End of image 2 Move to a new position 3-255 Specify pixels individually
  • 30. Run Length Coding • Effective when compressing binary images • Additional compression can be achieved by variable length coding the run lengths themselves • The approximate run-length entropy of the image is then HRL = H0 + H1 /L0 + L1 • Where the variables L0 and L1 denote the average values of black and white run lengths, respectively
  • 31. Types of File Formats • Simplest way of storing image data is by using a 2D array of pixel intensities. This is referred to as a Bitmap. • Another way of encoding the images is to use vector graphics where the image is stored as a collection of vectors. • Popular file formats are listed below: • 1) GIF(Graphics Interchange Format) 2) JPEG(Joint Photographic Experts Group) 3) PNG (Portable Network Group) 4) DICOM(Digital Imaging and COMmunication) 5) SVG (Vector Graphics file format) 6) TIFF (Tagged Image File Format
  • 32. Types of File Formats • 1) GIF: Uses lossless compression LZW technique • Quality of image is very high • It supports 256 colors (8-bit) • File is smaller in size, has good compression, and is good in displaying flat color areas • Also supports animation • Can store multiple images and using timing information can build animations where multiple static images play continuously, creating the illusion of motion • 2) JPEG : Used for storing continuous tone images • Provides lossy and lossless compression
  • 33. Types of File Formats • Used DCT and DWT technique for compression • Common format for storing and transmitting photographic images on the World Wide Web • 3) PNG : Specially designed for the Web • Supports grey scale or RGB images • Designed for transmitting images on the Internet • Supports transparency and interlacing • One useful feature of PNG is its built-in text capabilities for image indexing, allowing storage of text within the file itself
  • 34. Types of File Formats • 4) DICOM : Popular format in medical imaging • Contains image data and also metadata such as patient details, equipment, and acquisition details • Provides many communication standards • 5) SVG : It is a vector graphics file format that enables 2D images to be displayed on the web • Scalable to the size of the viewing window and adjust in size and resolution according to the window in which they are displayed • 6) TIFF : A flexible file format supporting a variety of image compression standards, including JPEG, JPEG-LS, JPEG- 2000, and others