Professional Documents
Culture Documents
POONAM S. TIWARI
Photogrammetry and Remote Sensing
Division
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 1
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 2
Poonam S.Tiwari
iirs
Image Enhancement
•Modification of an image to alter its impact on viewer
Enhancements are used to make it easier for visual
interpretation and understanding of imagery.
•Process of making an image more interpretable for a
particular application to accentuate certain image
features for subsequent analysis or for image display
• Useful since many satellite images give inadequate
information for image interpretation.
• Attempted after image is corrected for distortions.
• May be performed temporarily or permanently.
In raw imagery, the useful data often populates only a small portion
of the available range of digital values (commonly 8 bits or 256
levels).
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 3
Poonam S.Tiwari
iirs
Enhancement Types:
• RADIOMETRIC ENHANCEMENT
• Modification of brightness values of each pixel in an
image data set independently (Point operations).
• SPECTRAL ENHANCEMENT
• Enhancing images by transforming the values of
each pixel on a multiband basis
• SPATIAL ENHANCEMENT
• Modification of pixel values based on the values of
surrounding pixels. (Local operations)
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 4
Poonam S.Tiwari
iirs
RADIOMETRIC ENHANCEMENT
• Modification of brightness values of each pixel in
an image data set independently (Point
operations).
• Brings out contrast in the image
• Applied separately to each band of data.
• Enhancement applied to one band may not be
appropriate to other bands.
• Contrast Enhancement falls under Radiometric enhancement
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 5
Poonam S.Tiwari
iirs
CONTRAST
• Amount of difference between average gray level of an
object and that of surroundings
• Difference in illumination or grey level values in an image
or
• Intuitively, how vivid or washed-out an image appears
• Ratio of Maximum Intensity to Minimum Intensity
• Larger the ratio more easy it is to interpret the image
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 6
Poonam S.Tiwari
iirs
Why is it needed to contrast stretch?
Band1 Band 3
FCC (4,2,1)
Band2 Band4
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 7
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 8
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 9
Poonam S.Tiwari
iirs
ORIGINAL IMAGE AND ITS
HISTOGRAM
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 10
Poonam S.Tiwari
iirs
LOW CONTRAST IMAGE AND
ITS HISTOGRAM
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 11
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 12
Poonam S.Tiwari
iirs
Original
Saturated
Low Contrast
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 13
Poonam S.Tiwari
iirs
Contrast Enhancement
• Expands the original input values to make use of
the total range of the sensitivity of the display
device.
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 15
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 16
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 17
Poonam S.Tiwari
iirs
255
Y = ax + b
Linear stretch
grey
shade min DN max DN
0
0 DN 255
transfer function
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 18
Poonam S.Tiwari
iirs
Computations
Y = ax+b ………………Eq. 1
The values of 'a' and 'b' are computed from the equations.
a = (Ymax - Ymin )/Xmax - Xmin
b = (Xmax Ymin - Xmin Ymax )/Xmax - Ymin
where,
X = Input pixel value
Y = Output pixel value
Xmin, Xmax , Ymin and Ymax are the min and max
input and output values
X - Xmin
Y = ------------ . 255
Xmax - Xmin
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 20
Poonam S.Tiwari
iirs
Linear stretch
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 21
Poonam S.Tiwari
iirs
Linear stretch
Histogram
Distribution of Grey Values
TM band 4
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 22
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 23
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 24
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 25
Poonam S.Tiwari
iirs
-1 σ µ +1 σ
-2 σ +2 σ
-3 σ
+3 σ
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 26
Poonam S.Tiwari
iirs
µ
σ
1.2 σ
µ = MEAN
σ = STANDARD DEVIATION
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 27
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 28
Poonam S.Tiwari
iirs
255
transfer function
Piecewise
grey
shade
linear stretch
0
0 DN 255
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 30
Poonam S.Tiwari
iirs
Saw Tooth Stretch
• The continuous data is divided into Interval Data
• Each Range is then stretched from 0 to 255
255
grey
shade
0 DN 255
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 31
Poonam S.Tiwari
iirs
Non-Linear Contrast Enhancement
• Input and Output Data Values do not follow linear
relationships
• Input and output are related via a transformation
function
Y = ƒ(x)
• Increases or decreases contrast in different
regions of histogram
Transfer Function Types:
Mathematical Statistical
* Logarithmic * Histogram Equalization
* Inverse Log * Gaussian Stretch
* Exponential
* Square Trigonometrical
* Square root * Arc tangent ( tan-1)
* Cube
* Cube Root
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 32
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 33
Poonam S.Tiwari
iirs
Logarithmic Stretch
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 34
Poonam S.Tiwari
iirs
Transfer Function – Non Linear
Stretch
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 35
Poonam S.Tiwari
iirs
Histogram Equalisation
¾ In this technique, histogram of the original image is
redistributed to produce a uniform population density.
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 36
Poonam S.Tiwari
iirs
Histogram Equalisation
• Image analysts must be aware that while
histogram equalization often provides an image
with the most contrast of any enhancement
technique, it may hide much needed
information.
• This technique groups pixels that are very dark
or very bright into very few gray scales.
• If one is trying to bring out information about
data in terrain shadows, or there are clouds in
your data, histogram equalization may not be
appropriate.
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 37
Poonam S.Tiwari
iirs
Histogram Equalisation
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 38
Poonam S.Tiwari
iirs
Histogram equalization
Histogram
TM band 4
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 39
Poonam S.Tiwari
iirs
Spatial frequencies
• Radical variation in • Slowly varying changes
gray scale in gray scales
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 40
Poonam S.Tiwari
iirs
Spatial frequencies
Definitions
Numbers of changes in the brightness values per unit distance for any
particular part of the image
Image Composed of
1. High frequency details
2. Low frequency details
Low Frequency Details
Few changes in brightness value over a given area
High Frequency Details
Brightness values change dramatically over short distances
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 41
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 42
Poonam S.Tiwari
iirs
Spatial Filtering
• Spatial Filtering is the process of dividing the image into its
constituent spatial frequencies, and selectively altering certain spatial
frequencies to emphasize some image features.
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 43
Poonam S.Tiwari
iirs
Where are the low and high
frequencies ?
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 44
Poonam S.Tiwari
iirs
Filters
• are Algorithms for filtering
• Composed of
• Window mask /Kernal / Convolution mask and
• Constants (Weights given to mask)
• Mask size 3x3, 5x5, 7x7, 9x9………
ex. Square mask
1 1 1
1 1 1
1 1 1
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 45
Poonam S.Tiwari
iirs
Technique
– Mask window is placed over part of image
– Convolution Formula is applied over the part of image (Sum of the
Weighted product is obtained (coefficient of mask x raw DN
value)/ sum of coefficients)
– Central value replaced by the output value
– Window shifted by one pixel & procedure is repeated for the entire
image.
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 46
Poonam S.Tiwari
iirs
Convolution Process
Please Note that:
• Using 3x3 kernel results in output image
2 lines and 2 columns smaller.
• Boundary pixels are either copied from
original image
– Or
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 47
Poonam S.Tiwari
iirs
Central Pixel
Window mask
010
111 BV5, out = 932 / 5 = 186
010
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 48
Poonam S.Tiwari
iirs
Filtering
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 49
Poonam S.Tiwari
iirs
Filter Types
• Low Pass Filters
• block high frequency details
• has a smoothening effect on images.
• Used for removal of noise
• Removal of “salt & pepper” noise
• Blurring of image especially at edges.
• High Pass Filters
• Preserves high frequencies and Removes slowly varying
components
• Emphasizes fine details
• Used for edge detection and enhancement
• Edges - Locations where transition from one category to other
occurs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 50
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 51
Poonam S.Tiwari
iirs
Laplace Filter
• Laplace Edge Detectors
-1 -1 -1 0 -1 0
-1 8 -1 -1 4 -1
-1 -1 -1 0 -1 0
• Laplace Edge Enhancement filter
-1 -1 -1 0 -1 0
-1 16 -1 -1 5 -1
-1 -1 -1 0 -1 0
(12-16)
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 52
Poonam S.Tiwari
iirs
Additional Edge Detector Masks
-1 0 -1 -1 -1 -1 0 1 1
-1 0 -1 0 0 0 -1 0 1
-1 0 -1 1 1 1 -1 -1 0
Vertical Horizontal Diagonal
-1 -1 -1 -1 -1 -2 -1 2 -1
2 2 2 -1 2 -1 -1 2 -1
-1 -1 -1 2 -1 -1 -1 2 -1
Horizontal forward diagonal vertical
¾Directional, or edge detection filters are designed to highlight linear features, such as
roads or field boundaries.
¾These filters can also be designed to enhance features which are oriented in specific
directions.
¾These filters are useful in applications such as geology, for the detection of linear geologic
structures.
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 53
Poonam S.Tiwari
iirs
Directional Filters
Detects/ Enhances edges in specified directions
1 1 1 1 1 1 -1 1 1 -1 -1 -1
1 -2 1 -1 -2 1 -1 -2 1 1 -2 1
-1 -1 -1 -1 -1 1 -1 1 1 1 1 1
North North east East South
-1 -1 1 1 -1 -1 1 1 -1 1 1 1
-1 -2 1 1 -2 -1 1 -2 -1 1 -2 -1
1 1 1 1 1 1 1 1 -1 1 -1 -1
South East South West West North West
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 54
Poonam S.Tiwari
iirs
Image Transformation
• Image transformations typically involve the
manipulation of multiple bands of data, whether
from a single multispectral image or from two or
more images of the same area acquired at
different times (i.e. multitemporal image data).
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 55
Poonam S.Tiwari
iirs
Image Division
• The most common transforms applied
to image data.
• On a pixel-by-pixel basis carry out the
following operation…
• Band1/Band2 = New band
• resultant data are then rescaled to fill the
range of display device
• Very popular technique, commonly
called ‘Band Ratio’
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 56
Poonam S.Tiwari
iirs
Mathematically
BVi,j,r = BVi,j,k / BVi,j,l
Where
BVi,j,k Brightness value at the location line
i, pixel j in k band of imagery
BVi,j,l Brightness value at the same
location in band l
BVi,j,r Ratio value at the same location
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 57
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 58
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 61
Poonam S.Tiwari
iirs
Which bands to Ratio
1 2 3 4 5 7
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 62
Poonam S.Tiwari
iirs
InfraRed Red
Image
Digital Preprocessing
Image Enhancement RATIO IR/R
minakshi@iirs.gov.in 64
Poonam S.Tiwari
iirs
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 65
Poonam S.Tiwari
iirs
Vegetation Index
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 66
Poonam S.Tiwari
iirs
Principal Component Analysis (PCA)
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 67
Poonam S.Tiwari
iirs
PCA Cont..
• The objective of this transformation is to reduce
the dimensionality (i.e. the number of bands) in
the data, and compress as much of the
information in the original bands into fewer
bands.
• The "new" bands that result from this statistical
procedure are called components.
• This process attempts to maximize (statistically)
the amount of information (or variance) from the
original data into the least number of new
components.
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 68
Poonam S.Tiwari
iirs
Graphical Conceptualization
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 69
Poonam S.Tiwari
iirs
Correlation Scatterplot
Data 2
Data 2
Data 1 Data 1
Data 1
No Correlation
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 71
Poonam S.Tiwari
iirs
PCA- Graphical Conceptualization
• Translate and/or
route the original
axes so that the
original brightness
values on axes
Band 1 and Band 2
are redistributed
(reprojected) onto a
new set of axes or
dimensions, Band 1'
and Band 2'.
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 72
Poonam S.Tiwari
iirs
PCA- Graphical Conceptualization
• The Band 1' coordinate system is
then be rotated about its new origin
(Mean1, Mean2) in the new
coordinate system some φ degree
so that the axis Band 1' is
associated with the maximum
amount of variance in the scatter of
points . This new axis is called the
first principal component (PC1 = λ1).
• The second principal component
(PC2 = λ2) is perpendicular
(Orthogonal) to PC1. Thus, the
major and minor axes of the
ellipsoid of points in bands 1 and 2
are called the principal
components.
• The second principal component
describes the variance that is not
already described by the first
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 73
Poonam S.Tiwari
iirs
PCA- Graphical Conceptualization
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 74
Poonam S.Tiwari
iirs
Principal Component 1
• The first principal
component,
broadly simulates
standard black and
white photography
and it contain most
of the pertinent
information
inherent to a
scene.
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 75
Poonam S.Tiwari
iirs
Principal Component 2
• Thus as is the
convention
the second
PC has a
smaller
variance than
the first PC
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 76
Poonam S.Tiwari
iirs
Principal Component 3
• Some of the gray
patterns can be
broadly correlated
with two
combined classes
of vegetation: The
brighter tones
come from the
agricultural fields.
Moderately darker
tones coincide
with some of the
grasslands, forest
or tree areas.
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 77
Poonam S.Tiwari
iirs
Principal Component 4
• Very Little
Information
Content
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 78
Poonam S.Tiwari
iirs
Composite PC Image
• Forest appears
green, river bed
in blue, water in
Red – orange ,
vegetation
appears in
varying shades
of green and
fallow
agriculture field
as pink to
magenta
THANK YOU
Image
Digital Preprocessing
Image Enhancement minakshi@iirs.gov.in 80
Poonam S.Tiwari