Midsem BKM Merged PDF
Midsem BKM Merged PDF
Midsem BKM Merged PDF
GNR607
29-07-2019 Lecture 1 Slide 2
Prof. B. Krishna Mohan
1
7/29/2019
Nidhi Kapoor
Aditya Chondke
Aishwarya Gujrathi
Sanoj Prasad
GNR607
29-07-2019 Lecture 1 Slide 3
Prof. B. Krishna Mohan
GNR607
29-07-2019 Lecture 1 Slide 4
Prof. B. Krishna Mohan
2
7/29/2019
Assessment Pattern
• Quizzes – 15%
• Mid-semester Examination – 20%
• Programming Assignment – 15%
• Laboratory – 10%
• Semester-end Examination – 40%
GNR607
29-07-2019 Lecture 1 Slide 5
Prof. B. Krishna Mohan
3
7/29/2019
E-Resources
1. https://www.itc.nl/library/papers_2009/general/princ
iplesremotesensing.pdf
2. https://www.itc.nl/library/papers_2009/general/princ
iplesgis.pdf
3. https://www.nrcan.gc.ca/sites/www.nrcan.gc.ca/file
s/earthsciences/pdf/resource/tutor/fundam/pdf/fun
damentals_e.pdf
4. http://giswin.geo.tsukuba.ac.jp/sis/tutorial/koko/re
motesensing/FundamentalRemoteSensing.pdf
(booklet)
5. http://www.gdmc.nl/oosterom/PoRSHyperlinked.pdf
6. http://www.intechopen.com/books/land-
applications-of-radar-remote-sensing/estimation-
of-cultivated-areas-using-multi-temporal-sar-data
7. https://www.nrsc.gov.in/Knowledge_EBooks
GNR607
29-07-2019 Lecture 1 Slide 7
Prof. B. Krishna Mohan
GNR607
29-07-2019 Lecture 1 Slide 8
Prof. B. Krishna Mohan
4
7/29/2019
Instructor’s Profile
Prof. B. Krishna Mohan - Instructor
bkmohan@csre.iitb.ac.in
•PhD in Electrical Engineering from IIT Bombay 1991
•Professor and previous Head of CSRE
•Over 100 publications in journals and conferences
•7 PhDs completed; currently supervisor of 4 students
•4 M.Tech. dissertations currently being supervised
•Over 40 Research and consultancy projects dealing with
satellite image analysis, digital mapping, and others
•PhD thesis examiner for several universities
•Manuscript reviewer for several international and national
journals
•Member of Board of Studies at many Universities
•Two awards and many grants for international visits
GNR607
29-07-2019 Lecture 1 Slide 9
Prof. B. Krishna Mohan
Mode of Interaction
•Class lectures according to slot 2 schedule
•Friday afternoon lab
•Lecture slides will be available on
http://moodle.iitb.ac.in
•Use your login and password to get access to
lecture materials
GNR607
29-07-2019 Lecture 1 Slide10
Prof. B. Krishna Mohan
5
7/29/2019
Laboratory Sessions
•Friday afternoon lab
•CSRE has procured 30+ licenses of state-
of-the-art satellite image processing
software ERDAS Imagine and 25+ licenses
of ENVI
•Two extra hours will be spent by students
on carrying out image processing and
analysis using ERDAS Imagine software on
Friday afternoon concurrent with theory
covered during that week
GNR607
29-07-2019 Lecture 1 Slide 11
Prof. B. Krishna Mohan
GNR607
29-07-2019 12
Prof. B. Krishna Mohan
6
7/29/2019
Remote Sensing
• Motivation
– Images of natural resources such as
forests, waterbodies, oceans, soils and
hills/mountains are collected by
spaceborne sensors
– The governing principle is remote sensing
– Important to understand the choice of
sensors, their operation and role of
atmosphere to understand the digital
image and evolve its processing strategy
GNR607
29-07-2019 Lecture 1 Slide 13
Prof. B. Krishna Mohan
Sample Image
GNR607
29-07-2019 Lecture 1 Slide 14
Prof. B. Krishna Mohan
7
7/29/2019
GNR607
29-07-2019 Lecture 1 Slide 15
Prof. B. Krishna Mohan
Remote Sensing
Definition
GNR607
29-07-2019 Lecture 1 Slide 16
Prof. B. Krishna Mohan
8
7/29/2019
Image Processing
• Motivation
– Most remote sensing data collected in
digital form
– Digital image processing essential to
analyze and extract information
– Some image processing operations
common across domains, some unique to
remote sensing
– An important distinguishing factor - huge
data volume, no video, only still images
from space
GNR607
29-07-2019 Lecture 1 Slide 17
Prof. B. Krishna Mohan
Image Corrections
• Motivation
– Various types of distortions are
introduced into the images due to
atmosphere, satellite motion, earth
rotation and curvature
– Distortions are modeled and
corrected prior to the use of the
images
– Essential for practical use of images,
for preserving shape and area of
objects on Earth
GNR607
29-07-2019 Lecture 1 Slide 18
Prof. B. Krishna Mohan
9
7/29/2019
Image Enhancement
• Motivation
– Good contrast and brightness
essential for visually appreciating the
content
– Image display is modified to improve
or enhance the visual quality
– Often this operation is performed in
real time, and users often get a set of
options for different types of image
enhancement
GNR607
29-07-2019 Lecture 1 Slide 19
Prof. B. Krishna Mohan
Neighborhood Operations
• Motivation
– Groups of points are considered
together for processing
– Necessary to suppress sensor or
atmosphere induced noise in data
– Useful to sharpen the image
– Required to extract boundaries of
objects as well as lines from images
GNR607
29-07-2019 Lecture 1 Slide 20
Prof. B. Krishna Mohan
10
7/29/2019
Mathematical Morphology
• Motivation
– Morphology is the study of form or shape
– Mathematical morphology deals with set
theoretic and other mathematical
operations to deal with shapes or forms in
images
– Useful to perform structure based image
analysis
– Powerful tool to highlight object features
like smoothness, roughness and so on
GNR607
29-07-2019 Lecture 1 Slide 21
Prof. B. Krishna Mohan
Image Transforms
• Motivation
– Image transformations facilitate
certain types of processing
operations
– Can be better for visualizing the
color, frequency and other
information in a transformed domain
– Information extraction sometimes is
easier through transformations
GNR607
29-07-2019 Lecture 1 Slide 22
Prof. B. Krishna Mohan
11
7/29/2019
GNR607
29-07-2019 Lecture 1 Slide 23
Prof. B. Krishna Mohan
GNR607
29-07-2019 Lecture 1 Slide 24
Prof. B. Krishna Mohan
12
7/29/2019
GNR607
29-07-2019 Lecture 1 Slide 25
Prof. B. Krishna Mohan
• Motivation
– Analysis of satellite images can lead
to practically useful outputs
– Before deploying these outputs,
accuracy assessment is essential
– Numerical estimates and issues
involved – conservative estimate or
optimistic estimate?
GNR607
29-07-2019 Lecture 1 Slide 26
Prof. B. Krishna Mohan
13
7/29/2019
Change Detection
• Motivation
– Changes on the ground need to be
detected and categorized as what
changed, and from what to what
– Essential in military, urban and rural
planning, afforestation /
deforestation, crop monitoring …
GNR607
29-07-2019 Lecture 1 Slide 27
Prof. B. Krishna Mohan
I live in
this bldg!
GNR607
29-07-2019 Lecture 1 Slide 28
Prof. B. Krishna Mohan
14
7/29/2019
To be continued …
15
7/29/2019
Lecture – 2 Contents
• Introduction to Digital Image
Processing
• Generation of a digital image
• Sampling and quantization
• Image Processing System
• Image Understanding Methodology
• Applications
GNR607
29-07-2019 Lecture 1 Slide 2
Prof. B. Krishna Mohan
1
7/29/2019
GNR607
29-07-2019 Lecture 1 Slide 3
Prof. B. Krishna Mohan
Camera
Pixel
Real World Scene Digital Image
GNR607
29-07-2019 Lecture 1 Slide 4
Prof. B. Krishna Mohan
2
7/29/2019
Digitization
• Digitization involves three steps:
– Sampling
– Quantization
– Coding
GNR607
29-07-2019 Lecture 1 Slide 5
Prof. B. Krishna Mohan
Sampling
• View area divided into cells
• Each cell is a picture element pixel
• The image now is a matrix of M rows,
and N columns
• M = Length of View area / Length of Cell
• N = Width of View area / Width of Cell
• Smaller cell size better ability to
distinguish between closely spaced
objects
GNR607
29-07-2019 Lecture 1 Slide 6
Prof. B. Krishna Mohan
3
7/29/2019
Sampling
• In remotely sensed images the sampling is
essentially ground sampling – i.e., on the
ground a virtual grid is placed and the
energy reflected / transmitted / emitted
from each grid cell is collected by the
sensors and stored as a pixel value
• The grid cell corresponds to a pre-defined
area on the ground; e.g., 5.8m x 5.8m as
with ISRO’s Resourcesat or 50cm x 50cm
as in case of WorldView Satellite
GNR607
29-07-2019 Lecture 1 Slide 7
Prof. B. Krishna Mohan
Sampling
• Smaller the grid cell area better the details
visible in the image
• The grid cell corresponding to a pre-
defined area on the ground; e.g., 5.8m x
5.8m
• This is similar to dpi settings in desktop
image scanners. Higher dpi, smaller size
of dot, more pixels or cells in the image
GNR607
29-07-2019 Lecture 1 Slide 8
Prof. B. Krishna Mohan
4
7/29/2019
Spatial Resolution
GNR607
29-07-2019 Lecture 1 Slide 9
Prof. B. Krishna Mohan
61cmx61cm resolution
details of individual
buildings
GNR607
29-07-2019 Lecture 1 Slide 10
Prof. B. Krishna Mohan
5
7/29/2019
Increased clarity,
reduced
distortion with
finer sampling
GNR607
29-07-2019 Lecture 1 Slide 11
Prof. B. Krishna Mohan
GNR607
29-07-2019 Lecture 1 Slide 12
Prof. B. Krishna Mohan
6
7/29/2019
Point to Remember!
• IFOV is 10 metres x 10 metres square
does not mean that objects smaller
than this size will not be visible
• If a smaller object has very high or very
low reflectance relative to its
background, such object will be visible
despite its size being smaller than the
pixel’s IFOV
GNR607
29-07-2019 Lecture 1 Slide 13
Prof. B. Krishna Mohan
Quantization
• Reflected / transmitted / emitted energy
from the object is converted into an
electrical signal
• The electrical signal converted to a
digital signal by an analog-to-digital
converter (ADC).
• Digital signal takes a range of values
according to the specification of the
ADC
GNR607
29-07-2019 Lecture 1 Slide 14
Prof. B. Krishna Mohan
7
7/29/2019
Quantization
24 bit color
8-bit color
GNR607
29-07-2019 Lecture 1 Slide 15
Prof. B. Krishna Mohan
0 255
GNR607
29-07-2019 Lecture 1 Slide 16
Prof. B. Krishna Mohan
8
7/29/2019
GNR607
29-07-2019 Lecture 1 Slide 17
Prof. B. Krishna Mohan
Impact of
quantization
levels
64 levels (6 bit) – more
shades visible
GNR607
29-07-2019 Lecture 1 Slide 18
Prof. B. Krishna Mohan
9
7/29/2019
160 x150 80 x 75
24-bit 24-bit
GNR607
29-07-2019 Lecture 1 Slide 19
Prof. B. Krishna Mohan
GNR607
29-07-2019 Lecture 1 Slide 20
Prof. B. Krishna Mohan
10
7/29/2019
GNR607
29-07-2019 Lecture 1 Slide 21
Prof. B. Krishna Mohan
Wavelength Freq.
• Gamma Rays
• X-Rays
• Visible/Infrared
• Microwaves
• Radio waves
• Ultrasound waves
• Seismic waves
GNR607
29-07-2019 Lecture 1 Slide 22
Prof. B. Krishna Mohan
11
7/29/2019
Components of an Image
Processing System
• Image Sensors
• Image Display
• Image Storage
• Computer
• Image Processing software
• Special Purpose graphics hardware
• Image printers/plotters
GNR607
29-07-2019 Lecture 1 Slide 23
Prof. B. Krishna Mohan
Schematic Diagram
GNR607
29-07-2019 Lecture 1 Slide 24
Prof. B. Krishna Mohan
12
7/29/2019
Image Image
Feature
Classification Selection Segmentation
Final Interpretation
GNR607
29-07-2019 Lecture 1 Slide 25
Prof. B. Krishna Mohan
GNR607
29-07-2019 Lecture 1 Slide 26
Prof. B. Krishna Mohan
13
7/29/2019
Vase? Or …
People?
GNR607
29-07-2019 Lecture 1 Slide 27
Prof. B. Krishna Mohan
Illusions
• Which is the mouth?
Vase? Or … Mouth
Mouth
People?
GNR607
29-07-2019 Lecture 1 Slide 28
Prof. B. Krishna Mohan
14
7/29/2019
Illusions
• Who drew the triangle?
Vase? Or …
People?
GNR607
29-07-2019 Lecture 1 Slide 29
Prof. B. Krishna Mohan
Some Applications
GNR607
29-07-2019 Lecture 1 Slide 30
Prof. B. Krishna Mohan
15
7/29/2019
Quality Improvement
Vase? Or …
People?
GNR607
29-07-2019 Lecture 1 Slide 31
Prof. B. Krishna Mohan
Hubble Telescope
Vase? Or …
People?
GNR607
29-07-2019 Lecture 1 Slide 32
Prof. B. Krishna Mohan
16
7/29/2019
GNR607
29-07-2019 Lecture 1 Slide 33
Prof. B. Krishna Mohan
Law Enforcement
GNR607
29-07-2019 Lecture 1 Slide 34
Prof. B. Krishna Mohan
17
7/29/2019
Gamma-Ray Imaging
GNR607
29-07-2019 Lecture 1 Slide 35
Prof. B. Krishna Mohan
X-Ray Imaging
GNR607
29-07-2019 Lecture 1 Slide 36
Prof. B. Krishna Mohan
18
7/29/2019
UV Imaging
GNR607
29-07-2019 Lecture 1 Slide 37
Prof. B. Krishna Mohan
GNR607
29-07-2019 Lecture 1 Slide 38
Prof. B. Krishna Mohan
19
7/29/2019
GNR607
29-07-2019 Lecture 1 Slide 39
Prof. B. Krishna Mohan
Thermal Imaging
http://gsp.humboldt.edu/olm_2015/Courses/GSP_216_Online/
lesson8-1/interpreting-imagery.html
GNR607
29-07-2019 Lecture 1 Slide 40
Prof. B. Krishna Mohan
20
7/29/2019
Microwave Imaging
GNR607
29-07-2019 Lecture 1 Slide 41
Prof. B. Krishna Mohan
Imaging in RF Region
21
7/29/2019
Seismic Imaging
22
7/29/2019
Ultrasound Imaging
Advances in Imaging
• 2-D Still images, only location on ground,
no height or depth
• 3-D Still images, with location on ground,
location and depth
• 4-D Image location, height/depth and
temporal variations
• 6-D Image location, height/depth, 3-D
motion of field of view
• Add color/thermal/spectral dimensions…
GNR607
29-07-2019 Lecture 1 Slide 46
Prof. B. Krishna Mohan
23
7/29/2019
Summary
GNR607
29-07-2019 Lecture 1 Slide 47
Prof. B. Krishna Mohan
To be continued …
24
GNR607 Principles of Satellite Image Processing 19/7/2016
Lecture – 3 Contents
• Introduction to Remote Sensing
• Stages in Remote Sensing
• Concept and types of Resolution
• Indian and International Space Programs
Electromagentic Spectrum
• Basic Premise of RS
High reflectance
region
Low reflectance
region
Atmospheric Windows
• The atmosphere interferes with the radiation
passing through it
• It is essential to block the harmful UV rays in
solar radiation from reaching the earth
• Should not block the radiation in in wavelengths
used for earth observation
• Choice of wavelengths should ensure
– Clear response recorded from Earth surface
features
– Minimal interference from atmospheric
constituents
Atmospheric Characteristics
• Wavelength Bands
Short Wave Infrared (SWIR)
Long Wave Infrared (LWIR)
(0.7 - 2 microns)
(8 - 12 microns)
Visible
(0.4 - 0.7 microns) Mid Wave Infrared (MWIR) Millimeter Wave (MMW)
(3 - 5 microns) (3200 - 8600 microns)
Amospheric Windows
Wavelength
(microns)
Role of Atmosphere
• Wavelengths less affected by atmosphere
are chosen to design the sensors to
operate in:
• Visible 400 nm – 700 nm
• Near infrared – 700 nm – 2500 nm with a
few gaps
• Thermal infrared – 8 microns – 15 microns
• Microwave – 1 cm – 30 cm (approx.)
Sensor Technology
• Sensors are broadly of two types:
• Electromechanical – scanning is performed by an
oscillating mirror deflecting upwelling radiation from
earth onto wavelength sensitive photodetectors.
Maintaining constant angular velocity of the mirror is
a problem
• Solid state – sensor consists of a linear array of
detectors, equal in number to the number of pixels in
a row of the image. Much more stable compared to
electromechanical scanning
Electromechanical Technology
•
Oscillating
mirror system
Detector
system
A pixel
Direction of
flight
Detector Array
Lens
Linear
Array of
pixels
Direction of
flight
Concept of Resolution
• Four types of resolution in remote sensing:
• Spatial resolution
• Spectral resolution
• Radiometric resolution
• Temporal resolution
Spatial Resolution
• Ability of the sensor to observe closely
spaced features on the ground
• Function of the instantaneous field of view of
the sensor
• Large IFOV Coarse spatial resolution –
pixel covers more area on ground
• Small IFOV Fine spatial resolution –
pixel covers less area on ground
• A sensor with pixel area 5x5 metres has a
higher spatial resolution than a sensor
with pixel area 10x10 metres
29 July 2019 B. Krishna Mohan Lecture 3 Slide 21
0.6m x 0.6m
1m x 1m
23.25m x 23.25m
Spectral Resolution
• Ability of the sensor to distinguish differences in
reflectance of ground features in different
wavelengths
• Characterized by many sensors, each operating
in a narrow wavelength band
• Essential to discriminate between sub-classes of
a broad class such as vegetation
• Helpful in detecting objects under camouflage
• Essential in identifying state of objects such as
waterbodies, vegetation, road surface material,
elements in top soil of a mineralized area, …
Wavelength
Large number of contiguous sensors
Narrow bandwidth (~ a few nanometers)
Reflectance Spectra
•
Reflectance
Temporal Resolution
• This depends on the return time of the satellite
• Return time is a function of the altitude at which
the satellite is launched
• Higher the altitude, more circumference of orbit,
longer to orbit the earth
• For frequent coverage, such as coverage of areas
of military conflict, areas affected by natural
disasters, of areas of massive human gatherings
the images should be acquired asynchronously
• Steerable sensor systems make this feasible
today
http://www.itc.nl/research/products/sensord
b/searchsat.aspx
Useful Links
• www.isro.gov.in
• www.nrsc.gov.in
• www.digitalglobe.com
• http://global.jaxa.jp
• http://glovis.usgs.gov
• http://www.itc.nl/research/products/sensordb/searchsa
t.aspx
• http://www.geo-airbusds.com/en/
• https://directory.eoportal.org/web/eoportal/satellite-
missions/k/kompsat-5
• http://www.geo-airbusds.com/en/160-formosat-2
• http://bhuvan.nrsc.gov.in
• https://vedas.sac.gov.in/vedas/
To be continued …
8/14/2019
GNR607
Principles of Satellite Image
Processing
Instructor: Prof. B. Krishna Mohan
CSRE, IIT Bombay
bkmohan@csre.iitb.ac.in
Slot 2
Lecture 5 Image Display and Data Formats
August 06, 2019 10.35 AM – 11.30 AM
1
8/14/2019
Red Gun
Image Data
Green Gun
on Disk
Blue Gun
2
8/14/2019
3
8/14/2019
Example of FCC
GNR607 Lecture 04 B. Krishna Mohan
4
8/14/2019
5
8/14/2019
Gray Scale
6
8/14/2019
Panchromatic Image
MUMBAI
Data: IRS-1C, PAN
Consists of
1024x1024 pixels.
7
8/14/2019
Panchromatic Image
Bangalore
Data: SPOT, PLA
Consists of 1024x1024
pixels.
8
8/14/2019
Width
equal to
pixel width Direction of
Ground satellite motion
9
8/14/2019
10
8/14/2019
11
8/14/2019
12
8/14/2019
Second Row
Band 1 Band 2 … Band K Band 1 Band 2 … Band K … Band K
Row 2 Row 2 Row 2 Row 2 Row 2 Row 2 Row 2
Pixel 1 Pixel 1 … Pixel 1 Pixel 2 Pixel 2 Pixel 2 Pixel N
…
Mth Row
Band 1 Band 2 … Band K Band 1 Band 2 … Band K … Band K
Row M Row M Row M Row M Row M Row M Row M
Pixel 1 Pixel 1 … Pixel 1 Pixel 2 Pixel 2 Pixel 2 Pixel N
13
8/14/2019
Superstructure Format
•Very exhaustive data format
•Levels of processing
•Level 0 (Raw data)
•Level 1 (Radiometrically corrected)
•Level 2 (Radiometrically and geometrically corrected)
14
8/14/2019
CD Product Structure
15
8/14/2019
File Details
CD Product Structure
Options possible:
16
8/14/2019
Extension to TIFF
GeoTIFF format
17
8/14/2019
18
8/14/2019
M Rows
L kms
N Columns; B kms
GNR607 Lecture 04 B. Krishna Mohan
Area of Sub-image
• Number of rows in the sub-image = L1 / l
• Number of cols in the sub-image = B1/b
• What are the coordinates of the window?
L1
B1
19
8/14/2019
Sub-image Extraction
• The user must specify the location of the sub-
image in the overall image
• This may be done using interactive facility such
as given the left top coordinate, extract a sub-
image of L1xB1 area, a window of M1 x N1 etc.
• Work out an algorithm to extract this assuming
BIL / BSQ / BIP organization of the data
20
8/14/2019
21
8/14/2019
Contd…
22
8/14/2019
GNR607
Principles of Satellite Image
Processing
Instructor: Prof. B. Krishna Mohan
CSRE, IIT Bombay
bkmohan@csre.iitb.ac.in
Slot 2
Lecture 6-9 Histogram and Image Enhancement
August 6-19 2019
1
8/14/2019
Sample Histogram
2
8/14/2019
Histogram
• With digital images, we have a range of values
that can be found at a given pixel. Depending on
the resolution of the sensor from which the
image is acquired, the gray level values may be
[0-255], [0-1023], [0-2047], [0-63], [0-127] etc. in
each band
3
8/14/2019
4
8/14/2019
5
8/14/2019
6
8/14/2019
7
8/14/2019
Role of Entropy
• Indicator whether very few gray levels are
actually present, or wide range of levels in
sufficient numbers.
• Entropy is also used for threshold selection
• e.g., separating image into object of interest and
background
8
8/14/2019
Applications of histogram
• Can be related to the discrete probability density
function
• The gray level corresponding to the highest
frequency of occurrence is called the modal
level, as seen in the histogram
• If the image has two classes, the histogram may
be bimodal with means m1 and m2 and standard
deviations s1 and s2 respectively.
Applications of Histogram
• A threshold or cutoff T between m1 and m2
• All gray levels below T – one class
• Gray levels T and above – second class
• Finding the value of T - Threshold
selection.
• Indicate the classes by 0 and 255 when
displayed on the screen.
9
8/14/2019
A Bimodal Histogram
f(n)
Peak 1
Width
equal to s
Peak 2
Mode 1 Mode 2 n
=m1 =m2
GNR607 Lecture 6-9 B. Krishna Mohan
10
8/14/2019
Skewness
f(n) f(n)
n
n
Negatively skewed Positively skewed
histogram histogram
11
8/14/2019
http://www.statisticshowto.com/pearson- http://mvpprograms.com/help/mvpstats/dist
mode-skewness/ ributions/SkewnessKurtosis
12
8/14/2019
13
8/14/2019
Example
GNR607 Lecture 6-9 B. Krishna Mohan
14
8/14/2019
Contrast
Simultaneous contrast
From Digital Image Processing by R.C. Gonzalez and R.W. Woods, Prentice-
Hall, 3rd ed.
15
8/14/2019
16
8/14/2019
17
8/14/2019
Image Histogram
18
8/14/2019
19
8/14/2019
Point Operations
• Point Operations are applied to pixels
solely on the basis of the gray levels found
there, without taking into account the pixel
position.
• Point operations lead to mapping of gray
levels from one set of values to another
set.
• gij = H[fij], where H is some transformation
GNR607 Lecture 6-9 B. Krishna Mohan
20
8/14/2019
21
8/14/2019
22
8/14/2019
Output level
IIT Bombay Slide 40
Omax
Linear Contrast Stretch
m=1
line
m > 1 stretching
m < 1 compressing
m is the slope of the
line
Omin
Imin Imax Input level
GNR607 Lecture 6-9 B. Krishna Mohan
23
8/14/2019
After
linear
contrast
stretch
24
8/14/2019
After Enhancement
GNR607 Lecture 6-9 B. Krishna Mohan
25
8/14/2019
0 A B 255 n
GNR607 Lecture 6-9 B. Krishna Mohan
26
8/14/2019
27
8/14/2019
Output
Logarithmic
transformation
Input
28
8/14/2019
29
8/14/2019
Another Example
30
8/14/2019
31
8/14/2019
32
8/14/2019
After Exponential
Stretch
33
8/14/2019
34
8/14/2019
35
8/14/2019
36
8/14/2019
So how do we achieve
histogram equalization?
37
8/14/2019
38
8/14/2019
39
8/14/2019
40
8/14/2019
8 9 10 11 12 13 14 15
147456 163840 180224 196608 212992 229376 245760 262144
Interpretation
• E.g., consider gray level 4 in the input
• h(4) = 13108, cum.freq(4) = 31460.
• For the ideal equalized histogram, the
nearest matching cum. freq above
31460 is
cum.freq(1) = 32768.
• Therefore input gray level 4 maps to
gray level 1 in the output.
41
8/14/2019
Input Image
GNR607 Lecture 6-9 B. Krishna Mohan
42
8/14/2019
After equalization
GNR607 Lecture 6-9 B. Krishna Mohan
43
8/14/2019
44
8/14/2019
Original artwork from the book Digital Image Processing by R.C. Gonzalez and
R.E. Woods © R.C. Gonzalez and R.E. Woods, reproduced with permission
granted to instructorsby authors on the website www.imageprocessingplace.com
Piece-wise Enhancement
• In piece-wise contrast enhancement, the
input gray scale is divided into several
subranges, and a different enhancement
may be applied to each sub-range. This
requires prior knowledge of the gray scale
range of objects of choice
45
8/14/2019
x1 x2 x3 x4 x5 x
46
8/14/2019
47
8/14/2019
48
8/14/2019
Input image
and its
histogram
Density Sliced
to four levels
49
8/14/2019
Pseudo-
coloring to
visualize
objects at
different
intensity
ranges
50
8/14/2019
More Examples of
Pseudocoloring
51
8/14/2019
Input
Image
Negative of
input image
52
8/14/2019
Summary of Contrast
Enhancement methods
• Linear Contrast Enhancement
– Identify minimum and maximum gray levels
in the input
– Specify minimum and maximum gray levels
in the output image
– Compute the gray level mapping based on
the line y = m.x + c
53
8/14/2019
54
8/14/2019
Contd…
55
9/5/2019
GNR607
Principles of Satellite Image
Processing
Instructor: Prof. B. Krishna Mohan
CSRE, IIT Bombay
bkmohan@csre.iitb.ac.in
Slot 2
Lecture 10-14 Neighborhood Operations
August – Sept 2019
1
9/5/2019
NEIGHBORHOOD
OPERATIONS
2
9/5/2019
3
9/5/2019
4
9/5/2019
5
9/5/2019
6
9/5/2019
7
9/5/2019
IIT Processing
Bombay step Slide 14
Image
g(X) =
f (A )
i 1
i
| N(X ) |
8
9/5/2019
• g(X) = w f (A )
i 1
i i
w
i 1
i
1 k,l= -w, …, 0, …, w
hk ,l
(2 w 1)(2w 1)
For a 3x3 window, w=1; For 5x5 window, w=2, …
9
9/5/2019
Filter Mask
• The filter can be compactly represented using the
weights or multiplying coefficients:
• e.g., 3x3 averaging filter
• 0.111 0.111 0.111 1 1 1
• 0.111 0.111 0.111 or (1/9) 1 1 1
• 0.111 0.111 0.111 1 1 1
• This implies that the pixels in the image are multiplied
with corresponding filter coefficients and the products
are added
10
9/5/2019
11
9/5/2019
Filter
Mask
Image
GNR607 Lecture 10-14 B. Krishna Mohan
12
9/5/2019
13
9/5/2019
Original
Image
14
9/5/2019
1
for all (r , c) W , where k 1 r 2 c2
( )
e
( r , c )W
2 s2
15
9/5/2019
Gaussian
curve
x
m2s ms m ms m2s
GNR607 Lecture 10-14 B. Krishna Mohan
16
9/5/2019
17
9/5/2019
18
9/5/2019
Lee filter
a. Original
image
b. Wallis filter
c. K=2
d. K=3
e. K=0.5
f. K=0
19
9/5/2019
20
9/5/2019
• hi,j,k,l = 0.5[ui,j,k,l / u
k,l
i,j,k,l ]
21
9/5/2019
22
9/5/2019
23
9/5/2019
24
9/5/2019
Median
filtering
Example here
is over 7x7
neighborhood
Example
25
9/5/2019
26
9/5/2019
Edge Enhancement
Methods
27
9/5/2019
28
9/5/2019
29
9/5/2019
30
9/5/2019
31
9/5/2019
32
9/5/2019
Diagonal gradient
GNR607 Lecture 10-14 B. Krishna Mohan
33
9/5/2019
34
9/5/2019
Prewitt 1 Prewitt 2
g
• gradient magnitude: p12 p22
arctan( p1 p2 ) clockwise w.r.t.
• gradient direction:
column axis
• p1, p2 are gradient outputs from the masks
-1 0 1 = f (x+1) – f (x -1)
35
9/5/2019
Input image
GNR607 Lecture 10-14 B. Krishna Mohan
36
9/5/2019
gradient direction:
arctan(s1 s2 )
1 sqrt(2) 1 -1 0 1
0 0 0 - sqrt(2) 0 sqrt(2)
-1 - sqrt(2) -1 -1 0 1
37
9/5/2019
5 -3 -3 5 5 -3 5 5 5 -3 5 5
5 0 -3 5 0 -3 -3 0 -3 -3 0 5
5 -3 -3 -3 -3 -3 -3 -3 -3 -3 -3 -3
K5 K6 K7 K8
GNR607 Lecture 10-14 B. Krishna Mohan
38
9/5/2019
-1 0 1 -2 -1 0 -1 -2 -1 0 -1 -2
-2 0 2 -1 0 1 0 0 0 1 0 -1
-1 0 1 0 1 2 1 2 1 2 1 0
R1 R2 R3 R4
39
9/5/2019
40
9/5/2019
2 f 2 f
0
x 2 y 2
• Laplacian operator is discretized version of
the above equation and is based on
second derivatives along x and y
directions
GNR607 Lecture 10-14 B. Krishna Mohan
41
9/5/2019
42
9/5/2019
2 2 2I 2I
I ( 2 2 )I 2 2
2
r c r c
43
9/5/2019
44
9/5/2019
2s 4 s2
GNR607 Lecture 10-14 B. Krishna Mohan
45
9/5/2019
46
9/5/2019
47
9/5/2019
48
9/5/2019
49
9/5/2019
Unsharp Masking
• Sample convolution mask
0 0 0 0 0 0 1 1 1
0 1 0 + 0 1 0 - (1/9) 1 1 1
0 0 0 0 0 0 1 1 1
G = F + | (F – Fmean) |
50
9/5/2019
Lines
51
9/5/2019
52
9/5/2019
53
9/5/2019
54
9/5/2019
Hough Transform
• A method for finding global relationships
between pixels.
Example: We want to find straight lines in an
image
• Apply Hough transform to the edge enhanced –
thresholded image
• Any curve that can be represented by a
parametric equation can be extracted by Hough
transform
Line Fitting
55
9/5/2019
56
9/5/2019
y b
x a
57
9/5/2019
r x cos( ) y sin( )
Y
y ax b
r X
GNR607 Lecture 10-14 B. Krishna Mohan
58
9/5/2019
Hough Space
r: 0 to 1.55
Brightest point
gets 20 votes
Original artwork from the book Digital Image Processing by R.C. Gonzalez and
R.E. Woods © R.C. Gonzalez and R.E. Woods, reproduced with permission
granted to instructors by authors on the website www.imageprocessingplace.com
59
9/5/2019
Noisy Line
60
9/5/2019
Totally Chaotic!
Original artwork from the book Digital Image Processing by R.C. Gonzalez and
R.E. Woods © R.C. Gonzalez and R.E. Woods, reproduced with permission
granted to instructors by authors on the website www.imageprocessingplace.com
61
9/5/2019
If radius of the
circle is known
in advance,
the problem
simplifies to a
2-parameter
problem
b
62
9/5/2019
Contd…
63
9/6/2019
GNR607
Principles of Satellite Image
Processing
Instructor: Prof. B. Krishna Mohan
CSRE, IIT Bombay
bkmohan@csre.iitb.ac.in
Slot 2
Lecture 16-17 Image Corrections
Sept. 06, 09 2019
1
9/6/2019
Background
• The signal received at the satellite
depends on several factors
– Performance of the onboard electronics
– Atmospheric conditions
– Terrain elevation
– Terrain slope and
– Reflectance characteristics of objects
• The first four factors can result in distortions in
the signal received
GNR607 Lect16-17 B. Krishna Mohan
2
9/6/2019
Reproduced
with
permission
from the
lecture notes
of Prof. John
Jensen,
University of
South
Carolina
3
9/6/2019
Absorption Windows
the lecture notes of Prof. John
Jensen, University of South Carolina
4
9/6/2019
Striping Errors
IRS-1C Panchromatic Sensor
5
9/6/2019
6
9/6/2019
Scanning Mechanism
Reproduced
with
permission
from the
lecture notes
of Prof. John
Jensen,
University of
South
Carolina
7
9/6/2019
Atmospheric Corrections
• Absolute correction
• Relative correction
Histogram Adjustment
• From histogram, find MIN level
• IF MIN ≠0 all pixels in the image may
have received a certain constant intensity
contribution from atmosphere due to
scattering
• Subtract the MIN value from intensity of
each pixel
• Repeat for all bands
8
9/6/2019
Histogram Adjustment
GNR607 Lect16-17 B. Krishna Mohan
9
9/6/2019
Contribution of Atmosphere
Reproduced
with
permission
from the
lecture notes
of Prof. John
Jensen,
University of
South
Carolina
10
9/6/2019
11
9/6/2019
Reproduced
with
permission
from the
lecture
notes of
SPOT Band 3, 8/10/91
Prof. John
Jensen,
University
of South
Carolina
12
9/6/2019
Regression Procedure
SPOT image of 8/10/1991 is selected as the base image
PIFs (wet and dry) were selected for generating the
relationship between the base image and others
The resulted regression equation will be used to
normalize the entire image of 4/4/87 to 8/10/91 for
change detection.
The additive component corrects the path radiance
among dates, and multiplicative term correct the detector
calibration, sun angle, earth-sun distance, atmospheric
attenuation, and phase angle between dates.
• Regression
equations for all
images, all
based on the
SPOT image of
8/10/91
13
9/6/2019
Example of ATCOR
Reproduced with permission from the
lecture notes of Prof. John Jensen,
University of South Carolina
14
9/6/2019
15
9/6/2019
Geometric Distortions
• Nature of geometric distortion
– Positional errors
– Shape of pixel
• Sources of distortion
– Earth curvature (Internal or Systematic error)
– Relative motion between satellite and earth (Internal
or Systematic error)
– Satellite attitude (Random or external error)
– Satellite altitude variations (Random or external error)
– Errors in case of electromechanical scanners
(Random or external error)
GNR607 Lect16-17 B. Krishna Mohan
16
9/6/2019
(h/cosq)
Read section
h (alt.)
2.3 in
Richards and
Jia’s book
Pixel width
Pixel width
GNR607 Lect16-17 B. Krishna Mohan
17
9/6/2019
Altitude Errors
• Remote sensing systems flown at a constant altitude
above ground level result in imagery with a uniform
scale all along the flightline.
• Increasing the altitude will result in smaller-scale
imagery. That is the size of pixel on the ground
increases, lowering the sensor resolution. Decreasing
the altitude of the sensor system will result in larger-
scale imagery, due to reduction in size of pixel on the
ground, increasing the spatial resolution above the
specification value.
Reproduced
with
permission
from the
lecture
notes of
Prof. John
Jensen,
University
of South
Carolina
18
9/6/2019
Attitude Errors
• Prominent Errors
– Roll: Spacecraft vibrates about the direction of
motion
– Pitch: Spacecraft vibrates in a vertical plane
perpendicular to the direction of motion
– Yaw: Spacecraft moves along an angle to the
direction of motion
• Both altitude and attitude errors cause
geometric distortions
Geometric Corrections
• Nature of geometric corrections
– From modeling ALL errors
– Mapping image pixels to a reference coordinate
system with desired pixel size and shape
• Modeling Errors
– Systematic errors can be estimated in advance
– Other errors can be estimated based on telemetry
data
• A combined approach is commonly followed
GNR607 Lect16-17 B. Krishna Mohan
19
9/6/2019
Mathematical Transformation
• Pixel mapping using mathematical
transformations
– A reference coordinate system is established, with
desired pixel size and shape
– Correspondence between pixel in the reference frame
and the image is established
– Pixel value in the reference frame is computed from
the known values in the image
• Result is a corrected image generated in the
desired frame of reference.
20
9/6/2019
21
9/6/2019
22
9/6/2019
23
9/6/2019
24
9/6/2019
25
9/6/2019
Spatial Transformation
Reproduced
with
permission
from the
lecture
notes of
Prof. John
Jensen,
University of
South
Carolina
26
9/6/2019
27
9/6/2019
Reproduced with
permission from
the lecture notes
of Prof. John
Jensen, University
of South Carolina
28
9/6/2019
29
9/6/2019
•
• •
• •
Reference frame
P● •Nearest Neighbor
•Bilinear
D Interpolation
C •Higher order
interpolation
(bicubic)
30
9/6/2019
31
9/6/2019
B
A
P●
C
Bilinear Interpolation
d(C,P)
32
9/6/2019
wA f ( A) wB f ( B ) wC f (C ) wD f ( D)
f ( P)
wA wB wC wD
• The weight wA = 1/d(A,P), where d(A,P) is
the distance between point A and point P.
GNR607 Lect16-17 B. Krishna Mohan
GNR607
Pixel (i,j) Location
Lect16-17
XR, YR B. Krishna Mohan
33
9/6/2019
a = -1 (constant)
34
9/6/2019
35
9/6/2019
36
9/6/2019
37
9/6/2019
38
9/6/2019
Mosaic is the
union image
that contains
both the input
images
39
9/6/2019
Example
Reproduced with
permission from
the lecture notes
of Prof. John
Jensen, University
of South Carolina
Contd…
40