SlideShare a Scribd company logo
Image Sampling and Quantization
Subject: Image Procesing & Computer Vision
Dr. Varun Kumar
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 1 / 16
Outlines
1 2D Sampling
2 Spectrum of an Image
3 Quantization
4 Optimum Mean Square or Lloyd-Max Quantizer
5 Design an Optimum Quantizer by Signal PDF
6 References
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 2 / 16
Previous Discussion
1D Sampling
x(n) = xs(t) = x(t)comb(t, ∆Ts) =
∞
n=−∞
x(t)δ(t − n∆Ts) (1)
By the properties of convolution:
x1(t)x2(t) ⇐⇒ X1(Ω) ⊗ X2(Ω)
x1(t) ⊗ x2(t) ⇐⇒ X1(Ω)X2(Ω)
Spectrum of sampled signal:
Xs(Ω) = X(Ω) ⊗ F(comb(t, ∆Ts)) (2)
Note: For successful recovery of original signal from the sampled signal,
when Ωs ≥ 2Ω0 (Nyquist criteria)
when Ωs < 2Ω0 (Aliasing)
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 3 / 16
2D Sampling
2D Sampling
In 1D sampling time domain signal is sampled in cycle/unit time.
In 1D sampling, signal X(Ω) is band-limited ⇒
X(Ω) = 0 ∀ |Ω| > Ω0
In 2D sampling image is sampled in cycle/unit length in x-y direction.
In 2D sampling, image signal G(Ωx , Ωy ) is band-limited ⇒
G(Ωx , Ωy ) = 0 ∀ |Ωx | > Ωx0 and |Ωy | > Ωy0
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 4 / 16
Spectrum of Bandlimited 1D and 2D Signal
2D Sampled Signal
gs(x, y) = g(x, y)comb(x, y; ∆x, ∆y)
=
∞
m=−∞
∞
n=−∞
g(x, y)δ(x − m∆x)δ(y − n∆y)
(3)
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 5 / 16
Building Block of 2D Digital Image
Spectrum of 2D Sampled Signal
Gs(Ωx , Ωy ) = G(Ωx , Ωy ) ⊗ COMB(Ωx , Ωy ) (4)
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 6 / 16
Continued–
where
COMB(Ωx , Ωy ) = F(comb(x, y; ∆x, ∆y))
=ΩxsΩys
∞
m=−∞
∞
n=−∞
δ(Ωx − mΩxs, Ωy − nΩys)
=ΩxsΩyscomb Ωx , Ωy ;
1
∆x
,
1
∆y
(5)
Here, Ωxs = 1
∆x = Sampling frequency along x-direction and
Ωys = 1
∆y = Sampling frequency along y-direction
Note: For proper reconstruction of image from the sampled data is only
possible, when
Ωxs > 2Ωx0 (6)
Ωys > 2Ωy0 (7)
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 7 / 16
Spectrum of 2D and Sampled 2D signal
Recovery of an Image from Sampled 2D Signal
Let a low pass filter is designed in such a way that
H(Ωx , Ωy ) =
1
ΩxsΩys
∀ − Ωx0 < Ωx < Ωx0 and − Ωy0 < Ωx < Ωy0
= 0, otherwise
(8)
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 8 / 16
Continued–
Hence, the original 2D signal can be recovered from the sampled 2D
signal, when it passes through the low pass filter. Mathematically,
G(Ωx , Ωy ) = Gs(Ωx , Ωy )H(Ωx , Ωy ) (9)
Image Reconstruction Result
1. Higher the value of sampling frequency Ωxs and Ωys greater be the
resolution of image.
2. Due to lower sampling frequency there is chance of poor resolution of
image or blur image may be observed.
3. Image quality is also measured by dots per inch (dpi). Higher the dpi
greater be the sampling frequency.
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 9 / 16
Image Quantization
Quantization is a mapping of continuous variable into C to discrete
variable D.
D ∈ {d1, d2, ......, dL}
Mapping is a stair case function.
Quantization rule:
Let we define a set of transition L + 1 transition level, such that
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 10 / 16
Continued–
C ∈ {t1, t2, ......tL+1} (10)
t1 → Minimum level
tL+1 → Maximum level.
D = dk if tk < C < tk+1
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 11 / 16
Quantization Error:
Lloyd-Max Quantizer:
1 This quantizer minimize the mean square error for a given number of
quantization level.
2 Let C be a real scaler random variable with continuous probability
density pC (c).
3 It is desired to find the decision or transition level tk and the
reconstruction level dk for a L-level quantizer.
Mean Square Error
ζ = E((C − D)2
) =
tL+1
t1
(C − D)2
pC (c)dC
=
tL+1
t1
(C − dk)2
pC (c)dC
(11)
Note: Our aim is to minimize this error.
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 12 / 16
Quantizer Design:
Differentiating (11) wrt tk and dk and equating to 0.
∂ζ
∂tk
= (tk − dk−1)2
pC (tk) − (tk − dk)2
pC (tk) = 0 (12)
∂ζ
∂dk
= 2
tL+1
t1
(C − dk)pC (c)dC = 0 ∀ 1 < k < L (13)
Since, tk < tk−1
tk =
dk + dk−1
2
(14)
rk =
tk+1
tk
CpC (c)dC
tk+1
tk
pC (c)dC
(15)
Note: When the number of quantization level is large, an approximate
solution can be obtained by modeling the pC (c) as piece wise constant.
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 13 / 16
Continued–
Using approximate solution for decision level is obtained as
tk+1 = A
A
zk +t1
t1
pC (c)
−1
3 dC
tL+1
t1
pC (c)
−1
3 dC
(16)
where A = tL+1 − t1 and zk = k
L A ∀ k = 1, 2, ....L
t1 and tL+1 both are finite that determines the dynamic range of
quantizer A.
Quantizer mean square distortion is obtained as
ζ =
1
12L2
tL+1
t1
pC (c)
−1
3 dC
3
(17)
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 14 / 16
Continued–
Commonly used densities for quantization of image related data are
1 Gaussian
pC (c) =
1
√
2πσ2
exp −
(c − c0)2
2σ2
(18)
2 Laplacian
pC (c) =
1
σ2
exp −
(c − c0)
σ2
(19)
where c0 and σ2 shows the mean and variance.
3 Uniform
pC (c) =
1
tL+1 − t1
∀ t1 < c < tL+1
= 0 otherwise
(20)
Here, uniform quantizer is not very popular.
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 15 / 16
References
M. Sonka, V. Hlavac, and R. Boyle, Image processing, analysis, and machine vision.
Cengage Learning, 2014.
D. A. Forsyth and J. Ponce, “A modern approach,” Computer vision: a modern
approach, vol. 17, pp. 21–48, 2003.
L. Shapiro and G. Stockman, “Computer vision prentice hall,” Inc., New Jersey,
2001.
R. C. Gonzalez, R. E. Woods, and S. L. Eddins, Digital image processing using
MATLAB. Pearson Education India, 2004.
Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 16 / 16

