SlideShare a Scribd company logo
1 of 24
M.SRI NANDHINI
II MSC CS
DEPARTMENT OF CS & IT
NADAR SARASWATHI COLLEGE OF
ARTS AND SCIENCE
THENI
 Image compression is the art and science of reducing the
amount of data required to represent an image.
 It is one of the most useful and commercially successful
technology in the field of Digital Image Processing.
 The number of images that are compressed and
decompressed daily is staggering, and the compressions and
decompressions themselves are virtually invisible to the user.
 Any one who owns a digital camera, surfs the web, or watches
the latest Hollywood movies on Digital Video Disks (DVDs)
benefits from the algorithms and standards discussed in this
chapter.
 To better understand the need for compact image
representations, consider the amount of data required to
represent a two-hour standard definition (SD) television movie
using 720 x 480 x 24 bit pixels arrays.
 A digital movie(or video) is a sequence of video frames in which
each frame is a full-color still image. Because video players must
display the frames sequentially at rates near 30 fps (frames per
second), SD digital video data must be accessed at:
30 frames/sec x (720 x 480) pixels/frame x 3 bytes/pixel =
31,104,000 bytes/sec
And a two-hour movie consists of:
31,104,000 bytes/sec x (602 ) sec/hr x 2 hrs = 2.24 x 1011 bytes
Or 224 GB of data.
 Twenty-seven 8.5 GB dual-layer DVDs (assuming
conventional 12 cm disks) are needed to store it.
 To put a two-hour movie on a single DVD, each frame must
be compressed-on average- by a factor of 26.3.
 The compression must be higher for high definition (HD)
television, where image resolutions reach 1920 x 1080 x 24
bits/image.
 Web page images and high-resolution digital camera photos
also are compressed routinely to save storage space and
reduce transmission time.
 For example: residential Internet connections deliver data at speeds
ranging from 56 Kbps via conventional phone lines to more than 12
Mbps for broadband.
 The time required to transmit a small
128 x 128 x 24 bit full-color image over this range of speeds is from 7.0
to 0.03 seconds.
 Compression can reduce transmission time by a factor of 2 to 10 or
more.
 In addition to these applications, image compression plays an important
role in many other areas, including televideo conferencing, remote
sensing, document and medical imaging, facsimile transmission (FAX).
 An increasing number of applications depend on the efficient
manipulation, storage, and transmission of binary, grayscale, and color
images.
 In this chapter we introduce:
◦ 1. the theory and practice of digital image
compression
◦ 2. examining the most frequently used compression
techniques and describe the industry standards that
make them useful.
◦ 3. the material is introductory in nature to both still
images and video applications
 The term data compression refers to the process of reducing the
amount of data required to represent a given quantity of
information.
 Representations may contain irrelevant or repeated information
this is considered redundant data.
 Compression is a technique which increases efficiency by
removing redundancy from representations, and hence
representations without redundancy cannot be compressed.
 Lossless compression techniques do not lose any significant
aspect of the original representation.
 Lossy compression, on the other hand, loses parts of the original
in a controlled way.
 Decompression is the reverse operation, where the redundant
parts are put back into the representation to restore it to its
initial form.
 In the context of digital image compression, usually is the
number of bits needed to represent an image as a 2-D array
of intensity values.
 The 2-D intensity arrays are preferred formats for human
viewing and interpretation and the standard by which all
other representations are judged.
 When it comes to compact image representation, however,
these formats are far from optimal.
 Two - dimensional intensity arrays suffer from three principal
