SlideShare a Scribd company logo
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

More Related Content

What's hot

Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
Revanth Chimmani
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
asodariyabhavesh
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
Md Shabir Alam
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
Tawose Olamide Timothy
 
Image compression standards
Image compression standardsImage compression standards
Image compression standards
kirupasuchi1996
 
Image segmentation
Image segmentation Image segmentation
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
Poonam Seth
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
Ahmed Daoud
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
Inamul Hossain Imran
 
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
 
Image compression
Image compression Image compression
Image compression
GARIMA SHAKYA
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
kiruthiammu
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation model
AnupriyaDurai
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2
Surabhi Ks
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
Mathankumar S
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
asodariyabhavesh
 
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
asodariyabhavesh
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING
anam singla
 
ImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).pptImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).ppt
VikramBarapatre2
 

What's hot (20)

Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
 
Chapter 6 color image processing
Chapter 6 color image processingChapter 6 color image processing
Chapter 6 color image processing
 
Run length encoding
Run length encodingRun length encoding
Run length encoding
 
Digital Image restoration
Digital Image restorationDigital Image restoration
Digital Image restoration
 
IMAGE SEGMENTATION.
IMAGE SEGMENTATION.IMAGE SEGMENTATION.
IMAGE SEGMENTATION.
 
Image compression standards
Image compression standardsImage compression standards
Image compression standards
 
Image segmentation
Image segmentation Image segmentation
Image segmentation
 
Data Redundacy
Data RedundacyData Redundacy
Data Redundacy
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Image compression
Image compression Image compression
Image compression
 
Color Image Processing
Color Image ProcessingColor Image Processing
Color Image Processing
 
Image restoration and degradation model
Image restoration and degradation modelImage restoration and degradation model
Image restoration and degradation model
 
Image enhancement ppt nal2
Image enhancement ppt nal2Image enhancement ppt nal2
Image enhancement ppt nal2
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 
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
 
HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING HSI MODEL IN COLOR IMAGE PROCESSING
HSI MODEL IN COLOR IMAGE PROCESSING
 
ImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).pptImageProcessing10-Segmentation(Thresholding) (1).ppt
ImageProcessing10-Segmentation(Thresholding) (1).ppt
 

Similar to Chapter 8 image compression

image compression Tech. 31.pptx
image compression Tech. 31.pptximage compression Tech. 31.pptx
image compression Tech. 31.pptx
BharatiPatelPhDStude
 
image basics and image compression
image basics and image compressionimage basics and image compression
image basics and image compression
murugan hari
 
notes_Image Compression.ppt
notes_Image Compression.pptnotes_Image Compression.ppt
notes_Image Compression.ppt
HarisMasood20
 
notes_Image Compression.ppt
notes_Image Compression.pptnotes_Image Compression.ppt
notes_Image Compression.ppt
HarisMasood20
 
fundamentals of digital imaging - POONAM.pptx
fundamentals of digital imaging - POONAM.pptxfundamentals of digital imaging - POONAM.pptx
fundamentals of digital imaging - POONAM.pptx
PoonamRijal
 
DIP.pptx
DIP.pptxDIP.pptx
DIP.pptx
Kaviya452563
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.ppt
dudoo1
 
ImageCompression.ppt
ImageCompression.pptImageCompression.ppt
ImageCompression.ppt
ssuser6d1fca
 
notes_Image Compression_edited.ppt
notes_Image Compression_edited.pptnotes_Image Compression_edited.ppt
notes_Image Compression_edited.ppt
HarisMasood20
 
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
IJEEE
 
Image compression in digital image processing
Image compression in digital image processingImage compression in digital image processing
Image compression in digital image processing
DHIVYADEVAKI
 
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 Compression
Editor IJMTER
 
Lec6 compression
Lec6 compressionLec6 compression
Lec6 compressionDom Mike
 
Lec6 compression
Lec6 compressionLec6 compression
Lec6 compressionDom Mike
 

Similar to 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
 

Recently uploaded

DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
FluxPrime1
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
PrashantGoswami42
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
MdTanvirMahtab2
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
Kamal Acharya
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
Divya Somashekar
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 

Recently uploaded (20)

DESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docxDESIGN A COTTON SEED SEPARATION MACHINE.docx
DESIGN A COTTON SEED SEPARATION MACHINE.docx
 
Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.Quality defects in TMT Bars, Possible causes and Potential Solutions.
Quality defects in TMT Bars, Possible causes and Potential Solutions.
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
Industrial Training at Shahjalal Fertilizer Company Limited (SFCL)
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Vaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdfVaccine management system project report documentation..pdf
Vaccine management system project report documentation..pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
block diagram and signal flow graph representation
block diagram and signal flow graph representationblock diagram and signal flow graph representation
block diagram and signal flow graph representation
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 

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