More Related Content

What's hot

Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domainAshish Kumar
 
Image compression .
Image compression .Image compression .
Image compression .
Payal Vishwakarma
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
ABIRAMI M
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
A B Shinde
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
asodariyabhavesh
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancy
Naveen Kumar
 
Watershed
WatershedWatershed
Watershed
Amnaakhaan
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And Reconstruction
Amnaakhaan
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
Revanth Chimmani
 
Module 31
Module 31Module 31
Module 31
UllasSS1
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domainAshish Kumar
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
Kalyan Acharjya
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
A B Shinde
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
lavanya marichamy
 
Computer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and GradientComputer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and Gradient
Ahmed Gad
 
Fundamental steps in Digital Image Processing
Fundamental steps in Digital Image ProcessingFundamental steps in Digital Image Processing
Fundamental steps in Digital Image Processing
Shubham Jain
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
Mostafa G. M. Mostafa
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
Suhaila Afzana
 
Simultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesSimultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color Images
Cristina Pérez Benito
 

What's hot (20)

Enhancement in frequency domain
Enhancement in frequency domainEnhancement in frequency domain
Enhancement in frequency domain
 
Image compression .
Image compression .Image compression .
Image compression .
 
Digital image processing
Digital image processingDigital image processing
Digital image processing
 