types of data redundancies that can be identified and
exploited:
◦ 1. Coding redundancy
◦ 2. Spatial and temporal redundancy
◦ 3. Irrelevant Information
1. Coding redundancy: a code is a system of symbols
(letters, numbers, and 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. The number of symbols in each code word is
its length. The 8-bit codes that are used to represent the
intensities in most 2-D intensity arrays contain more bits
than are needed to represent the intensities.
2. Spatial and temporal redundancy: because the pixels of
most 2-D intensity arrays are correlated spatially( i.e., each
pixel is similar to or dependent on neighboring pixels),
information is unnecessarily replicated 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 the human visual system
and/or extraneous to the intended use of the image. It is
redundant in the sense that it is not used.
 As Fig. 8.5 shows, an image compression system is
composed of two distinct functional components: an encoder
and a decoder. The encoder performs compression and the
decoder performs the complementary operations of
decompression.
 Both operations can be performed in software, as is the case
in Web browsers and many commercial image editing
programs, or in combination of hardware and firmware, as in
commercial DVD players. A codec is a device or a program
that is capable of both encoding and decoding.
 Input image f(x,y) is fed into the encoder, which creates a
compressed representation of the input. This representation
is stored for later use, or transmitted for storage and use at
remote location.
 When the compressed representation is presented to its
complementary decoder, a reconstructed output image f∧(x,y)
is generated.
 In still image application, the encoded input and decoder
output are f(x,y) and f∧(x,y) , respectively; in video
applications, they are f(x,y,t) and f∧(x,y,t) , where discrete
parameter t specifies time.
 In general, f∧(x,…) may or may not be an
exact replication of f(x,…).
 If it is, the compression system is called
error free, lossless, or information
preserving.
 If not, the reconstructed output image is
distorted and the compression system is
referred to as lossy.
 The encoder in Fig.8.5 is designed to remove the
redundancies through a series of three independent
operations.
 In the first stage of the encoding process, a mapper
transforms f(x,…) into a (usually non visual) format designed
to reduce spatial and temporal redundancy.
 This operation generally is reversible and may or may not
reduce directly the amount of data required to represent the
image.
 Run-length coding is an example of mapping that normally
yields compression in the first step of the encoding process.
 The quantizer: reduces the accuracy of the mapper’s output in
accordance with a pre-established fidelity criterion. The goal is
to keep irrelevant information out of the compressed
representation. This step is irreversible. It must be omitted when
error-free compression is desired
 In third and final stage of the encoding process, the symbol
coder: it generates a fixed- or variable – length code to
represent the quantizer output and maps the output in
accordance with the code. In many cases, a variable length code
is used. The shortest code words are assigned to the most
frequently occurring quantizer output values thus minimizing
coding redundancy. This operation is reversible.
 Upon the completion of the process, the input image has been
processed for the removal of each of the three redundancies
described before.
 The decoder contains only two components:
 A symbol decoder and an inverse mapper.
 They perform in reverse order, the inverse
operation of the encoder’s symbol encoder
and mapper.
 Because quantization results in irreversible
information loss, an inverse quantizer block
is not included in the general decoder model.
 In the context of digital imaging, an image file format is a
standard way to organize and store image data.
 It defines how the data is arranged and the type of
compression – if any – that is used.
 An Image Container is similar to a file format but handles
multiple type of image data.
 Image compression standards, on the other hand, define
procedures for compressing and decompressing images that
is for reducing the amount of data needed to represent an
image.
 These standards are the underpinning of the widespread
acceptance of image compression technology.
 Most common compression standards are JPEG (Joint Photographic E
xperts Group) and GIF (Graphics Interchange Format).
 Both standards reduce the number of bits used to store each pixel.
 GIF condenses each pixel from 24 bits to 8, by reducing the set of
colors used to a smaller set, called a palette.
 JPEG is designed to take advantage of certain properties of our eyes,
namely, that we are more sensitive to slow changes of brightness and
color than we are to rapid changes over a short distance.
 Image data can sometimes be compressed to one twenty-fifth of the
original size.
 For video, the dominant standard is MPEG (Moving Picture Experts
Group), which is now used in most digital camcorders.
 Huffman Coding
 Golomb Coding
 Arithmetic Coding
 LZW Coding
 Run-Length Coding
 One-dimensional CCITT compression
 two-dimensional CCITT compression
 Symbol-Based Coding
 In this section, we describe the principle lossy
and error-free compression methods in use
today. Our focus is on methods that have
proven useful in mainstream binary,
continuous-tone still images, and video
compression standards. The standards
themselves are used to demonstrate the
methods presented.
Huffman Coding
 One of the most popular techniques for removing coding
redundancy is due to Huffman (Huffman 1952).
 When coding the symbols of an information source
individually, Huffman code yields the smallest possible
number of code symbols per source symbol.
 The resulting code is optimal for a fixed value of n.
 The first step in Huffman’s approach is to create a series of
source reductions by ordering the probabilities of the
symbols under consideration and combining the lowest
probability symbols into a single symbol that places them in
the next source reduction.
 The second step in Huffman’s procedure is to code each
reduced source, starting with the smallest source and
working back to the original source from
 In Golomb Coding we consider the coding of non-
negative integer inputs with exponentially decaying
probability distributions in terms of log and
exponent.
 Inputs of this type can be optimally encoded using
a family of codes that are computationally simpler
than Huffman codes.
 Both Huffman and Glomb coding depends on the
variable-length codes.

More Related Content

What's hot

What's hot (20)

Image compression
Image compressionImage compression
Image compression
 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compression
 
Image compression
Image compressionImage compression
Image compression
 
Image compression
Image compressionImage compression
Image compression
 
Image compression and jpeg
Image compression and jpegImage compression and jpeg
Image compression and jpeg
 
comparision of lossy and lossless image compression using various algorithm
comparision of lossy and lossless image compression using various algorithmcomparision of lossy and lossless image compression using various algorithm
comparision of lossy and lossless image compression using various algorithm
 
Presentation of Lossy compression
Presentation of Lossy compressionPresentation of Lossy compression
Presentation of Lossy compression
 
Image compression .
Image compression .Image compression .
Image compression .
 
Image compression
Image compressionImage compression
Image compression
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Image Compression
Image CompressionImage Compression
Image Compression
 
Compression techniques
Compression techniquesCompression techniques
Compression techniques
 
Compression: Images (JPEG)
Compression: Images (JPEG)Compression: Images (JPEG)
Compression: Images (JPEG)
 
Image compression: Techniques and Application
Image compression: Techniques and ApplicationImage compression: Techniques and Application
Image compression: Techniques and Application
 
Chapter 8 image compression
Chapter 8 image compressionChapter 8 image compression
Chapter 8 image compression
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
Image compression Algorithms
Image compression AlgorithmsImage compression Algorithms
Image compression Algorithms
 
Digital image compression techniques
Digital image compression techniquesDigital image compression techniques
Digital image compression techniques
 
Image compression
Image compressionImage compression
Image compression
 
Transform coding
Transform codingTransform coding
Transform coding
 

Similar to Image compression

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
 
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
 
Iaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosineIaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosineIaetsd Iaetsd
 
Technical glossary
Technical glossaryTechnical glossary
Technical glossaryhalo4robo
 
10.1.1.184.6612
10.1.1.184.661210.1.1.184.6612
10.1.1.184.6612NITC
 
IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...
IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...
IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...IRJET Journal
 
Enhanced Image Compression Using Wavelets
Enhanced Image Compression Using WaveletsEnhanced Image Compression Using Wavelets
Enhanced Image Compression Using WaveletsIJRES Journal
 
Paper id 25201490
Paper id 25201490Paper id 25201490
Paper id 25201490IJRAT
 
Technical glossary
Technical glossaryTechnical glossary
Technical glossaryhalo4robo
 
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...ijcsa
 
A Novel Approach for Compressing Surveillance System Videos
A Novel Approach for Compressing Surveillance System VideosA Novel Approach for Compressing Surveillance System Videos
A Novel Approach for Compressing Surveillance System VideosINFOGAIN PUBLICATION
 
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSIONA REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSIONNancy Ideker
 
Image Compression using a Raspberry Pi
Image Compression using a Raspberry PiImage Compression using a Raspberry Pi
Image Compression using a Raspberry PiIRJET Journal
 
Chapter 5 - Data Compression
Chapter 5 - Data CompressionChapter 5 - Data Compression
Chapter 5 - Data CompressionPratik Pradhan
 
IRJET- RGB Image Compression using Multi-Level Block Trunction Code Algor...
IRJET-  	  RGB Image Compression using Multi-Level Block Trunction Code Algor...IRJET-  	  RGB Image Compression using Multi-Level Block Trunction Code Algor...
IRJET- RGB Image Compression using Multi-Level Block Trunction Code Algor...IRJET Journal
 
Video compressiontechniques&standards lamamahmoud_report#2
Video compressiontechniques&standards lamamahmoud_report#2Video compressiontechniques&standards lamamahmoud_report#2
Video compressiontechniques&standards lamamahmoud_report#2engLamaMahmoud
 
A Hybrid DWT-SVD Method for Digital Video Watermarking Using Random Frame Sel...
A Hybrid DWT-SVD Method for Digital Video Watermarking Using Random Frame Sel...A Hybrid DWT-SVD Method for Digital Video Watermarking Using Random Frame Sel...
A Hybrid DWT-SVD Method for Digital Video Watermarking Using Random Frame Sel...researchinventy
 
Using Compression Techniques to Streamline Image and Video Storage and Retrieval
Using Compression Techniques to Streamline Image and Video Storage and RetrievalUsing Compression Techniques to Streamline Image and Video Storage and Retrieval
Using Compression Techniques to Streamline Image and Video Storage and RetrievalCognizant
 

Similar to Image compression (20)

Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)Image compression 14_04_2020 (1)
Image compression 14_04_2020 (1)
 
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
 
Iaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosineIaetsd performance analysis of discrete cosine
Iaetsd performance analysis of discrete cosine
 
M.sc.iii sem digital image processing unit v
M.sc.iii sem digital image processing unit vM.sc.iii sem digital image processing unit v
M.sc.iii sem digital image processing unit v
 
Technical glossary
Technical glossaryTechnical glossary
Technical glossary
 
Seminar
SeminarSeminar
Seminar
 
10.1.1.184.6612
10.1.1.184.661210.1.1.184.6612
10.1.1.184.6612
 
IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...
IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...
IRJET- A Hybrid Image and Video Compression of DCT and DWT Techniques for H.2...
 
Enhanced Image Compression Using Wavelets
Enhanced Image Compression Using WaveletsEnhanced Image Compression Using Wavelets
Enhanced Image Compression Using Wavelets
 
Paper id 25201490
Paper id 25201490Paper id 25201490
Paper id 25201490
 
Technical glossary
Technical glossaryTechnical glossary
Technical glossary
 
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
REGION OF INTEREST BASED COMPRESSION OF MEDICAL IMAGE USING DISCRETE WAVELET ...
 
A Novel Approach for Compressing Surveillance System Videos
A Novel Approach for Compressing Surveillance System VideosA Novel Approach for Compressing Surveillance System Videos
A Novel Approach for Compressing Surveillance System Videos
 
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSIONA REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
A REVIEW ON LATEST TECHNIQUES OF IMAGE COMPRESSION
 
