SlideShare uma empresa Scribd logo
1 de 10
Image
Compression:
JPEG Coding
Standards
Introduction
The images we see and use every day are compressed
before storing and transmitting through wireless
network.
Assume a standard, color image of 1024 x 1024 pixels.
Each pixel has 3 channels of 8 bits (1 byte). Now,
doing the math, the total space required for the
image would be 3 MB.
We all know that it is a large file, and, now, more than
ever, with smartphones and cameras, people snap
pictures of every moment, food, and places.
Stages
Image compression has four stages.
Compression can be achieved at three of these
stages, and the level of compression depends
on how efficiently it is done and how much
image clarity is being compromised.
The four stages are explained here.
Stage 1: Mapper
This stage achieves no effective compression, but it
does the necessary setup required for compression.
A computer image is composed of pixels and each pixel
is made of three colors: Red, Green, Blue (RGB). Each
pixels’ color value is represented by a byte (0-255).
The mapper modifies the RGB color space to YCbCr
color space. Y is the luminescence, Cb and Cr are the
chroma blue and red components.
Stage 2: Transformation
The next stage is executing Discrete Cosine
Transformation on the YCbCr 8X8 subimages.
In Matlab, use dct2(). What this transformation does is
it preserves most of the image data from 64 matrix
elements into first few elements of the matrix.
That way, depending on the clarity of image needed,
first few elements of the matrix can be picked and
the rest of them can be ignored.
Stage 3: Quantization
The pixels have values ranging from 0 to 255. But, the
human eye can notice little difference between the
value changes.
Taking advantage, we can quantize the values, so we
can say that any value between 11-20 will be
considered as 15, and 21-30 as 25 and so on... The
easiest way to do is to divide by 16.
That way, (0-255) / 16 = (0 – 15) or 4 bits. Hence,
instead of 8 bits, now you need 4 bits. This is where
most of compression occurs for images.
When you decode, you just multiply with 16 to get the
actual pixel value.
Stage 4: Huffman Coding
The basic idea is that if you take any image and do a
histogram of pixel values, you will find that most of
the pixels (about 50% or more) are of same value
and some other value like 25%.
The idea is to give the pixel value with maximum
probability a single bit (like 0 or 1), then the 2nd
highest probability pixel would get something like
(01 or 10) and so on…
The key idea is to try to reduce the bit occupancy for
highly repeating pixel values (goes back to why
repeatability is good and why we split into YCbCr
space).
Decoding
Once you have the compressed image data, it is the
matter of writing it to a file that can be decoded
properly and re-constructed back.
There is always going to be an overhead of file
structure and tags, so your file format has to be
efficient.
The image can be constructed by reversing each of the
step.
Learn More
in

IIT Kharagpur's
First Online
Certificate Course on
Image and
Video Communication
[Refer: http://goo.gl/hMyYWa ;
courses@wiziq.com]
Learn More
in

IIT Kharagpur's
First Online
Certificate Course on
Image and
Video Communication
[Refer: http://goo.gl/hMyYWa ;
courses@wiziq.com]

Mais conteúdo relacionado

Mais procurados

image basics and image compression
image basics and image compressionimage basics and image compression
image basics and image compressionmurugan hari
 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compressionPradip Kumar
 
Image compression introductory presentation
Image compression introductory presentationImage compression introductory presentation
Image compression introductory presentationTariq Abbas
 
Compression: Images (JPEG)
Compression: Images (JPEG)Compression: Images (JPEG)
Compression: Images (JPEG)danishrafiq
 
Multimedia communication jpeg
Multimedia communication jpegMultimedia communication jpeg
Multimedia communication jpegDr. Kapil Gupta
 
Multimedia lossy compression algorithms
Multimedia lossy compression algorithmsMultimedia lossy compression algorithms
Multimedia lossy compression algorithmsMazin Alwaaly
 
