Tải bản đầy đủ (.pdf) (17 trang)

Tài liệu tiếng anh môn xử lý ảnh

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (4.19 MB, 17 trang )

1
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Generic, possibly nonlinear, pointwise operator (intensity mapping,
gray-level transformation):
Chapter 3
Image Enhancement in the Spatial Domain:
Gray-level transforms
Chapter 3
Image Enhancement in the Spatial Domain:
Gray-level transforms
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Basic gray-level
transformations:
Negative:
Generic log:
Power law:
γ
rcs
rcs
rls
=
+=


=


)1ln(
1
Chapter 3
Image Enhancement in the Spatial Domain:
Gray-level transforms
Chapter 3
Image Enhancement in the Spatial Domain:
Gray-level transforms
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Negative
Chapter 3
Image Enhancement in the Spatial Domain:
Negative
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Nonlinear mapping
Chapter 3
Image Enhancement in the Spatial Domain:
Nonlinear mapping
2
Gianni Ramponi

University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Nonlinear mapping
Chapter 3
Image Enhancement in the Spatial Domain:
Nonlinear mapping
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Gamma correction
Chapter 3
Image Enhancement in the Spatial Domain:
Gamma correction
1) Monitor response can
"compensate" for Weber-law
sensitivity of HVS:
dp = k dL/L  p = k log(L)
higher sensit. in dark areas
 dark transitions can be
compressed with power law
L = x^gamma
2) Beware of nonlinearities
that are already included in
image data (e.g., JPEG)

Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Nonlinear mapping
Chapter 3
Image Enhancement in the Spatial Domain:
Nonlinear mapping
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Nonlinear mapping
Chapter 3
Image Enhancement in the Spatial Domain:
Nonlinear mapping
3
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Note: stretching is
formally useless if the
image has to be
thresholded)
Chapter 3

Image Enhancement in the Spatial Domain:
Piecewise-linear contrast stretching
Chapter 3
Image Enhancement in the Spatial Domain:
Piecewise-linear contrast stretching
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Gray-level slicing
Chapter 3
Image Enhancement in the Spatial Domain:
Gray-level slicing
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Bit-plane slicing
Chapter 3
Image Enhancement in the Spatial Domain:
Bit-plane slicing
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3