Edge Detection and Segmentation
Edge Detection and SegmentationEdge Detection and Segmentation
Edge Detection and Segmentation
 
Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)Chapter 3 image enhancement (spatial domain)
Chapter 3 image enhancement (spatial domain)
 
Interpixel redundancy
Interpixel redundancyInterpixel redundancy
Interpixel redundancy
 
Watershed
WatershedWatershed
Watershed
 
Image Restoration And Reconstruction
Image Restoration And ReconstructionImage Restoration And Reconstruction
Image Restoration And Reconstruction
 
Color image processing Presentation
Color image processing PresentationColor image processing Presentation
Color image processing Presentation
 
Module 31
Module 31Module 31
Module 31
 
Mathematical tools in dip
Mathematical tools in dipMathematical tools in dip
Mathematical tools in dip
 
Enhancement in spatial domain
Enhancement in spatial domainEnhancement in spatial domain
Enhancement in spatial domain
 
Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)Image Restoration (Order Statistics Filters)
Image Restoration (Order Statistics Filters)
 
Image Enhancement in Spatial Domain
Image Enhancement in Spatial DomainImage Enhancement in Spatial Domain
Image Enhancement in Spatial Domain
 
Fundamentals and image compression models
Fundamentals and image compression modelsFundamentals and image compression models
Fundamentals and image compression models
 
Computer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and GradientComputer Vision: Correlation, Convolution, and Gradient
Computer Vision: Correlation, Convolution, and Gradient
 
Fundamental steps in Digital Image Processing
Fundamental steps in Digital Image ProcessingFundamental steps in Digital Image Processing
Fundamental steps in Digital Image Processing
 
Digital Image Processing: Image Segmentation
Digital Image Processing: Image SegmentationDigital Image Processing: Image Segmentation
Digital Image Processing: Image Segmentation
 
Image Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain FiltersImage Smoothing using Frequency Domain Filters
Image Smoothing using Frequency Domain Filters
 
Simultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color ImagesSimultaneous Smoothing and Sharpening of Color Images
Simultaneous Smoothing and Sharpening of Color Images
 

Similar to Lecture 3 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
VARUN KUMAR
 
On Optimization of Network-coded Scalable Multimedia Service Multicasting
On Optimization of Network-coded Scalable Multimedia Service MulticastingOn Optimization of Network-coded Scalable Multimedia Service Multicasting
On Optimization of Network-coded Scalable Multimedia Service Multicasting
Andrea Tassi
 
Lecture 12 (Image transformation)
Lecture 12 (Image transformation)Lecture 12 (Image transformation)
Lecture 12 (Image transformation)
VARUN KUMAR
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
BCET, Balasore
 
Tucker tensor analysis of Matern functions in spatial statistics
Tucker tensor analysis of Matern functions in spatial statistics Tucker tensor analysis of Matern functions in spatial statistics
Tucker tensor analysis of Matern functions in spatial statistics
Alexander Litvinenko
 
Adaptive Restore algorithm & importance Monte Carlo
Adaptive Restore algorithm & importance Monte CarloAdaptive Restore algorithm & importance Monte Carlo
Adaptive Restore algorithm & importance Monte Carlo
Christian Robert
 
Histogram Operation in Image Processing
Histogram Operation in Image ProcessingHistogram Operation in Image Processing
Histogram Operation in Image Processing
VARUN KUMAR
 
Lab lecture 2 bresenham
Lab lecture 2 bresenhamLab lecture 2 bresenham
Lab lecture 2 bresenham
simpleok
 
