SlideShare a Scribd company logo
1 of 17
Download to read offline
Image Sampling and Quantization
Mithun kumar kar
Department of Electrical Engineering
BALASORE COLLEGE OF ENGINEERING AND TECHNOLOGY, BALASORE
July 22, 2020
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 1 / 17
Image
An Image may be defined as a two dimensional function f (x, y) where
x and y are spatial coordinates and the amplitude of ’f ’ at any pair of
coordinates (x,y) is called the intensity value or gray level of the
image at that point.
An image is called a digital image when the spatial coordinates x, y
and the intensity value of ’f’ all are finite and discrete quantities.
A digital image is an array of real or complex numbers represented by
a finite number of bits.
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 2 / 17
Representation of digital image
A digital image is formed by sampling and quantization containing M
rows and N columns.
f (x, y) =





f (0, 0) f (0, 1) . . . f (0, N − 1)
f (1, 0)
...
f (1, 1) · · ·
...
f (1, N − 1)
...
f (M − 1, 0) f (M − 1, 0) · · · f (M − 1, N − 1)





Each element of this matrix is called an image element or picture
element or pixels.
The origin of a digital image is at the top left with the + x axis
extending downward and the + y axis extending to the right.
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 3 / 17
sampling
Sampling is the operation that transforms a continuous-time signal
into a discrete-time signal, that is discrete values.
Sampling the continuous-time signal x(t) with interval T we get the
discrete-time signal x(n) = x(nT) , which is a function of the discrete
variable n.
We can reconstruct the signal from the discrete samples by means of
interpolation.
Sampling a continuous-time signal with sampling rate ωs produces a
discrete-time signal whose frequency spectrum is the periodic
replication of the original signal, and the replication period is ωs.
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 4 / 17
sampling Basics
δ(t) =
∞, ift = 0
0, ift = 0
and
∞
−∞
δ(t)dt = 1
∞
−∞
f (t)δ(t)dt = f (0)and
∞
−∞
f (t)δ(t − t0)dt = f (t0)
δ(t, z) =
∞, ift = z = 0
0, ift = z = 0
and
∞
−∞
∞
−∞
δ(t, z)dtdz = 1
∞
−∞
∞
−∞
f (t, z)δ(t − t0, z − z0)dtdz = f (t0, z0)
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 5 / 17
sampling
The Fourier transform of a continuous signal x(t) is given by
X(Ω) =
∞
−∞
x(t)e−jΩt
dt
where Ω is the analog frequency in radian and
Ω = 2πFs =
2π
T
where T is the sampling period.
By inverse Fourier transform we can extract the signal from frequency
domain.
x(t) =
1
2π
∞
−∞
X(Ω)ejΩt
dΩ
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 6 / 17
1D sampling
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 7 / 17
Image sampling
Image is represented by 2D function f(x,y).
For sampling the analog image is multiply by two dimensional direc
delta function or comb function. The comb function is a rectangular
grid of points on both x and y axis or shifted impulses on both x and
y direction by a distance ∆x and ∆x.
comb(x, y, ∆x, ∆y) =
∞
k1=−∞
∞
k2=−∞
δ(x − k1∆x, y − k2∆y)
After multiplying the analog image f(x,y) with comb function we get
the discrete image f(m,n) where
f (m, n) =
∞
k1=−∞
∞
k2=−∞
f (k1∆x, k2∆y)δ(x − k1∆x, y − k2∆y)
Mathematically we write f (m, n) = f (k1∆x, k2∆y) where ∆x and
∆y are known as sampling intervals.
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 8 / 17
Image sampling
Figure : Three dimensional view of comb function.
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 9 / 17
Image sampling in frequency domain
The Fourier transform of the image signal f (x, y) is represented by
F(Ω1, Ω2) =
∞
−∞
∞
−∞
f (x, y)e−jΩ1x
e−jΩ2y
dxdy
The FT of 2D comb function is an another comb function in
frequency domain which is given by
comb(Ω1, Ω2) =
1
∆x
1
∆y
∞
p=−∞
∞
q=−∞
δ(Ω1 −
p
∆x
, Ω2 −
q
∆y
)
As in time domain the image function is multiply by comb function
which is equivalent to convolution of Fourier transforms in frequency
domain.
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 10 / 17
Image sampling in frequency domain
Now the spectrum of the 2D comb function is convolved with the
spectrum of analog image which is given by
F(ω1, ω2) = F(Ω1, Ω2) ∗ comb(Ω1, Ω2)
F(ω1, ω2) = F(Ω1, Ω2) ∗
1
∆x
1
∆y
∞
p=−∞
∞
q=−∞
δ(Ω1 −
p
∆x
, Ω2 −
q
∆y
)
F(ω1, ω2) = 1
∆x
1
∆y
∞
p=−∞
∞
q=−∞
F(Ω1 − p
∆x , Ω2 − q
∆y )
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 11 / 17
Image sampling in frequency domain
In order to retrieve the original image from the sampled spectrum, the
following condition should be satisfied ωxs > 2ωx0 and ωys > 2ωy0
where ωxs = 1
∆x and ωys = 1
∆y .
2ωx0 is the bandwidth of the spectrum in ω1 direction and 2ωy0 is the
bandwidth of the spectrum in ω2 direction
The above condition says that the sampling frequency should be
greater than twice the maximum signal frequency, which is generally
termed as sampling theorem.
A low pass filter is generally employed in order to extract the desired
spectrum.
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 12 / 17
Quantization
Digitizing the coordinate values is called sampling and digitizing the
amplitude values is called quantization.
After sampling, the values of the samples span a continuous range of
intensity values. In order to discretized the intensity values, the
intensity values must be converted in to discrete quantities. This is
called quantization.
A quantizer maps a continuous variable t in to discrete variable r.
This mapping is generally a staircase function and the quantizer
follows quantization rules.
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 13 / 17
Image sampling
Figure : A simple quanizer.
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 14 / 17
Image sampling
Quantization rule –: Define (t1, k = 1, ..., L + 1) as a set of increasing
transitions or decision levels with t1 and tL+1 as minimum and
maximum values respectively.
If t lies in the interval [tk,tk+1) then it is mapped to rk, the kth
reconstruction level.
The different types of quantizers are
Uniform quantizer
Optimum mean square quantizer
Non-uniform quantizer
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 15 / 17
References
Rafael C. Gonzalez, Richard E. Woods (2008)
Digital Image Processing
Pearson Education 2009,Third Edition.
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 16 / 17
The End
Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 17 / 17