Image Enhancement in the Spatial Domain:
Bit-plane slicing
Chapter 3
Image Enhancement in the Spatial Domain:
Bit-plane slicing
4
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Bit-plane slicing
Chapter 3
Image Enhancement in the Spatial Domain:
Bit-plane slicing
4, 8, 16 gray levels respectively
Reconstruction: Sum_n [ bit-plane_n * 2^(n-1) ]
May be useful for data compression
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram properties
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram properties
Histogram: normalized frequency (y) of gray level values (x).

Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram processing via gray mapping
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram processing via gray mapping
(can be inverted and
preserves gray-level
ordering)
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram equalization
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram equalization
Let the gray levels in an image be represented as random variables r in
the range (0,1), with a probability density function (pdf):
Let be a monotonic, invertible transformation on r;
)(rp
r
)(rTs
=

All the pixels below the curve in
the interval are mapped to
pixels below in
i.e., the two areas are equal:
Let us take the particular transformation
which is monotonic and invertible, since
it is the cumulative distribution function
(cdf) of r
)(rp
r
),( drrr
+
)(sp
s
),( dsss
+
drrpdssp
rs
)()(
=

==
τ
0
)()( dwwprTs
r
5
Gianni Ramponi
University of Trieste
/>Digital Image Processing

Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram equalization
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram equalization
The derivative of this function is of course
Substituting in
i.e. the transformed variable has an exactly uniform pdf.
In a practical discrete case:
i.e., mapping each gray level into the value given above yields a
uniform pdf for the output image.
In general, only an approximately uniform distribution will be
obtained.
Note: no parameters are needed; the processing is automatic and
straightforward.
)(/ rpdrds
r
=
1)()()(
=

=
spdrrpdssp
srs
nnrprTs
k
j
j

k
j
jrkk
/)()(
00
∑∑
==
===
k
s
k
r
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram equalization
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram equalization
Example (continuous case):
Equalization is obtained via the
transformation:
The transformed variable has a uniform pdf. Indeed:
1022)(


+


=
rrrp
r

+−=+−==
r
rrdwwrTs
0
2
2)22()(
S. Das, IIT Madras, Course on Computer Vision
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram equalization
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram equalization
Example (discrete case):
S. Das, IIT Madras, Course on Computer Vision
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:

Histogram equalization
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram equalization
S. Das, IIT Madras, Course on Computer Vision
6
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram equalization
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram equalization
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram equalization
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram equalization
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods

Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
Remember that the mapping
yields a (approx.) uniformly distributed output. Another variable z,
with a different, known and desired pdf pz, will satisfy the same
equation:
substituting:
i.e., mapping each gray level rk into the zk value given above yields
the desired histogram (pdf) for the output image.
))(()(
11
kkk
rTGsGz
−−
==
k
k
j
jzk
szpzG ==

=0
)()(
nnrprTs
k
j

j
k
j
jrkk
/)()(
00
∑∑
==
===
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
sk: uniformly
distributed image
G: determined as cdf of
the desired pdf pz
zk: image with desired
histogram
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
7
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods

Example:
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
S. Das, IIT Madras, Course on Computer Vision
Then determine
T(r) and G(z)
(cdf’s of the
histograms) :
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
T(r)
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
G(z)
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:

Histogram specification
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
))(()( )(
1
kkkkk
rTGzzGrTr

=≅≅
S. Das, IIT Madras, Course on Computer Vision
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
S. Das, IIT Madras, Course on Computer Vision
distributions: original target obtained
n’
k
0
0
0
790
1023

850
656+329
245+122+81
p’(z
k)
0
0
0
0.19
0.25
0.21
0.24
0.11
8
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:

Histogram specification
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
Chapter 3
Image Enhancement in the Spatial Domain:
Histogram specification
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Local Histogram modification
Chapter 3
Image Enhancement in the Spatial Domain:
Local Histogram modification
At each location the local histogram is computed, the required mapping is
determined, and the pixel is mapped. (At the next step, it is convenient to
update the histogram rather than to re-calculate it from scratch)
9
Gianni Ramponi
University of Trieste

/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Enhancement based on local statistics
Chapter 3
Image Enhancement in the Spatial Domain:
Enhancement based on local statistics
Local values can be estimated for different image statistics, and
used to locally control a gray-level modification function.
E.g.: local mean and variance in the neighborhood Sxy:
Enhancement example: pixels in medium-variance, low-mean
areas are scaled by a positive factor:
Mg and Dg respectively are the global average and s.d. of the
image; they are used to make the operator more robust.
∑∑
∈∈
−==
Sxyts
SxySxy
Sxyts
Sxy
tsrpmtsrtsrptsrm
,
22
,
)],([]),([)],([),(
σ




<<<
=
otherwiseyxf
DgkDgkMgkmifyxfE
yxg
SxySxy
),(
&),(
),(
2
2
10
σ
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Enhancement based on local statistics
Chapter 3
Image Enhancement in the Spatial Domain:
Enhancement based on local statistics
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:

Enhancement based on local statistics
Chapter 3
Image Enhancement in the Spatial Domain:
Enhancement based on local statistics
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Enhancement based on local statistics
Chapter 3
Image Enhancement in the Spatial Domain:
Enhancement based on local statistics
10
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Image subtraction
Chapter 3
Image Enhancement in the Spatial Domain:
Image subtraction
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Assume an image is formed as:

where n(x,y) is i.i.d. zero-mean noise. If we can average K
acquisitions of the image, the variance of the noise is reduced by the
factor K:
This approach is useful when the sensor noise is relatively high:
poorly illuminated (static) scenes, astronomical images, …
∑∑
==
+==
K
k
k
K
k
k
yxn
K
yxfyxg
K
yxg
11
),(
1
),(),(
1
),(
),(),(),( yxnyxfyxg
+
=
Chapter 3
Image Enhancement in the Spatial Domain:

Image averaging
Chapter 3
Image Enhancement in the Spatial Domain:
Image averaging
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Image averaging
Chapter 3
Image Enhancement in the Spatial Domain:
Image averaging
Fig.3.30
A) Ideal
B) Noise added
(s.d.=64)
C) K=8
D) K=16
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Local operators
Chapter 3
Image Enhancement in the Spatial Domain:
Local operators