Why Image compression is Necessary?
Why Image compression is Necessary?Why Image compression is Necessary?
Why Image compression is Necessary?Prabhat Kumar
 
Image compression
Image compressionImage compression
Image compressionAle Johnsan
 
Comparison between JPEG(DCT) and JPEG 2000(DWT) compression standards
Comparison between JPEG(DCT) and JPEG 2000(DWT) compression standardsComparison between JPEG(DCT) and JPEG 2000(DWT) compression standards
Comparison between JPEG(DCT) and JPEG 2000(DWT) compression standardsRishab2612
 
Multimedia image compression standards
Multimedia image compression standardsMultimedia image compression standards
Multimedia image compression standardsMazin Alwaaly
 
Multimedia basic video compression techniques
Multimedia basic video compression techniquesMultimedia basic video compression techniques
Multimedia basic video compression techniquesMazin Alwaaly
 

Mais procurados (20)

image basics and image compression
image basics and image compressionimage basics and image compression
image basics and image compression
 
Seminar Report on image compression
Seminar Report on image compressionSeminar Report on image compression
Seminar Report on image compression
 
JPEG
JPEGJPEG
JPEG
 
JPEG Image Compression
JPEG Image CompressionJPEG Image Compression
JPEG Image Compression
 
Image compression introductory presentation
Image compression introductory presentationImage compression introductory presentation
Image compression introductory presentation
 
Image compression
Image compressionImage compression
Image compression
 
Image compression
Image compressionImage compression
Image compression
 
Compression: Images (JPEG)
Compression: Images (JPEG)Compression: Images (JPEG)
Compression: Images (JPEG)
 
Multimedia communication jpeg
Multimedia communication jpegMultimedia communication jpeg
Multimedia communication jpeg
 
Multimedia lossy compression algorithms
Multimedia lossy compression algorithmsMultimedia lossy compression algorithms
Multimedia lossy compression algorithms
 
Why Image compression is Necessary?
Why Image compression is Necessary?Why Image compression is Necessary?
Why Image compression is Necessary?
 
Image compression
Image compressionImage compression
Image compression
 
Comparison between JPEG(DCT) and JPEG 2000(DWT) compression standards
Comparison between JPEG(DCT) and JPEG 2000(DWT) compression standardsComparison between JPEG(DCT) and JPEG 2000(DWT) compression standards
Comparison between JPEG(DCT) and JPEG 2000(DWT) compression standards
 
Image compression Algorithms
Image compression AlgorithmsImage compression Algorithms
Image compression Algorithms
 
Jpeg standards
Jpeg   standardsJpeg   standards
Jpeg standards
 
Image Compression
Image CompressionImage Compression
Image Compression
 
Multimedia image compression standards
Multimedia image compression standardsMultimedia image compression standards
Multimedia image compression standards
 
Multimedia basic video compression techniques
Multimedia basic video compression techniquesMultimedia basic video compression techniques
Multimedia basic video compression techniques
 
Compression Ii
Compression IiCompression Ii
Compression Ii
 
Data compression
Data compressionData compression
Data compression
 

Destaque

Mp3 kodlama standarti
Mp3 kodlama standartiMp3 kodlama standarti
Mp3 kodlama standartiUgur Yildiz
 
Common image compression formats
Common image compression formatsCommon image compression formats
Common image compression formatsClyde Lettsome
 
Video Compression Demystified - Intro to MPEG, AVI, WMV
Video Compression Demystified - Intro to MPEG, AVI, WMVVideo Compression Demystified - Intro to MPEG, AVI, WMV
Video Compression Demystified - Intro to MPEG, AVI, WMVArpit Agarwal
 
Hw3 0972552
Hw3 0972552Hw3 0972552
Hw3 0972552s0972552
 
PDF uncertainties the LHC made easy: a compression algorithm for the combinat...
PDF uncertainties the LHC made easy: a compression algorithm for the combinat...PDF uncertainties the LHC made easy: a compression algorithm for the combinat...
PDF uncertainties the LHC made easy: a compression algorithm for the combinat...juanrojochacon
 