Efficient Analysis of high-dimensional data in tensor formats
Efficient Analysis of high-dimensional data in tensor formatsEfficient Analysis of high-dimensional data in tensor formats
Efficient Analysis of high-dimensional data in tensor formats
Alexander Litvinenko
 
module 1.pdf
module 1.pdfmodule 1.pdf
module 1.pdf
KimTaehyung188352
 
Litvinenko low-rank kriging +FFT poster
Litvinenko low-rank kriging +FFT  posterLitvinenko low-rank kriging +FFT  poster
Litvinenko low-rank kriging +FFT poster
Alexander Litvinenko
 
SIAM - Minisymposium on Guaranteed numerical algorithms
SIAM - Minisymposium on Guaranteed numerical algorithmsSIAM - Minisymposium on Guaranteed numerical algorithms
SIAM - Minisymposium on Guaranteed numerical algorithms
Jagadeeswaran Rathinavel
 
Effect of Block Sizes on the Attributes of Watermarking Digital Images
Effect of Block Sizes on the Attributes of Watermarking Digital ImagesEffect of Block Sizes on the Attributes of Watermarking Digital Images
Effect of Block Sizes on the Attributes of Watermarking Digital Images
Dr. Michael Agbaje
 
Subquad multi ff
Subquad multi ffSubquad multi ff
Subquad multi ff
Fabian Velazquez
 
Joint blind calibration and time-delay estimation for multiband ranging
Joint blind calibration and time-delay estimation for multiband rangingJoint blind calibration and time-delay estimation for multiband ranging
Joint blind calibration and time-delay estimation for multiband ranging
Tarik Kazaz
 
lecture 1.pptx
lecture 1.pptxlecture 1.pptx
lecture 1.pptx
MDRAKIB180107
 
Popular image restoration technique
Popular image restoration techniquePopular image restoration technique
Popular image restoration technique
VARUN KUMAR
 
New data structures and algorithms for \\post-processing large data sets and ...
New data structures and algorithms for \\post-processing large data sets and ...New data structures and algorithms for \\post-processing large data sets and ...
New data structures and algorithms for \\post-processing large data sets and ...
Alexander Litvinenko
 
ENBIS 2018 presentation on Deep k-Means
ENBIS 2018 presentation on Deep k-MeansENBIS 2018 presentation on Deep k-Means
ENBIS 2018 presentation on Deep k-Means
tthonet
 

Similar to Lecture 3 image sampling and quantization (20)

Lecture 2 Introduction to digital image
Lecture 2 Introduction to digital imageLecture 2 Introduction to digital image
Lecture 2 Introduction to digital image
 
On Optimization of Network-coded Scalable Multimedia Service Multicasting
On Optimization of Network-coded Scalable Multimedia Service MulticastingOn Optimization of Network-coded Scalable Multimedia Service Multicasting
On Optimization of Network-coded Scalable Multimedia Service Multicasting
 
Lecture 12 (Image transformation)
Lecture 12 (Image transformation)Lecture 12 (Image transformation)
Lecture 12 (Image transformation)
 
Image sampling and quantization
Image sampling and quantizationImage sampling and quantization
Image sampling and quantization
 
Tucker tensor analysis of Matern functions in spatial statistics
Tucker tensor analysis of Matern functions in spatial statistics Tucker tensor analysis of Matern functions in spatial statistics
Tucker tensor analysis of Matern functions in spatial statistics
 
Adaptive Restore algorithm & importance Monte Carlo
Adaptive Restore algorithm & importance Monte CarloAdaptive Restore algorithm & importance Monte Carlo
Adaptive Restore algorithm & importance Monte Carlo
 
Histogram Operation in Image Processing
Histogram Operation in Image ProcessingHistogram Operation in Image Processing
Histogram Operation in Image Processing
 
Lab lecture 2 bresenham
Lab lecture 2 bresenhamLab lecture 2 bresenham
Lab lecture 2 bresenham
 
