Image Processing: Dept - of Instrumentation Science University of Pune
Image Processing: Dept - of Instrumentation Science University of Pune
Bhupendra P.Karandikar
Dept.of Instrumentation Science
University of Pune
INTRODUCTION
• Image:
An image is defined in “real world” as a
function of two variables, a(x,y)
Where, a = amplitude(brightness)
x,y= co-ordinate position
Image Analysis
Image Transformation
Image understanding
Image operations
Image analysis
Input : Image
Output : Measurement results
Process: Comparison in under test sample with standard
gauge or best fit circle.
Advantages:
• Non-contact measurements.
• Human being not involved.
Image operations
Image Transformation
Input : Image
Output : Image
Process: Image morphing comparing each pixel of the
image.
Advantages:
• No series of picture frames are required.
• any type of image can be produced.
Image operations
Image Understanding
Input : Image
Output : High level description
Process: Collecting & arranging the Image information
which can be compared with another image.
Advantages:
•Machine generated support to results by human being.
Objective of the seminar
• Featuring the mathematical operations
used for these three operations to the
image
Operated
Image Image
Image/
Grabbing Processing image
tool tool/s information
Digital images
• Image representation:
f(x,y) with origin as the upper left corner.
• Sampling :
- measuring value of image at discrete intervals in space.
- sampling rate
- spatial resolution
• Quantization:
- Grey scale image
- Colour image, f(x,y) is a vector with three components R,G,B. This
can be represented in RGB Colour cube.
Grey scale image
• Human tendency to average brightness over
small areas, so that black dots and their white
background merge and perceived as grey
shade.
• Use of this in black & white printing technology
• Half toning:
The process of generating a binary pattern of
black and white dots from an image.
Patterning Dithering
Digital Half toning technique
• Patterning:
- replacing each pixel by a binary font
- each grey level is assigned a value of
binary font
Dithering
• thresholding the image against a dither
matrix.
• Each pixel is compared with dither matrix
• The pixel becomes white if value exceeds
the threshold or black otherwise.
0 128
D1= example for operations on 8 bit
192 64 images
The Colour cube
1 BLUE CYAN
MAGENTA WHITE
BLACK
1
0 GREEN
1
RED YELLOW
Simple image operations
• Division:
- division of two images for meaningful results
- ratio image can be formed featuring illumination &
surface topography
- remote sensing applications
Simple image operations
• Adjustments of brightness & contrast:
Example:
Image histograms
• The histogram of an image records the
frequency distribution of grey levels in that
image.
• In bin 0, we record the number of times a grey
level of 0 occurs & similarly for other grey levels.
• Useful indication of relative importance of
different grey levels in the image and judging the
requirements of contrast & brightness
Histogram equalization
• Digital images
• Image operations
- Half toning, Dithering, addition,
subtraction, division
- Linear and non-linear mapping
- Histogram and histogram equalization
Histogram equalization
Morphological operations
Introduction
• Describes range of non-linear image
processing techniques dealing with shape
of image
Hitting of an image:
Fitting of an image:
Morphological operations
Fundamental binary operations
• Erosion:
Pixels are eroded from both the inner and outer
boundaries of regions, so the erosion will enlarge
the holes enclosed by a single region as well as
making the gap between different regions larger.
This is ‘fitting of image’.
• Erosion of an image ‘ f ’ by a structuring element ‘ s ’
is given by,
fθs
g (x,y) = 1 if ‘s’ fits ‘f’
= 0 otherwise.
Morphological operations
Erosion operations
• Example of erosion:
• Advantages:
Removal of unwanted, small scale features.
• Disadvantage:
Side-effect on image as reduction in size of features
Morphological operations
Applications of erosion
• Boundary detection:
Eroded image lacks boundary pixels, hence we
can subtract the eroded image from the original
image to get the boundary.
g = f - (f θ s)
Morphological operations
Applications of erosion
Example: Boundary detection
Morphological operations
Dilation operation
• Dilation:
the structuring element ‘hits’ the boundary region
and source image is enlarged, known as ‘hitting
to image’.
Limitations:
• Exhibits unnecessary alteration to the
sharp edges
Morphological operations
Dilation operations
Example:
Morphological operations
Compound operations
• Combinations of erosion, dilation & various
other operations
- Inversion
- opening of an image
- Closing of an image
Presentation for Seminar 4
• Morphological filtering
• Neighborhood operations
- Convolution
- Correlation
• Segmentation
Review of 3 seminar
rd
Segmentation
• Thresholding by a pair:
0 f(x,y) < T1
g(x,y) = 1 T1 ≤ f(x,y) ≤ T2
0 f(x,y) > T2.
Contextual techniques