Görüntü işleme - Image Processing
Görüntü işleme - Image ProcessingGörüntü işleme - Image Processing
Görüntü işleme - Image Processingİbrahim Bayraktar
 
Image compression using dpcm with lms algorithm ranbeer
Image compression using dpcm with lms algorithm ranbeerImage compression using dpcm with lms algorithm ranbeer
Image compression using dpcm with lms algorithm ranbeerRanbeer Tyagi
 
intoPIX - Everything about Jpeg2000
intoPIX - Everything about Jpeg2000intoPIX - Everything about Jpeg2000
intoPIX - Everything about Jpeg2000guestd38f1
 
Discrete cosine transform
Discrete cosine transform   Discrete cosine transform
Discrete cosine transform Rashmi Karkra
 
MPEG video compression standard
MPEG video compression standardMPEG video compression standard
MPEG video compression standardanuragjagetiya
 
Video Compression Basics - MPEG2
Video Compression Basics - MPEG2Video Compression Basics - MPEG2
Video Compression Basics - MPEG2VijayKumarArya
 
video compression techique
video compression techiquevideo compression techique
video compression techiqueAshish Kumar
 

Destaque (18)

JPEG Image Compression
JPEG Image CompressionJPEG Image Compression
JPEG Image Compression
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Mp3 kodlama standarti
Mp3 kodlama standartiMp3 kodlama standarti
Mp3 kodlama standarti
 
Image Compression
Image CompressionImage Compression
Image Compression
 
Common image compression formats
Common image compression formatsCommon image compression formats
Common image compression formats
 
Video Compression Demystified - Intro to MPEG, AVI, WMV
Video Compression Demystified - Intro to MPEG, AVI, WMVVideo Compression Demystified - Intro to MPEG, AVI, WMV
Video Compression Demystified - Intro to MPEG, AVI, WMV
 
Jpeg dct
Jpeg dctJpeg dct
Jpeg dct
 
Hw3 0972552
Hw3 0972552Hw3 0972552
Hw3 0972552
 
Jpeg
JpegJpeg
Jpeg
 
Hw2
Hw2Hw2
Hw2
 
PDF uncertainties the LHC made easy: a compression algorithm for the combinat...
PDF uncertainties the LHC made easy: a compression algorithm for the combinat...PDF uncertainties the LHC made easy: a compression algorithm for the combinat...
PDF uncertainties the LHC made easy: a compression algorithm for the combinat...
 
Görüntü işleme - Image Processing
Görüntü işleme - Image ProcessingGörüntü işleme - Image Processing
Görüntü işleme - Image Processing
 
Image compression using dpcm with lms algorithm ranbeer
Image compression using dpcm with lms algorithm ranbeerImage compression using dpcm with lms algorithm ranbeer
Image compression using dpcm with lms algorithm ranbeer
 
intoPIX - Everything about Jpeg2000
intoPIX - Everything about Jpeg2000intoPIX - Everything about Jpeg2000
intoPIX - Everything about Jpeg2000
 
Discrete cosine transform
Discrete cosine transform   Discrete cosine transform
Discrete cosine transform
 
MPEG video compression standard
MPEG video compression standardMPEG video compression standard
MPEG video compression standard
 
Video Compression Basics - MPEG2
Video Compression Basics - MPEG2Video Compression Basics - MPEG2
Video Compression Basics - MPEG2
 
video compression techique
video compression techiquevideo compression techique
video compression techique
 

Semelhante a Image compression jpeg coding standards

Mathematics in the Digital Age
Mathematics in the Digital AgeMathematics in the Digital Age
Mathematics in the Digital AgeReva Narasimhan
 
06 cie552 image_manipulation
06 cie552 image_manipulation06 cie552 image_manipulation
06 cie552 image_manipulationElsayed Hemayed
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Pptekul
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems PptKyle
 