Efficient Analysis of high-dimensional data in tensor formats
Efficient Analysis of high-dimensional data in tensor formatsEfficient Analysis of high-dimensional data in tensor formats
Efficient Analysis of high-dimensional data in tensor formats
 
module 1.pdf
module 1.pdfmodule 1.pdf
module 1.pdf
 
Litvinenko low-rank kriging +FFT poster
Litvinenko low-rank kriging +FFT  posterLitvinenko low-rank kriging +FFT  poster
Litvinenko low-rank kriging +FFT poster
 
SIAM - Minisymposium on Guaranteed numerical algorithms
SIAM - Minisymposium on Guaranteed numerical algorithmsSIAM - Minisymposium on Guaranteed numerical algorithms
SIAM - Minisymposium on Guaranteed numerical algorithms
 
Effect of Block Sizes on the Attributes of Watermarking Digital Images
Effect of Block Sizes on the Attributes of Watermarking Digital ImagesEffect of Block Sizes on the Attributes of Watermarking Digital Images
Effect of Block Sizes on the Attributes of Watermarking Digital Images
 
Subquad multi ff
Subquad multi ffSubquad multi ff
Subquad multi ff
 
Cgm Lab Manual
Cgm Lab ManualCgm Lab Manual
Cgm Lab Manual
 
Joint blind calibration and time-delay estimation for multiband ranging
Joint blind calibration and time-delay estimation for multiband rangingJoint blind calibration and time-delay estimation for multiband ranging
Joint blind calibration and time-delay estimation for multiband ranging
 
lecture 1.pptx
lecture 1.pptxlecture 1.pptx
lecture 1.pptx
 
Popular image restoration technique
Popular image restoration techniquePopular image restoration technique
Popular image restoration technique
 
New data structures and algorithms for \\post-processing large data sets and ...
New data structures and algorithms for \\post-processing large data sets and ...New data structures and algorithms for \\post-processing large data sets and ...
New data structures and algorithms for \\post-processing large data sets and ...
 
ENBIS 2018 presentation on Deep k-Means
ENBIS 2018 presentation on Deep k-MeansENBIS 2018 presentation on Deep k-Means
ENBIS 2018 presentation on Deep k-Means
 

More from VARUN KUMAR

Distributed rc Model
Distributed rc ModelDistributed rc Model
Distributed rc Model
VARUN KUMAR
 
Electrical Wire Model
Electrical Wire ModelElectrical Wire Model
Electrical Wire Model
VARUN KUMAR
 
Interconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignInterconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI Design
VARUN KUMAR
 
Introduction to Digital VLSI Design
Introduction to Digital VLSI DesignIntroduction to Digital VLSI Design
Introduction to Digital VLSI Design
VARUN KUMAR
 
Challenges of Massive MIMO System
Challenges of Massive MIMO SystemChallenges of Massive MIMO System
Challenges of Massive MIMO System
VARUN KUMAR
 
E-democracy or Digital Democracy
E-democracy or Digital DemocracyE-democracy or Digital Democracy
E-democracy or Digital Democracy
VARUN KUMAR
 
Ethics of Parasitic Computing
Ethics of Parasitic ComputingEthics of Parasitic Computing
Ethics of Parasitic Computing
VARUN KUMAR
 
Action Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionAction Lines of Geneva Plan of Action
Action Lines of Geneva Plan of Action
VARUN KUMAR
 
Geneva Plan of Action
Geneva Plan of ActionGeneva Plan of Action
Geneva Plan of Action
VARUN KUMAR
 
Fair Use in the Electronic Age
Fair Use in the Electronic AgeFair Use in the Electronic Age
Fair Use in the Electronic Age
VARUN KUMAR
 
Software as a Property
Software as a PropertySoftware as a Property
Software as a Property
VARUN KUMAR
 
Orthogonal Polynomial
Orthogonal PolynomialOrthogonal Polynomial
Orthogonal Polynomial
VARUN KUMAR
 