More Related Content

What's hot

Image Restoration
Image RestorationImage Restoration
Image RestorationPoonam Seth
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation pptGichelle Amon
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filtersA B Shinde
 
Lecture 3 image sampling and quantization
Lecture 3 image sampling and quantizationLecture 3 image sampling and quantization
Lecture 3 image sampling and quantizationVARUN KUMAR
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processingAhmed Daoud
 
Lecture 14 Properties of Fourier Transform for 2D Signal
Lecture 14 Properties of Fourier Transform for 2D SignalLecture 14 Properties of Fourier Transform for 2D Signal
Lecture 14 Properties of Fourier Transform for 2D SignalVARUN KUMAR
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processingAnuj Arora
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesDiwaker Pant
 
1.arithmetic & logical operations
1.arithmetic & logical operations1.arithmetic & logical operations
1.arithmetic & logical operationsmukesh bhardwaj
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersSuhaila Afzana
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersKarthika Ramachandran
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial DomainA B Shinde
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point ProcessingGayathri31093
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image CompressionMathankumar S
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGmuthu181188
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentationasodariyabhavesh
 

What's hot (20)

Image Restoration
Image RestorationImage Restoration
Image Restoration
 
image compression ppt
image compression pptimage compression ppt
image compression ppt
 
Image segmentation ppt
Image segmentation pptImage segmentation ppt
Image segmentation ppt
 
Image Processing: Spatial filters
Image Processing: Spatial filtersImage Processing: Spatial filters
Image Processing: Spatial filters
 
Lecture 3 image sampling and quantization
Lecture 3 image sampling and quantizationLecture 3 image sampling and quantization
Lecture 3 image sampling and quantization
 
Chapter 9 morphological image processing
Chapter 9   morphological image processingChapter 9   morphological image processing
Chapter 9 morphological image processing
 
Sharpening spatial filters
Sharpening spatial filtersSharpening spatial filters
Sharpening spatial filters
 
Lecture 14 Properties of Fourier Transform for 2D Signal
Lecture 14 Properties of Fourier Transform for 2D SignalLecture 14 Properties of Fourier Transform for 2D Signal
Lecture 14 Properties of Fourier Transform for 2D Signal
 
Spatial filtering using image processing
Spatial filtering using image processingSpatial filtering using image processing
Spatial filtering using image processing
 
Frequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement TechniquesFrequency Domain Image Enhancement Techniques
Frequency Domain Image Enhancement Techniques
 
1.arithmetic & logical operations
1.arithmetic & logical operations1.arithmetic & logical operations
1.arithmetic & logical operations
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Image Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain FiltersImage Enhancement using Frequency Domain Filters
Image Enhancement using Frequency Domain Filters
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Image Enhancement - Point Processing
Image Enhancement - Point ProcessingImage Enhancement - Point Processing
Image Enhancement - Point Processing
 
Region based segmentation
Region based segmentationRegion based segmentation
Region based segmentation
 
Digital Image Processing - Image Compression
Digital Image Processing - Image CompressionDigital Image Processing - Image Compression
Digital Image Processing - Image Compression
 
Image compression .
Image compression .Image compression .
Image compression .
 
SPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSINGSPATIAL FILTERING IN IMAGE PROCESSING
SPATIAL FILTERING IN IMAGE PROCESSING
 
Chapter10 image segmentation
Chapter10 image segmentationChapter10 image segmentation
Chapter10 image segmentation
 

Similar to Image sampling and quantization

Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantizationBCET, Balasore
 
Lecture 2 Introduction to digital image
Lecture 2 Introduction to digital imageLecture 2 Introduction to digital image
Lecture 2 Introduction to digital imageVARUN KUMAR
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Varun Ojha
 
Fundamentals of image processing
Fundamentals of image processing  Fundamentals of image processing
Fundamentals of image processing BCET, Balasore
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slidesBHAGYAPRASADBUGGE
 
chAPTER1CV.pptx is abouter computer vision in artificial intelligence
chAPTER1CV.pptx is abouter computer vision in artificial intelligencechAPTER1CV.pptx is abouter computer vision in artificial intelligence
chAPTER1CV.pptx is abouter computer vision in artificial intelligenceshesnasuneer
 
computervision1.pptx its about computer vision
computervision1.pptx its about computer visioncomputervision1.pptx its about computer vision
computervision1.pptx its about computer visionshesnasuneer
 
Computer vision 3 4
Computer vision 3 4Computer vision 3 4
Computer vision 3 4sachinmore76
 
matdid950092.pdf
matdid950092.pdfmatdid950092.pdf
matdid950092.pdflencho3d
 
Image Acquisition and Representation
Image Acquisition and RepresentationImage Acquisition and Representation
Image Acquisition and RepresentationAmnaakhaan
 
Ch7 noise variation of different modulation scheme pg 63
Ch7 noise variation of different modulation scheme pg 63Ch7 noise variation of different modulation scheme pg 63
Ch7 noise variation of different modulation scheme pg 63Prateek Omer
 

Similar to Image sampling and quantization (20)

Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
 
Lecture 2 Introduction to digital image
Lecture 2 Introduction to digital imageLecture 2 Introduction to digital image
Lecture 2 Introduction to digital image
 
Presentation 1
Presentation 1Presentation 1
Presentation 1
 
Image Processing
Image ProcessingImage Processing
Image Processing
 
Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)Chapter 1 introduction (Image Processing)
Chapter 1 introduction (Image Processing)
 
Fundamentals of image processing
Fundamentals of image processing  Fundamentals of image processing
Fundamentals of image processing
 
3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides3 intensity transformations and spatial filtering slides
3 intensity transformations and spatial filtering slides
 
chAPTER1CV.pptx is abouter computer vision in artificial intelligence
chAPTER1CV.pptx is abouter computer vision in artificial intelligencechAPTER1CV.pptx is abouter computer vision in artificial intelligence
chAPTER1CV.pptx is abouter computer vision in artificial intelligence
 
computervision1.pptx its about computer vision
computervision1.pptx its about computer visioncomputervision1.pptx its about computer vision
computervision1.pptx its about computer vision
 
Computer vision 3 4
Computer vision 3 4Computer vision 3 4
Computer vision 3 4
 
Lect5 v2
Lect5 v2Lect5 v2
Lect5 v2
 
Dip mcq1
Dip mcq1Dip mcq1
Dip mcq1
 
matdid950092.pdf
matdid950092.pdfmatdid950092.pdf
matdid950092.pdf
 
Image Acquisition and Representation
Image Acquisition and RepresentationImage Acquisition and Representation
Image Acquisition and Representation
 
PhotonCountingMethods
PhotonCountingMethodsPhotonCountingMethods
PhotonCountingMethods
 
