Upload
jjitendra84
View
238
Download
3
Embed Size (px)
Citation preview
7/30/2019 02-Sampling & Quantization
1/17
Digital Image Processing
(Theory, Practice, and Applications)
7/30/2019 02-Sampling & Quantization
2/17
A simple image model
Image: a two-dimensional light-intensity function
;f(x,y) = i(x,y) r(x,y)Why? (the 1st, the 2nd)
where, illumination 0 < i(x,y)< ,
reflectance components 0 < r(x,y) < 1- illumination: the amount of source light incident on the
scene being viewed
- reflectance: the amount of light reflected by the objects
in the scene The interval [Lmin,Lmax]
: called the gray scale [0,L]
7/30/2019 02-Sampling & Quantization
3/17
Examples showing that perceived brightness is not
a simple function of intensity.
7/30/2019 02-Sampling & Quantization
4/17
Example of simultaneous contrast: all the small squares have exactly the same intensity, but they appear
progressively darker as the background becomes lighter.
7/30/2019 02-Sampling & Quantization
5/17
A/D:PCM (Pulse Code Modulation)
()
Max
Min
Max
Min
1/2
1/2
1/4
1/4 1/81/8
(0)
(0) (0)
(1) (1)
(1)
1 0 1
3bit
7/30/2019 02-Sampling & Quantization
6/17
Sampling & Quantization (1)
f(x,y): digitized both spatially and in amplitude
Digitization of the spatial coordinates (x, y)
: called image sampling Amplitude digitization
: calledgray-levelquantization
Resolution:the degree of discernible detailof an
image depends strongly on the number of
samples and gray-levels
7/30/2019 02-Sampling & Quantization
7/17
Scanning & Sampling
Sampling
Case of progressive scan
Progressive scan
Case of interlaced scan
Interlaced scan
Scanning
7/30/2019 02-Sampling & Quantization
8/17
Uniformvs.Non-uniform
(Uniform Quantizer): (ti ti+1)
(Non-uniform Quantizer):
t: , l:
0
ti+1ti
li+1
7/30/2019 02-Sampling & Quantization
9/17
Sampling & Quantization (2)
The more parameters (the number ofsamples and graylevels) are increased, the closer the digitized arrayapproximates the original image.
The digitization process requires decisions about valuesforN,M, and the number of discrete gray levels allowedfor each pixel.
N= 2n, M= 2
kand G = 2
m
b =NMmwhere, G: the number of gray levels
b: the number of bits required to store a digitized
image
7/30/2019 02-Sampling & Quantization
10/17
Effects according to spatial resolution &
number of bits
Effects of reducing spatial resolution
; pixel replication
produced a checkerboard effect
Fig. 2.9
Effects produced by decreasing the number of bits
used to represent the number of gray levels in an
image. A 10241024 image displayed in 256, 128, 64, 32,
16, 8, 4, and 2 levels, respectively.
Fig. 2.10
7/30/2019 02-Sampling & Quantization
11/17
Effect of reducing spatial resolution: (a) 10241024, 256-level digital image of a rose
(b)~(f) results of reducing the spatial resolution fromN=1024 toN=512,
256, 128, 64, and 32, respectively.
7/30/2019 02-Sampling & Quantization
12/17
Effect of decreasing the number of bits: (a) 10241024, 256-level digital image of a rose
(b)~(f) results of reducing the number of bits from m=7 to m=1,
respectively.
7/30/2019 02-Sampling & Quantization
13/17
Sampling & Quantization (3)
Isopreference curve correspond to images
of equal subjective quality
- the quality of the images tends to increase asNandm are increased.
- a decrease in m generally increases the apparent
contrast of an image.
for images with a larger amount of detail only afew gray levels are needed.
7/30/2019 02-Sampling & Quantization
14/17
Isopreference curves
7/30/2019 02-Sampling & Quantization
15/17
Sampling & Quantization (4)
Non-uniform sampling and quantization
: depends on the characteristics of the image
- Fine sampling is required in the neighborhood ofsharp gray-level transitions, whereas coarse samplingmay be utilized in relatively smooth regions.
- When the number of gray levels must be kept small,the use ofunequally spaced levels in the quantizationprocess usually is desirable ( called taperedquantization in Ch. 6).
7/30/2019 02-Sampling & Quantization
16/17
Implementation
(ex) Click !
http://localhost/var/www/apps/conversion/tmp/scratch_10/Myproj.exehttp://localhost/var/www/apps/conversion/tmp/scratch_10/Myproj.exe7/30/2019 02-Sampling & Quantization
17/17
Discussion (Q&A)