Patent Protection
Patent ProtectionPatent Protection
Patent Protection
VARUN KUMAR
 
Copyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawCopyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy Law
VARUN KUMAR
 
Property Right and Software
Property Right and SoftwareProperty Right and Software
Property Right and Software
VARUN KUMAR
 
Investigating Data Trials
Investigating Data TrialsInvestigating Data Trials
Investigating Data Trials
VARUN KUMAR
 
Gaussian Numerical Integration
Gaussian Numerical IntegrationGaussian Numerical Integration
Gaussian Numerical Integration
VARUN KUMAR
 
Censorship and Controversy
Censorship and ControversyCensorship and Controversy
Censorship and Controversy
VARUN KUMAR
 
Romberg's Integration
Romberg's IntegrationRomberg's Integration
Romberg's Integration
VARUN KUMAR
 
Introduction to Censorship
Introduction to Censorship Introduction to Censorship
Introduction to Censorship
VARUN KUMAR
 

More from VARUN KUMAR (20)

Distributed rc Model
Distributed rc ModelDistributed rc Model
Distributed rc Model
 
Electrical Wire Model
Electrical Wire ModelElectrical Wire Model
Electrical Wire Model
 
Interconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI DesignInterconnect Parameter in Digital VLSI Design
Interconnect Parameter in Digital VLSI Design
 
Introduction to Digital VLSI Design
Introduction to Digital VLSI DesignIntroduction to Digital VLSI Design
Introduction to Digital VLSI Design
 
Challenges of Massive MIMO System
Challenges of Massive MIMO SystemChallenges of Massive MIMO System
Challenges of Massive MIMO System
 
E-democracy or Digital Democracy
E-democracy or Digital DemocracyE-democracy or Digital Democracy
E-democracy or Digital Democracy
 
Ethics of Parasitic Computing
Ethics of Parasitic ComputingEthics of Parasitic Computing
Ethics of Parasitic Computing
 
Action Lines of Geneva Plan of Action
Action Lines of Geneva Plan of ActionAction Lines of Geneva Plan of Action
Action Lines of Geneva Plan of Action
 
Geneva Plan of Action
Geneva Plan of ActionGeneva Plan of Action
Geneva Plan of Action
 
Fair Use in the Electronic Age
Fair Use in the Electronic AgeFair Use in the Electronic Age
Fair Use in the Electronic Age
 
Software as a Property
Software as a PropertySoftware as a Property
Software as a Property
 
Orthogonal Polynomial
Orthogonal PolynomialOrthogonal Polynomial
Orthogonal Polynomial
 
Patent Protection
Patent ProtectionPatent Protection
Patent Protection
 
Copyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy LawCopyright Vs Patent and Trade Secrecy Law
Copyright Vs Patent and Trade Secrecy Law
 
Property Right and Software
Property Right and SoftwareProperty Right and Software
Property Right and Software
 
Investigating Data Trials
Investigating Data TrialsInvestigating Data Trials
Investigating Data Trials
 
Gaussian Numerical Integration
Gaussian Numerical IntegrationGaussian Numerical Integration
Gaussian Numerical Integration
 
Censorship and Controversy
Censorship and ControversyCensorship and Controversy
Censorship and Controversy
 
Romberg's Integration
Romberg's IntegrationRomberg's Integration
Romberg's Integration
 
Introduction to Censorship
Introduction to Censorship Introduction to Censorship
Introduction to Censorship
 

Recently uploaded

HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
abh.arya
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
Kamal Acharya
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
Kamal Acharya
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
bakpo1
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
Kamal Acharya
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
Pipe Restoration Solutions
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
Intella Parts
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
ssuser9bd3ba
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
ankuprajapati0525
 

Recently uploaded (20)

HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Democratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek AryaDemocratizing Fuzzing at Scale by Abhishek Arya
Democratizing Fuzzing at Scale by Abhishek Arya
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdfCOLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
COLLEGE BUS MANAGEMENT SYSTEM PROJECT REPORT.pdf
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
一比一原版(SFU毕业证)西蒙菲莎大学毕业证成绩单如何办理
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 
Final project report on grocery store management system..pdf
Final project report on grocery store management system..pdfFinal project report on grocery store management system..pdf
Final project report on grocery store management system..pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
Forklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella PartsForklift Classes Overview by Intella Parts
Forklift Classes Overview by Intella Parts
 
LIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.pptLIGA(E)11111111111111111111111111111111111111111.ppt
LIGA(E)11111111111111111111111111111111111111111.ppt
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
The role of big data in decision making.
The role of big data in decision making.The role of big data in decision making.
The role of big data in decision making.
 

Lecture 3 image sampling and quantization

  • 1. Image Sampling and Quantization Subject: Image Procesing & Computer Vision Dr. Varun Kumar Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 1 / 16
  • 2. Outlines 1 2D Sampling 2 Spectrum of an Image 3 Quantization 4 Optimum Mean Square or Lloyd-Max Quantizer 5 Design an Optimum Quantizer by Signal PDF 6 References Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 2 / 16
  • 3. Previous Discussion 1D Sampling x(n) = xs(t) = x(t)comb(t, ∆Ts) = ∞ n=−∞ x(t)δ(t − n∆Ts) (1) By the properties of convolution: x1(t)x2(t) ⇐⇒ X1(Ω) ⊗ X2(Ω) x1(t) ⊗ x2(t) ⇐⇒ X1(Ω)X2(Ω) Spectrum of sampled signal: Xs(Ω) = X(Ω) ⊗ F(comb(t, ∆Ts)) (2) Note: For successful recovery of original signal from the sampled signal, when Ωs ≥ 2Ω0 (Nyquist criteria) when Ωs < 2Ω0 (Aliasing) Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 3 / 16
  • 4. 2D Sampling 2D Sampling In 1D sampling time domain signal is sampled in cycle/unit time. In 1D sampling, signal X(Ω) is band-limited ⇒ X(Ω) = 0 ∀ |Ω| > Ω0 In 2D sampling image is sampled in cycle/unit length in x-y direction. In 2D sampling, image signal G(Ωx , Ωy ) is band-limited ⇒ G(Ωx , Ωy ) = 0 ∀ |Ωx | > Ωx0 and |Ωy | > Ωy0 Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 4 / 16
  • 5. Spectrum of Bandlimited 1D and 2D Signal 2D Sampled Signal gs(x, y) = g(x, y)comb(x, y; ∆x, ∆y) = ∞ m=−∞ ∞ n=−∞ g(x, y)δ(x − m∆x)δ(y − n∆y) (3) Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 5 / 16
  • 6. Building Block of 2D Digital Image Spectrum of 2D Sampled Signal Gs(Ωx , Ωy ) = G(Ωx , Ωy ) ⊗ COMB(Ωx , Ωy ) (4) Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 6 / 16
  • 7. Continued– where COMB(Ωx , Ωy ) = F(comb(x, y; ∆x, ∆y)) =ΩxsΩys ∞ m=−∞ ∞ n=−∞ δ(Ωx − mΩxs, Ωy − nΩys) =ΩxsΩyscomb Ωx , Ωy ; 1 ∆x , 1 ∆y (5) Here, Ωxs = 1 ∆x = Sampling frequency along x-direction and Ωys = 1 ∆y = Sampling frequency along y-direction Note: For proper reconstruction of image from the sampled data is only possible, when Ωxs > 2Ωx0 (6) Ωys > 2Ωy0 (7) Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 7 / 16
  • 8. Spectrum of 2D and Sampled 2D signal Recovery of an Image from Sampled 2D Signal Let a low pass filter is designed in such a way that H(Ωx , Ωy ) = 1 ΩxsΩys ∀ − Ωx0 < Ωx < Ωx0 and − Ωy0 < Ωx < Ωy0 = 0, otherwise (8) Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 8 / 16
  • 9. Continued– Hence, the original 2D signal can be recovered from the sampled 2D signal, when it passes through the low pass filter. Mathematically, G(Ωx , Ωy ) = Gs(Ωx , Ωy )H(Ωx , Ωy ) (9) Image Reconstruction Result 1. Higher the value of sampling frequency Ωxs and Ωys greater be the resolution of image. 2. Due to lower sampling frequency there is chance of poor resolution of image or blur image may be observed. 3. Image quality is also measured by dots per inch (dpi). Higher the dpi greater be the sampling frequency. Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 9 / 16
  • 10. Image Quantization Quantization is a mapping of continuous variable into C to discrete variable D. D ∈ {d1, d2, ......, dL} Mapping is a stair case function. Quantization rule: Let we define a set of transition L + 1 transition level, such that Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 10 / 16
  • 11. Continued– C ∈ {t1, t2, ......tL+1} (10) t1 → Minimum level tL+1 → Maximum level. D = dk if tk < C < tk+1 Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 11 / 16
  • 12. Quantization Error: Lloyd-Max Quantizer: 1 This quantizer minimize the mean square error for a given number of quantization level. 2 Let C be a real scaler random variable with continuous probability density pC (c). 3 It is desired to find the decision or transition level tk and the reconstruction level dk for a L-level quantizer. Mean Square Error ζ = E((C − D)2 ) = tL+1 t1 (C − D)2 pC (c)dC = tL+1 t1 (C − dk)2 pC (c)dC (11) Note: Our aim is to minimize this error. Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 12 / 16
  • 13. Quantizer Design: Differentiating (11) wrt tk and dk and equating to 0. ∂ζ ∂tk = (tk − dk−1)2 pC (tk) − (tk − dk)2 pC (tk) = 0 (12) ∂ζ ∂dk = 2 tL+1 t1 (C − dk)pC (c)dC = 0 ∀ 1 < k < L (13) Since, tk < tk−1 tk = dk + dk−1 2 (14) rk = tk+1 tk CpC (c)dC tk+1 tk pC (c)dC (15) Note: When the number of quantization level is large, an approximate solution can be obtained by modeling the pC (c) as piece wise constant. Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 13 / 16
  • 14. Continued– Using approximate solution for decision level is obtained as tk+1 = A A zk +t1 t1 pC (c) −1 3 dC tL+1 t1 pC (c) −1 3 dC (16) where A = tL+1 − t1 and zk = k L A ∀ k = 1, 2, ....L t1 and tL+1 both are finite that determines the dynamic range of quantizer A. Quantizer mean square distortion is obtained as ζ = 1 12L2 tL+1 t1 pC (c) −1 3 dC 3 (17) Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 14 / 16
  • 15. Continued– Commonly used densities for quantization of image related data are 1 Gaussian pC (c) = 1 √ 2πσ2 exp − (c − c0)2 2σ2 (18) 2 Laplacian pC (c) = 1 σ2 exp − (c − c0) σ2 (19) where c0 and σ2 shows the mean and variance. 3 Uniform pC (c) = 1 tL+1 − t1 ∀ t1 < c < tL+1 = 0 otherwise (20) Here, uniform quantizer is not very popular. Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 15 / 16
  • 16. References M. Sonka, V. Hlavac, and R. Boyle, Image processing, analysis, and machine vision. Cengage Learning, 2014. D. A. Forsyth and J. Ponce, “A modern approach,” Computer vision: a modern approach, vol. 17, pp. 21–48, 2003. L. Shapiro and G. Stockman, “Computer vision prentice hall,” Inc., New Jersey, 2001. R. C. Gonzalez, R. E. Woods, and S. L. Eddins, Digital image processing using MATLAB. Pearson Education India, 2004. Subject: Image Procesing & Computer Vision Dr. Varun Kumar (IIIT Surat)Lecture 3 16 / 16