Learning& Teaching Systems Ppt
Learning& Teaching  Systems PptLearning& Teaching  Systems Ppt
Learning& Teaching Systems PptNaruin
 
Computer Systems
Computer SystemsComputer Systems
Computer Systemsdrs
 
New Computer Systems
New Computer SystemsNew Computer Systems
New Computer Systemsmrsmackenzie
 
Lecture 2-2023.pdf
Lecture 2-2023.pdfLecture 2-2023.pdf
Lecture 2-2023.pdfssuserff72e4
 
Lecture 2-2023.pdf
Lecture 2-2023.pdfLecture 2-2023.pdf
Lecture 2-2023.pdfssuserff72e4
 
Multimedia digital images
 Multimedia  digital images Multimedia  digital images
Multimedia digital imagesMohammad Dwikat
 
Lossless Huffman coding image compression implementation in spatial domain by...
Lossless Huffman coding image compression implementation in spatial domain by...Lossless Huffman coding image compression implementation in spatial domain by...
Lossless Huffman coding image compression implementation in spatial domain by...IRJET Journal
 
Chapter 3 data representations
Chapter 3 data representationsChapter 3 data representations
Chapter 3 data representationsABDUmomo
 
Multimedia graphics and image data representation
Multimedia graphics and image data representationMultimedia graphics and image data representation
Multimedia graphics and image data representationMazin Alwaaly
 
//STEIM Workshop: A Vernacular of File Formats
//STEIM Workshop: A Vernacular of File Formats//STEIM Workshop: A Vernacular of File Formats
//STEIM Workshop: A Vernacular of File FormatsRosa ɯǝukɯɐn
 
Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...
Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...
Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...ijistjournal
 
Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...
Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...
Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...ijistjournal
 

Semelhante a Image compression jpeg coding standards (20)

Mathematics in the Digital Age
Mathematics in the Digital AgeMathematics in the Digital Age
Mathematics in the Digital Age
 
06 cie552 image_manipulation
06 cie552 image_manipulation06 cie552 image_manipulation
06 cie552 image_manipulation
 
Lecture 10 Image Format
Lecture 10  Image FormatLecture 10  Image Format
Lecture 10 Image Format
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Ppt
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Ppt
 
Learning& Teaching Systems Ppt
Learning& Teaching  Systems PptLearning& Teaching  Systems Ppt
Learning& Teaching Systems Ppt
 
Computer Systems
Computer SystemsComputer Systems
Computer Systems
 
New Computer Systems
New Computer SystemsNew Computer Systems
New Computer Systems
 
Lecture 2-2023.pdf
Lecture 2-2023.pdfLecture 2-2023.pdf
Lecture 2-2023.pdf
 
Lecture 2-2023.pdf
Lecture 2-2023.pdfLecture 2-2023.pdf
Lecture 2-2023.pdf
 
Multimedia digital images
 Multimedia  digital images Multimedia  digital images
Multimedia digital images
 
Lossless Huffman coding image compression implementation in spatial domain by...
Lossless Huffman coding image compression implementation in spatial domain by...Lossless Huffman coding image compression implementation in spatial domain by...
Lossless Huffman coding image compression implementation in spatial domain by...
 
Chapter 3 data representations
Chapter 3 data representationsChapter 3 data representations
Chapter 3 data representations
 
Multimedia graphics and image data representation
Multimedia graphics and image data representationMultimedia graphics and image data representation
Multimedia graphics and image data representation
 
//STEIM Workshop: A Vernacular of File Formats
//STEIM Workshop: A Vernacular of File Formats//STEIM Workshop: A Vernacular of File Formats
//STEIM Workshop: A Vernacular of File Formats
 
Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...
Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...
Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...
 
Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...
Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...
Multi-Level Coding Efficiency with Improved Quality for Image Compression bas...
 
Source coding
Source codingSource coding
Source coding
 
Himadeep
HimadeepHimadeep
Himadeep
 
CG.pptx
CG.pptxCG.pptx
CG.pptx
 

