Digital Image Processing Module4
Digital Image Processing Module4
Module IV
Rameela Ravindran K
• Image restoration - model of Image degradation/restoration
process - noise models – inverse filtering - least mean square
filtering - constrained least mean square filtering
• Edge detection - thresholding - region based segmentation -
boundary representation.
The purpose of image restoration
• "compensate for" or "undo" defects which degrade an image.
• Degradation may be due to motion blur, noise, and camera
misfocus.
• motion blur - very good estimate of the actual blurring function
helps undo the blur to restore the original image.
• image corrupted by noise - compensate for the degradation it
caused.
Degradation Model
1 ( z ) 2 / 2 2
p( z ) e
2
Intensity mean variance
Note:
p( z )dz 1
Rayleigh noise
2 ( z a ) 2 / b
( z a )e for z a
p( z ) b
0 for z a
• The mean and variance of this density are given by
b( 4 )
a b / 4 and 2
4
• a and b can be obtained through mean and variance
Erlang (Gamma) noise
•
a b z b 1 az
e for z 0
p ( z ) (b 1)!
0 for z 0
• The mean and variance of this density are given by
a2
Exponential noise
ae az for z 0
p( z )
0 for z 0
a
Uniform noise
1
if a z b
p( z ) b a
0 otherwise
ab
Mean:
2
(b a ) 2
Variance: 2
12
Impulse (salt-and-pepper) nosie
Pa for z a
p ( z ) Pb for z b
0 otherwise
• Inverse
Gaussian Noise Rayleigh Noise Gamma Noise
mean
variance
mean
variance
Sample and
histogram
Sample and
histogram
Periodic Noise
• usually present due to electrical or electromechanical
interference during the image acquisition process
Filters
• The inverse filtering is a restoration technique for
deconvolution, i.e., when the image is blurred by a known
lowpass filter, it is possible to recover the image by inverse
filtering or generalized inverse filtering.
• inverse filtering is very sensitive to additive noise.
• It minimizes the overall mean square error in the process of
inverse filtering and noise smoothing. The Wiener filtering is a
linear estimation of the original image. The approach is based on a
stochastic framework. The orthogonality principle implies that the
Wiener filter in Fourier domain can be expressed as follows:
vertical -450
Edge Detection
• Definition of edges
• Edges are significant local changes of intensity in an image.
• Edges typically occur on the boundary between two different
regions in an image.
• Goal of edge detection
• Produce a line drawing of a scene from an image of that
scene.
• Important features can be extracted from the edges of an
image (e.g., corners, lines, curves).
• These features are used by higher-level computer vision
algorithms (e.g., recognition).
• Various physical events cause intensity changes.
• Geometric events
• object boundary (discontinuity in depth and/or surface color and
texture)
• surface boundary (discontinuity in surface orientation and/or
surface color and texture)
• Non-geometric events
• specularity (direct reflection of light, such as a mirror)
• shadows (from other objects or from the same object)
• inter-reflection
What do we detect?
Depending on the impulse response of the filter, we can detect
different types of gray level discontinuities
• Isolate points (pixels)
• Lines with a predefined slope
• Generic contours
• Edge detection implies the evaluation of the local gradient and
corresponds to a (directional) derivative
Edge descriptors