Image Compression using a Raspberry Pi
Image Compression using a Raspberry PiImage Compression using a Raspberry Pi
Image Compression using a Raspberry Pi
 
Chapter 5 - Data Compression
Chapter 5 - Data CompressionChapter 5 - Data Compression
Chapter 5 - Data Compression
 
IRJET- RGB Image Compression using Multi-Level Block Trunction Code Algor...
IRJET-  	  RGB Image Compression using Multi-Level Block Trunction Code Algor...IRJET-  	  RGB Image Compression using Multi-Level Block Trunction Code Algor...
IRJET- RGB Image Compression using Multi-Level Block Trunction Code Algor...
 
Video compressiontechniques&standards lamamahmoud_report#2
Video compressiontechniques&standards lamamahmoud_report#2Video compressiontechniques&standards lamamahmoud_report#2
Video compressiontechniques&standards lamamahmoud_report#2
 
A Hybrid DWT-SVD Method for Digital Video Watermarking Using Random Frame Sel...
A Hybrid DWT-SVD Method for Digital Video Watermarking Using Random Frame Sel...A Hybrid DWT-SVD Method for Digital Video Watermarking Using Random Frame Sel...
A Hybrid DWT-SVD Method for Digital Video Watermarking Using Random Frame Sel...
 
Using Compression Techniques to Streamline Image and Video Storage and Retrieval
Using Compression Techniques to Streamline Image and Video Storage and RetrievalUsing Compression Techniques to Streamline Image and Video Storage and Retrieval
Using Compression Techniques to Streamline Image and Video Storage and Retrieval
 