Mais de sakshij91

Why vedic mathematics
Why vedic mathematicsWhy vedic mathematics
Why vedic mathematicssakshij91
 
Cat quant myths
Cat  quant mythsCat  quant myths
Cat quant mythssakshij91
 
The growing popularity of vedic math
The growing popularity of vedic mathThe growing popularity of vedic math
The growing popularity of vedic mathsakshij91
 
Plc then and now
Plc then and nowPlc then and now
Plc then and nowsakshij91
 
Vedic maths history and development
Vedic maths history and developmentVedic maths history and development
Vedic maths history and developmentsakshij91
 
Knowing more about plc
Knowing more about plcKnowing more about plc
Knowing more about plcsakshij91
 
The basics of plc technology part 2
The basics of plc technology part 2The basics of plc technology part 2
The basics of plc technology part 2sakshij91
 
The basics of plc technology
The basics of plc technologyThe basics of plc technology
The basics of plc technologysakshij91
 
The motion estimation
The motion estimationThe motion estimation
The motion estimationsakshij91
 
Benefits of vedic mathemetics
Benefits of vedic mathemeticsBenefits of vedic mathemetics
Benefits of vedic mathemeticssakshij91
 
Basics of audio coding
Basics of audio codingBasics of audio coding
Basics of audio codingsakshij91
 
Eligibility for ies exams
Eligibility for ies examsEligibility for ies exams
Eligibility for ies examssakshij91
 
Basics of speech coding
Basics of speech codingBasics of speech coding
Basics of speech codingsakshij91
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniquessakshij91
 
Xat 2014 how different from cat
Xat 2014  how different from catXat 2014  how different from cat
Xat 2014 how different from catsakshij91
 
Xat 2014 preparation tips
Xat 2014 preparation tipsXat 2014 preparation tips
Xat 2014 preparation tipssakshij91
 
Gate exam tips and tricks
Gate exam tips and tricksGate exam tips and tricks
Gate exam tips and trickssakshij91
 
Ies exams and gate exam
Ies exams and gate examIes exams and gate exam
Ies exams and gate examsakshij91
 
Ies 2014 exam tips
Ies 2014 exam tipsIes 2014 exam tips
Ies 2014 exam tipssakshij91
 
Role of cat exam coaching
Role of cat exam coachingRole of cat exam coaching
Role of cat exam coachingsakshij91
 

Mais de sakshij91 (20)

Why vedic mathematics
Why vedic mathematicsWhy vedic mathematics
Why vedic mathematics
 
Cat quant myths
Cat  quant mythsCat  quant myths
Cat quant myths
 
The growing popularity of vedic math
The growing popularity of vedic mathThe growing popularity of vedic math
The growing popularity of vedic math
 
Plc then and now
Plc then and nowPlc then and now
Plc then and now
 
Vedic maths history and development
Vedic maths history and developmentVedic maths history and development
Vedic maths history and development
 
Knowing more about plc
Knowing more about plcKnowing more about plc
Knowing more about plc
 
The basics of plc technology part 2
The basics of plc technology part 2The basics of plc technology part 2
The basics of plc technology part 2
 
The basics of plc technology
The basics of plc technologyThe basics of plc technology
The basics of plc technology
 
The motion estimation
The motion estimationThe motion estimation
The motion estimation
 
Benefits of vedic mathemetics
Benefits of vedic mathemeticsBenefits of vedic mathemetics
Benefits of vedic mathemetics
 
Basics of audio coding
Basics of audio codingBasics of audio coding
Basics of audio coding
 
Eligibility for ies exams
Eligibility for ies examsEligibility for ies exams
Eligibility for ies exams
 
Basics of speech coding
Basics of speech codingBasics of speech coding
Basics of speech coding
 
Image enhancement techniques
Image enhancement techniquesImage enhancement techniques
Image enhancement techniques
 