Generic, possibly nonlinear,
neighborhood-based
operator:
g(x,y)=T[f(x,y)]
11
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
∑∑
∑∑
−=−=
−=−=
−−
=
b
bt
a
as
b
bt
a
as
tsw
tysxftsw
yxg
),(
),(),(
),(
The coefficients mask can be

used in different ways, the
simplest of which is linear
filtering via the normalized
convolution sum:
Note: if the output image is
required to be the same size as
the input image, the latter must
be suitably padded.
Chapter 3
Image Enhancement in the Spatial Domain:
Local operators
Chapter 3
Image Enhancement in the Spatial Domain:
Local operators
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Local operators
Chapter 3
Image Enhancement in the Spatial Domain:
Local operators
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:

Local operators
Chapter 3
Image Enhancement in the Spatial Domain:
Local operators
[dipum]
Matlab
implementation
using ‘imfilter’
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Local operators
Chapter 3
Image Enhancement in the Spatial Domain:
Local operators
[dipum]
Matlab:
correlation or
convolution
12
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Local operators

Chapter 3
Image Enhancement in the Spatial Domain:
Local operators
[dipum]
Matlab: image padding
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Linear lowpass filters
Chapter 3
Image Enhancement in the Spatial Domain:
Linear lowpass filters
Both masks have power-of-two coefficients, which
are simple to implement. In the second one even
the sum of the coefficients is a power of two.
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Linear lowpass filters
Chapter 3
Image Enhancement in the Spatial Domain:
Linear lowpass filters
Gianni Ramponi
University of Trieste

/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Linear lowpass filters
Chapter 3
Image Enhancement in the Spatial Domain:
Linear lowpass filters
Original 3x3
13
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Linear lowpass filters
Chapter 3
Image Enhancement in the Spatial Domain:
Linear lowpass filters
5x5 9x9
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Linear lowpass filters
Chapter 3
Image Enhancement in the Spatial Domain:

Linear lowpass filters
15x15 35x35
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Linear lowpass filters
Chapter 3
Image Enhancement in the Spatial Domain:
Linear lowpass filters
… A first elementary result in image segmentation!
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Linear and nonlinear “lowpass” filters
Chapter 3
Image Enhancement in the Spatial Domain:
Linear and nonlinear “lowpass” filters
Let Sxy be an mxn neighborhood of (x,y); define the Median filter:
)},({median),(
ˆ
),(
tsgyxf
Sxyts ∈
=

Sort the pixel values in Sxy and take the one in position (mn+1)/2.
Note: mn should be odd; if it is even one can take as output the
average of the values in positions mn/2 and mn/2+1. The formal
statistical properties of the filter change.
14
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Linear and nonlinear “lowpass” filters
Chapter 3
Image Enhancement in the Spatial Domain:
Linear and nonlinear “lowpass” filters
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Define a 1-D digital derivative (other definitions are possible):
First-order: Note: it is not “centered”
Second-order:
2-D case:
Gradient:
Laplacian:
)()1( xfxf
x
f
−+=



)(2)1()1()]1()([)]()1([
2
2
xfxfxfxfxfxfxf
x
f
−−++=−−−−+=












=∇
y
f
x
f
,f













=










+








=∇


x
f
y
f
y
f
x
f
/tan;||
1
2
2
α
f
2
2
2
2
2
y
f
x
f
f


+


=∇

Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Measuring the derivatives of a signal:
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Beware: all such definitions
can be found in the literature
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
15

Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
),(),(),(
2
yxfyxfyxg ∇−=
(Use ‘+’ sign if masks in
Fig.3.39 c or d are used)
This is analogous to
“Unsharp Masking”:
),(),(),( yxfkyxfyxg
LP
−=
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators

Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Generalization of the sharpening filter (beware: the average gray
level changes!):
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
16
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators

Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Estimation of the gradient
Roberts
Sobel
2
2
||










+








=∇
y

f
x
f
f
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
a b c d
Original (NMR) Laplacian(a) a+b Sobel(a)
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods

Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
Chapter 3
Image Enhancement in the Spatial Domain:
Sharpening operators
e
f
g
h
(b)
17
Gianni Ramponi
University of Trieste
/>Digital Image Processing
Images © R.C.Gonzalez & R.E.Woods
Chapter 3
Image Enhancement in the Spatial Domain:
Rational Unsharp Masking
Chapter 3
Image Enhancement in the Spatial Domain:
Rational Unsharp Masking
0 50 100 150 200 250
0
0.2
0.4
0.6
0.8
1
Absolute lum. difference

Control term








+
+−−
+
+
+−−
+=
−=−=
23
)4)(2(
23
)4)(2(
'
/)(/)(
2
2
2
2
2222
y
yy
x

xx
yx
z
zzedb
z
zzcab
bb
edzcaz
λ
µµ
A control term avoids noise
amplification and excessive
amplification of sharp and
large edges.
Peak amplification is 1 for
zx=zy=1
peak position is controlled by µ

×