More from Ishucs

Renuga
RenugaRenuga
RenugaIshucs
 
Thresholding
ThresholdingThresholding
ThresholdingIshucs
 
Ishwariya
IshwariyaIshwariya
IshwariyaIshucs
 
Deepika
DeepikaDeepika
DeepikaIshucs
 
Renuga
RenugaRenuga
RenugaIshucs
 
Soundharya
SoundharyaSoundharya
SoundharyaIshucs
 
Lavanya
LavanyaLavanya
LavanyaIshucs
 
M.srinandhini
M.srinandhiniM.srinandhini
M.srinandhiniIshucs
 
Deepika t
Deepika tDeepika t
Deepika tIshucs
 
Sragavi (1)
Sragavi (1)Sragavi (1)
Sragavi (1)Ishucs
 
Ishwariya
IshwariyaIshwariya
IshwariyaIshucs
 
Software enginnering
Software enginneringSoftware enginnering
Software enginneringIshucs
 
Partial redundancy elimination
Partial redundancy eliminationPartial redundancy elimination
Partial redundancy eliminationIshucs
 
Software engineering
Software engineeringSoftware engineering
Software engineeringIshucs
 
Web programming
Web programmingWeb programming
Web programmingIshucs
 
Big data
Big dataBig data
Big dataIshucs
 
Affine array index
Affine array indexAffine array index
Affine array indexIshucs
 
Business intelligence tools to handle big data
Business intelligence tools to handle big dataBusiness intelligence tools to handle big data
Business intelligence tools to handle big dataIshucs
 

More from Ishucs (20)

Renuga
RenugaRenuga
Renuga
 
Snega
SnegaSnega
Snega
 
Thresholding
ThresholdingThresholding
Thresholding
 
Ishwariya
IshwariyaIshwariya
Ishwariya
 
Deepika
DeepikaDeepika
Deepika
 
Snega
SnegaSnega
Snega
 
Renuga
RenugaRenuga
Renuga
 
Soundharya
SoundharyaSoundharya
Soundharya
 
Lavanya
LavanyaLavanya
Lavanya
 
M.srinandhini
M.srinandhiniM.srinandhini
M.srinandhini
 
Deepika t
Deepika tDeepika t
Deepika t
 
Sragavi (1)
Sragavi (1)Sragavi (1)
Sragavi (1)
 
Ishwariya
IshwariyaIshwariya
Ishwariya
 
Software enginnering
Software enginneringSoftware enginnering
Software enginnering
 
Partial redundancy elimination
Partial redundancy eliminationPartial redundancy elimination
Partial redundancy elimination
 
Software engineering
Software engineeringSoftware engineering
Software engineering
 
Web programming
Web programmingWeb programming
Web programming
 
Big data
Big dataBig data
Big data
 
Affine array index
Affine array indexAffine array index
Affine array index
 
Business intelligence tools to handle big data
Business intelligence tools to handle big dataBusiness intelligence tools to handle big data
Business intelligence tools to handle big data
 

Recently uploaded

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxOH TEIK BIN
 
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
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 

Recently uploaded (20)

Solving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptxSolving Puzzles Benefits Everyone (English).pptx
Solving Puzzles Benefits Everyone (English).pptx
 
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
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 

