Secx1040 Unit 3
Secx1040 Unit 3
The result of the transformation shown in the figure below is to produce an image of
higher contrast than the original, by darkening the levels below m and brightening the
levels above m in the original image. This technique is known as contrast stretching.
Contrast stretching reduces an image of higher contrast than the original by
darkening the levels below m and brightening the levels above m in the image.
POINT PROCESSING
g = T(f)
This is called point processing.
Important: every pixel for himself – spatial information completely lost!
Image Negative
The negative of an image with gray levels in the range [0, L-1] is obtained by
using the negative transformation shown in Fig. Reversing the intensity levels of an
image in this manner produces the equivalent of a photographic negative. This type of
processing is particularly suited for enhancing white or gray detail embedded in dark
regions of an image, especially when the black areas are dominant in size.
Log Transformations
The general form of the log transformation shown in Fig. 3.3 is s = c log (1 + r)
where c is a constant, and it is assumed that r 0.
The shape of the log curve in Fig. 3.3 shows that this transformation maps a
narrow range of low gray-level values in the input image into a wider range of
output levels.
The opposite is true of higher values of input levels. We would use a
transformation of this type to expand the values of dark pixels in an image while
compressing the higher-level values. The opposite is true of the inverse log
transformation
Contrast Stretching
Low contrast images occur often due to poor or non uniform lighting conditions,
or due to nonlinearity, or small dynamic range of the imaging sensor. In the figure of
Example 1 above you have seen a typical contrast stretching transformation.
Contrast stretching reduces an image of higher contrast than the original by darkening
the levels below m and brightening the levels above m in the image.
Histogram processing
Measure frequency of occurrence of each grey/colour value
The histogram of a digital image with gray levels in the range [0, L-1] is a discrete
function h(rk)=nk. rk-kth gray level nk-number of pixels in the image having gray level rk.
By processing (modifying) the histogram of an image we can create a new image with
specific desired properties. Suppose we have a digital image of size NXN with grey
levels in the range [0,L-1] . The histogram of the image is defined as the following
discrete function:
The histogram represents the frequency of occurrence of the various grey levels in the
image. A plot of this function for all values of provides a global description of the
appearance of the image.
12000
10000
8000
Frequency
6000
4000
2000
0
1
16
31
46
61
76
91
106
121
136
151
166
181
196
211
226
241
256
Grey Value
Directional smoothing
To protect the edges from blurring while smoothing, a directional averaging filter can
Median filtering
The median m of a set of values is the value that possesses the property that half
the values in the set are less than and half are greater than m . Median filtering is the
operation that replaces each pixel by the median of the grey level in the neighborhood
of that pixel. Median filters are non linear filters because for two sequences x(n) and
y(n)
Median filters are useful for removing isolated lines or points (pixels) while preserving
spatial resolutions. They perform very well on images containing binary (salt and
pepper) noise but perform poorly when the noise is Gaussian. Their performance is
also poor when the number of noise pixels in the window is greater than or half the
number of pixels in the window
Image Enhancement
(a) Aerial image (b)-(d) results of of applying the transformation with c=1and
Ƴ=3,4 and 5 respectively
Brightness Adjustment
Contrast Adjustment
• Filters are commonly used for such things as edge enhancement, noise
removal, and the smoothing of high frequency data
• The principle of the various filters is to modify the numerical value of
each pixel as a function of the neighboring pixels’ values.
• For example, if the value of each pixel is replaced by the average of its
value and those of its eight neighbors the image is smoothed, that is to say,
the finer details disappear and the image appears fuzzier.
• For example, the filtered value of the pixel located at E5 is
(9*1/9) + (5*1/9) + (5*1/9) + (9*1/9) + (5*1/9) + (5*1/9) + (5*1/9) + (5*1/9) +
(5*1/9) = 5.89, rounded up to 6.
Spatial Feature Manipulation
The Neighbourhood
Masking
Mask is the small 2-D array in which the values of mask co-efficient determine
the nature of process. The enhancement technique based on this type of approach is
referred to as mask processing.
Unsharp Masking
Image Restoration
Image Restoration refers to a class of methods that aim to remove or reduce the
degradations that have occurred while the digital image was being obtained. All natural
images when displayed have gone through some sort of degradation:
In most of the existing image restoration methods we assume that the degradation
process can be described using a mathematical model.
Objective of image restoration to recover a distorted image to the original form based on
idealized models. The distortion is due to
Image degradation in sensing environment e.g. random atmospheric turbulence
Noisy degradation from sensor noise.
Blurring degradation due to sensors e.g. camera motion or out-of-focus
Geometric distortion e.g. earth photos taken by a camera in a satellite
Image restoration differs from image enhancement in that the latter is concerned
more with accentuation or extraction of image features rather than restoration of
degradations.
Image restoration problems can be quantified precisely, whereas enhancement
criteria are difficult to represent mathematically.
Image degradation / restoration model
In the absence of any knowledge about the noise ‘n‘, a meaningful criterion function is
to seek an f^ such that H f^ approximates of in a least square sense by assuming the
noise term is as small as possible.
g = degraded image.
INVERSE FILTERING
WIENER FILTERING
subject to
where Cf is a high pass filtered version of the image. The idea behind the above
constraint is that the highpass version of the image contains a considerably large
amount of noise! Algorithms of the above type can be handled using optimization
techniques. Constrained least squares (CLS) restoration can be formulated by choosing
an f to minimize the Lagrangian
parameter and it controls the relative contribution between the term and the
term . The minimization of the above leads to the following estimate for the
original image
They refer to a large class of methods that have been investigated extensively
over the last decades. They possess the following advantages.
12 MARKS QUESTIONS