Xat 2014 how different from cat
Xat 2014  how different from catXat 2014  how different from cat
Xat 2014 how different from cat
 
Xat 2014 preparation tips
Xat 2014 preparation tipsXat 2014 preparation tips
Xat 2014 preparation tips
 
Gate exam tips and tricks
Gate exam tips and tricksGate exam tips and tricks
Gate exam tips and tricks
 
Ies exams and gate exam
Ies exams and gate examIes exams and gate exam
Ies exams and gate exam
 
Ies 2014 exam tips
Ies 2014 exam tipsIes 2014 exam tips
Ies 2014 exam tips
 
Role of cat exam coaching
Role of cat exam coachingRole of cat exam coaching
Role of cat exam coaching
 

Último

HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)lakshayb543
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxMaryGraceBautista27
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 

Último (20)

LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
Visit to a blind student's school🧑‍🦯🧑‍🦯(community medicine)
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Science 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptxScience 7 Quarter 4 Module 2: Natural Resources.pptx
Science 7 Quarter 4 Module 2: Natural Resources.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
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🔝
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 

Image compression jpeg coding standards

  • 2. Introduction The images we see and use every day are compressed before storing and transmitting through wireless network. Assume a standard, color image of 1024 x 1024 pixels. Each pixel has 3 channels of 8 bits (1 byte). Now, doing the math, the total space required for the image would be 3 MB. We all know that it is a large file, and, now, more than ever, with smartphones and cameras, people snap pictures of every moment, food, and places.
  • 3. Stages Image compression has four stages. Compression can be achieved at three of these stages, and the level of compression depends on how efficiently it is done and how much image clarity is being compromised. The four stages are explained here.
  • 4. Stage 1: Mapper This stage achieves no effective compression, but it does the necessary setup required for compression. A computer image is composed of pixels and each pixel is made of three colors: Red, Green, Blue (RGB). Each pixels’ color value is represented by a byte (0-255). The mapper modifies the RGB color space to YCbCr color space. Y is the luminescence, Cb and Cr are the chroma blue and red components.
  • 5. Stage 2: Transformation The next stage is executing Discrete Cosine Transformation on the YCbCr 8X8 subimages. In Matlab, use dct2(). What this transformation does is it preserves most of the image data from 64 matrix elements into first few elements of the matrix. That way, depending on the clarity of image needed, first few elements of the matrix can be picked and the rest of them can be ignored.
  • 6. Stage 3: Quantization The pixels have values ranging from 0 to 255. But, the human eye can notice little difference between the value changes. Taking advantage, we can quantize the values, so we can say that any value between 11-20 will be considered as 15, and 21-30 as 25 and so on... The easiest way to do is to divide by 16. That way, (0-255) / 16 = (0 – 15) or 4 bits. Hence, instead of 8 bits, now you need 4 bits. This is where most of compression occurs for images. When you decode, you just multiply with 16 to get the actual pixel value.
  • 7. Stage 4: Huffman Coding The basic idea is that if you take any image and do a histogram of pixel values, you will find that most of the pixels (about 50% or more) are of same value and some other value like 25%. The idea is to give the pixel value with maximum probability a single bit (like 0 or 1), then the 2nd highest probability pixel would get something like (01 or 10) and so on… The key idea is to try to reduce the bit occupancy for highly repeating pixel values (goes back to why repeatability is good and why we split into YCbCr space).
  • 8. Decoding Once you have the compressed image data, it is the matter of writing it to a file that can be decoded properly and re-constructed back. There is always going to be an overhead of file structure and tags, so your file format has to be efficient. The image can be constructed by reversing each of the step.
  • 9. Learn More in IIT Kharagpur's First Online Certificate Course on Image and Video Communication [Refer: http://goo.gl/hMyYWa ; courses@wiziq.com]
  • 10. Learn More in IIT Kharagpur's First Online Certificate Course on Image and Video Communication [Refer: http://goo.gl/hMyYWa ; courses@wiziq.com]