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 compression introductory presentation
Image compression introductory presentationImage compression introductory presentation
Image compression introductory presentation
Tariq Abbas
 

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

Hw3 0972552
Hw3 0972552Hw3 0972552
Hw3 0972552
s0972552
 
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
 
video compression techique
video compression techiquevideo compression techique
video compression techique
Ashish 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

Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Ppt
ekul
 
Learning& Teaching Systems Ppt
Learning& Teaching  Systems PptLearning& Teaching  Systems Ppt
Learning& Teaching Systems Ppt
Naruin
 
Learning&Teaching Systems Ppt
Learning&Teaching Systems PptLearning&Teaching Systems Ppt
Learning&Teaching Systems Ppt
Kyle
 

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 mathematics
sakshij91
 
Plc then and now
Plc then and nowPlc then and now
Plc then and now
sakshij91
 
Knowing more about plc
Knowing more about plcKnowing more about plc
Knowing more about plc
sakshij91
 
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
sakshij91
 
The basics of plc technology
The basics of plc technologyThe basics of plc technology
The basics of plc technology
sakshij91
 
Xat 2014 preparation tips
Xat 2014 preparation tipsXat 2014 preparation tips
Xat 2014 preparation tips
sakshij91
 

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

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
AnaAcapella
 

Último (20)

TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

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]