It 603
It 603It 603
It 603
 
It 603
It 603It 603
It 603
 
Ch7 noise variation of different modulation scheme pg 63
Ch7 noise variation of different modulation scheme pg 63Ch7 noise variation of different modulation scheme pg 63
Ch7 noise variation of different modulation scheme pg 63
 
Module 1.pptx
Module 1.pptxModule 1.pptx
Module 1.pptx
 
M6.pdf
M6.pdfM6.pdf
M6.pdf
 

Recently uploaded

Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxkalpana413121
 
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...jabtakhaidam7
 
Ground Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementGround Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementDr. Deepak Mudgal
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdfKamal Acharya
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxpritamlangde
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Ramkumar k
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityMorshed Ahmed Rahath
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...ppkakm
 
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptxrouholahahmadi9876
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesRashidFaridChishti
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiessarkmank1
 

Recently uploaded (20)

Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
UNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptxUNIT 4 PTRP final Convergence in probability.pptx
UNIT 4 PTRP final Convergence in probability.pptx
 
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
Jaipur ❤CALL GIRL 0000000000❤CALL GIRLS IN Jaipur ESCORT SERVICE❤CALL GIRL IN...
 
Ground Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth ReinforcementGround Improvement Technique: Earth Reinforcement
Ground Improvement Technique: Earth Reinforcement
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Digital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptxDigital Communication Essentials: DPCM, DM, and ADM .pptx
Digital Communication Essentials: DPCM, DM, and ADM .pptx
 
Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)Theory of Time 2024 (Universal Theory for Everything)
Theory of Time 2024 (Universal Theory for Everything)
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...Basic Electronics for diploma students as per technical education Kerala Syll...
Basic Electronics for diploma students as per technical education Kerala Syll...
 
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
Call Girls in South Ex (delhi) call me [🔝9953056974🔝] escort service 24X7
 
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
457503602-5-Gas-Well-Testing-and-Analysis-pptx.pptx
 
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using PipesLinux Systems Programming: Inter Process Communication (IPC) using Pipes
Linux Systems Programming: Inter Process Communication (IPC) using Pipes
 
PE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and propertiesPE 459 LECTURE 2- natural gas basic concepts and properties
PE 459 LECTURE 2- natural gas basic concepts and properties
 