Image compression

  • 1. M.SRI NANDHINI II MSC CS DEPARTMENT OF CS & IT NADAR SARASWATHI COLLEGE OF ARTS AND SCIENCE THENI
  • 2.  Image compression is the art and science of reducing the amount of data required to represent an image.  It is one of the most useful and commercially successful technology in the field of Digital Image Processing.  The number of images that are compressed and decompressed daily is staggering, and the compressions and decompressions themselves are virtually invisible to the user.  Any one who owns a digital camera, surfs the web, or watches the latest Hollywood movies on Digital Video Disks (DVDs) benefits from the algorithms and standards discussed in this chapter.
  • 3.  To better understand the need for compact image representations, consider the amount of data required to represent a two-hour standard definition (SD) television movie using 720 x 480 x 24 bit pixels arrays.  A digital movie(or video) is a sequence of video frames in which each frame is a full-color still image. Because video players must display the frames sequentially at rates near 30 fps (frames per second), SD digital video data must be accessed at: 30 frames/sec x (720 x 480) pixels/frame x 3 bytes/pixel = 31,104,000 bytes/sec And a two-hour movie consists of: 31,104,000 bytes/sec x (602 ) sec/hr x 2 hrs = 2.24 x 1011 bytes Or 224 GB of data.
  • 4.  Twenty-seven 8.5 GB dual-layer DVDs (assuming conventional 12 cm disks) are needed to store it.  To put a two-hour movie on a single DVD, each frame must be compressed-on average- by a factor of 26.3.  The compression must be higher for high definition (HD) television, where image resolutions reach 1920 x 1080 x 24 bits/image.  Web page images and high-resolution digital camera photos also are compressed routinely to save storage space and reduce transmission time.
  • 5.  For example: residential Internet connections deliver data at speeds ranging from 56 Kbps via conventional phone lines to more than 12 Mbps for broadband.  The time required to transmit a small 128 x 128 x 24 bit full-color image over this range of speeds is from 7.0 to 0.03 seconds.  Compression can reduce transmission time by a factor of 2 to 10 or more.  In addition to these applications, image compression plays an important role in many other areas, including televideo conferencing, remote sensing, document and medical imaging, facsimile transmission (FAX).  An increasing number of applications depend on the efficient manipulation, storage, and transmission of binary, grayscale, and color images.
  • 6.  In this chapter we introduce: ◦ 1. the theory and practice of digital image compression ◦ 2. examining the most frequently used compression techniques and describe the industry standards that make them useful. ◦ 3. the material is introductory in nature to both still images and video applications
  • 7.  The term data compression refers to the process of reducing the amount of data required to represent a given quantity of information.  Representations may contain irrelevant or repeated information this is considered redundant data.  Compression is a technique which increases efficiency by removing redundancy from representations, and hence representations without redundancy cannot be compressed.  Lossless compression techniques do not lose any significant aspect of the original representation.  Lossy compression, on the other hand, loses parts of the original in a controlled way.  Decompression is the reverse operation, where the redundant parts are put back into the representation to restore it to its initial form.
  • 8.  In the context of digital image compression, usually is the number of bits needed to represent an image as a 2-D array of intensity values.  The 2-D intensity arrays are preferred formats for human viewing and interpretation and the standard by which all other representations are judged.  When it comes to compact image representation, however, these formats are far from optimal.  Two - dimensional intensity arrays suffer from three principal types of data redundancies that can be identified and exploited: ◦ 1. Coding redundancy ◦ 2. Spatial and temporal redundancy ◦ 3. Irrelevant Information
  • 9. 1. Coding redundancy: a code is a system of symbols (letters, numbers, and 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. The number of symbols in each code word is its length. The 8-bit codes that are used to represent the intensities in most 2-D intensity arrays contain more bits than are needed to represent the intensities. 2. Spatial and temporal redundancy: because the pixels of most 2-D intensity arrays are correlated spatially( i.e., each pixel is similar to or dependent on neighboring pixels), information is unnecessarily replicated the representations of the correlated pixels. In a video sequence, temporally correlated pixels also duplicate information
  • 10. 3. Irrelevant Information: Most 2-D intensity arrays contain information that is ignored by the human visual system and/or extraneous to the intended use of the image. It is redundant in the sense that it is not used.
  • 11.
  • 12.  As Fig. 8.5 shows, an image compression system is composed of two distinct functional components: an encoder and a decoder. The encoder performs compression and the decoder performs the complementary operations of decompression.  Both operations can be performed in software, as is the case in Web browsers and many commercial image editing programs, or in combination of hardware and firmware, as in commercial DVD players. A codec is a device or a program that is capable of both encoding and decoding.
  • 13.  Input image f(x,y) is fed into the encoder, which creates a compressed representation of the input. This representation is stored for later use, or transmitted for storage and use at remote location.  When the compressed representation is presented to its complementary decoder, a reconstructed output image f∧(x,y) is generated.  In still image application, the encoded input and decoder output are f(x,y) and f∧(x,y) , respectively; in video applications, they are f(x,y,t) and f∧(x,y,t) , where discrete parameter t specifies time.
  • 14.  In general, f∧(x,…) may or may not be an exact replication of f(x,…).  If it is, the compression system is called error free, lossless, or information preserving.  If not, the reconstructed output image is distorted and the compression system is referred to as lossy.
  • 15.  The encoder in Fig.8.5 is designed to remove the redundancies through a series of three independent operations.  In the first stage of the encoding process, a mapper transforms f(x,…) into a (usually non visual) format designed to reduce spatial and temporal redundancy.  This operation generally is reversible and may or may not reduce directly the amount of data required to represent the image.  Run-length coding is an example of mapping that normally yields compression in the first step of the encoding process.
  • 16.  The quantizer: reduces the accuracy of the mapper’s output in accordance with a pre-established fidelity criterion. The goal is to keep irrelevant information out of the compressed representation. This step is irreversible. It must be omitted when error-free compression is desired  In third and final stage of the encoding process, the symbol coder: it generates a fixed- or variable – length code to represent the quantizer output and maps the output in accordance with the code. In many cases, a variable length code is used. The shortest code words are assigned to the most frequently occurring quantizer output values thus minimizing coding redundancy. This operation is reversible.  Upon the completion of the process, the input image has been processed for the removal of each of the three redundancies described before.
  • 17.  The decoder contains only two components:  A symbol decoder and an inverse mapper.  They perform in reverse order, the inverse operation of the encoder’s symbol encoder and mapper.  Because quantization results in irreversible information loss, an inverse quantizer block is not included in the general decoder model.
  • 18.  In the context of digital imaging, an image file format is a standard way to organize and store image data.  It defines how the data is arranged and the type of compression – if any – that is used.  An Image Container is similar to a file format but handles multiple type of image data.  Image compression standards, on the other hand, define procedures for compressing and decompressing images that is for reducing the amount of data needed to represent an image.  These standards are the underpinning of the widespread acceptance of image compression technology.
  • 19.  Most common compression standards are JPEG (Joint Photographic E xperts Group) and GIF (Graphics Interchange Format).  Both standards reduce the number of bits used to store each pixel.  GIF condenses each pixel from 24 bits to 8, by reducing the set of colors used to a smaller set, called a palette.  JPEG is designed to take advantage of certain properties of our eyes, namely, that we are more sensitive to slow changes of brightness and color than we are to rapid changes over a short distance.  Image data can sometimes be compressed to one twenty-fifth of the original size.  For video, the dominant standard is MPEG (Moving Picture Experts Group), which is now used in most digital camcorders.
  • 20.  Huffman Coding  Golomb Coding  Arithmetic Coding  LZW Coding  Run-Length Coding  One-dimensional CCITT compression  two-dimensional CCITT compression  Symbol-Based Coding
  • 21.  In this section, we describe the principle lossy and error-free compression methods in use today. Our focus is on methods that have proven useful in mainstream binary, continuous-tone still images, and video compression standards. The standards themselves are used to demonstrate the methods presented.
  • 22. Huffman Coding  One of the most popular techniques for removing coding redundancy is due to Huffman (Huffman 1952).  When coding the symbols of an information source individually, Huffman code yields the smallest possible number of code symbols per source symbol.  The resulting code is optimal for a fixed value of n.
  • 23.  The first step in Huffman’s approach is to create a series of source reductions by ordering the probabilities of the symbols under consideration and combining the lowest probability symbols into a single symbol that places them in the next source reduction.  The second step in Huffman’s procedure is to code each reduced source, starting with the smallest source and working back to the original source from
  • 24.  In Golomb Coding we consider the coding of non- negative integer inputs with exponentially decaying probability distributions in terms of log and exponent.  Inputs of this type can be optimally encoded using a family of codes that are computationally simpler than Huffman codes.  Both Huffman and Glomb coding depends on the variable-length codes.