Image sampling and quantization

  • 1. Image Sampling and Quantization Mithun kumar kar Department of Electrical Engineering BALASORE COLLEGE OF ENGINEERING AND TECHNOLOGY, BALASORE July 22, 2020 Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 1 / 17
  • 2. Image An Image may be defined as a two dimensional function f (x, y) where x and y are spatial coordinates and the amplitude of ’f ’ at any pair of coordinates (x,y) is called the intensity value or gray level of the image at that point. An image is called a digital image when the spatial coordinates x, y and the intensity value of ’f’ all are finite and discrete quantities. A digital image is an array of real or complex numbers represented by a finite number of bits. Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 2 / 17
  • 3. Representation of digital image A digital image is formed by sampling and quantization containing M rows and N columns. f (x, y) =      f (0, 0) f (0, 1) . . . f (0, N − 1) f (1, 0) ... f (1, 1) · · · ... f (1, N − 1) ... f (M − 1, 0) f (M − 1, 0) · · · f (M − 1, N − 1)      Each element of this matrix is called an image element or picture element or pixels. The origin of a digital image is at the top left with the + x axis extending downward and the + y axis extending to the right. Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 3 / 17
  • 4. sampling Sampling is the operation that transforms a continuous-time signal into a discrete-time signal, that is discrete values. Sampling the continuous-time signal x(t) with interval T we get the discrete-time signal x(n) = x(nT) , which is a function of the discrete variable n. We can reconstruct the signal from the discrete samples by means of interpolation. Sampling a continuous-time signal with sampling rate ωs produces a discrete-time signal whose frequency spectrum is the periodic replication of the original signal, and the replication period is ωs. Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 4 / 17
  • 5. sampling Basics δ(t) = ∞, ift = 0 0, ift = 0 and ∞ −∞ δ(t)dt = 1 ∞ −∞ f (t)δ(t)dt = f (0)and ∞ −∞ f (t)δ(t − t0)dt = f (t0) δ(t, z) = ∞, ift = z = 0 0, ift = z = 0 and ∞ −∞ ∞ −∞ δ(t, z)dtdz = 1 ∞ −∞ ∞ −∞ f (t, z)δ(t − t0, z − z0)dtdz = f (t0, z0) Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 5 / 17
  • 6. sampling The Fourier transform of a continuous signal x(t) is given by X(Ω) = ∞ −∞ x(t)e−jΩt dt where Ω is the analog frequency in radian and Ω = 2πFs = 2π T where T is the sampling period. By inverse Fourier transform we can extract the signal from frequency domain. x(t) = 1 2π ∞ −∞ X(Ω)ejΩt dΩ Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 6 / 17
  • 7. 1D sampling Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 7 / 17
  • 8. Image sampling Image is represented by 2D function f(x,y). For sampling the analog image is multiply by two dimensional direc delta function or comb function. The comb function is a rectangular grid of points on both x and y axis or shifted impulses on both x and y direction by a distance ∆x and ∆x. comb(x, y, ∆x, ∆y) = ∞ k1=−∞ ∞ k2=−∞ δ(x − k1∆x, y − k2∆y) After multiplying the analog image f(x,y) with comb function we get the discrete image f(m,n) where f (m, n) = ∞ k1=−∞ ∞ k2=−∞ f (k1∆x, k2∆y)δ(x − k1∆x, y − k2∆y) Mathematically we write f (m, n) = f (k1∆x, k2∆y) where ∆x and ∆y are known as sampling intervals. Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 8 / 17
  • 9. Image sampling Figure : Three dimensional view of comb function. Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 9 / 17
  • 10. Image sampling in frequency domain The Fourier transform of the image signal f (x, y) is represented by F(Ω1, Ω2) = ∞ −∞ ∞ −∞ f (x, y)e−jΩ1x e−jΩ2y dxdy The FT of 2D comb function is an another comb function in frequency domain which is given by comb(Ω1, Ω2) = 1 ∆x 1 ∆y ∞ p=−∞ ∞ q=−∞ δ(Ω1 − p ∆x , Ω2 − q ∆y ) As in time domain the image function is multiply by comb function which is equivalent to convolution of Fourier transforms in frequency domain. Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 10 / 17
  • 11. Image sampling in frequency domain Now the spectrum of the 2D comb function is convolved with the spectrum of analog image which is given by F(ω1, ω2) = F(Ω1, Ω2) ∗ comb(Ω1, Ω2) F(ω1, ω2) = F(Ω1, Ω2) ∗ 1 ∆x 1 ∆y ∞ p=−∞ ∞ q=−∞ δ(Ω1 − p ∆x , Ω2 − q ∆y ) F(ω1, ω2) = 1 ∆x 1 ∆y ∞ p=−∞ ∞ q=−∞ F(Ω1 − p ∆x , Ω2 − q ∆y ) Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 11 / 17
  • 12. Image sampling in frequency domain In order to retrieve the original image from the sampled spectrum, the following condition should be satisfied ωxs > 2ωx0 and ωys > 2ωy0 where ωxs = 1 ∆x and ωys = 1 ∆y . 2ωx0 is the bandwidth of the spectrum in ω1 direction and 2ωy0 is the bandwidth of the spectrum in ω2 direction The above condition says that the sampling frequency should be greater than twice the maximum signal frequency, which is generally termed as sampling theorem. A low pass filter is generally employed in order to extract the desired spectrum. Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 12 / 17
  • 13. Quantization Digitizing the coordinate values is called sampling and digitizing the amplitude values is called quantization. After sampling, the values of the samples span a continuous range of intensity values. In order to discretized the intensity values, the intensity values must be converted in to discrete quantities. This is called quantization. A quantizer maps a continuous variable t in to discrete variable r. This mapping is generally a staircase function and the quantizer follows quantization rules. Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 13 / 17
  • 14. Image sampling Figure : A simple quanizer. Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 14 / 17
  • 15. Image sampling Quantization rule –: Define (t1, k = 1, ..., L + 1) as a set of increasing transitions or decision levels with t1 and tL+1 as minimum and maximum values respectively. If t lies in the interval [tk,tk+1) then it is mapped to rk, the kth reconstruction level. The different types of quantizers are Uniform quantizer Optimum mean square quantizer Non-uniform quantizer Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 15 / 17
  • 16. References Rafael C. Gonzalez, Richard E. Woods (2008) Digital Image Processing Pearson Education 2009,Third Edition. Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 16 / 17
  • 17. The End Mithun kumar kar (BCET) Image Sampling and Quantization July 22, 2020 17 / 17