Lecture 2
Lecture 2
of words.”
ü Visual Information is more powerful than
textual information.
Image
1 pixel
Pixles types
üBinary
üGraylevel
üColour
Binary pixles
üSome images are stored in a binary format. this
i s th e s i m p l e s t fo r m o f re p re s e n t i n g a n
image.
üOften used in optical character recognition.
üIn this representation the foreground is represented
by a 1 and the background by a 0.
ü Bitdepth in this case is 1.
Gay level pixles
Graylevel pixles arusually represented as integer numbers,ranging from
0(black) to the highest possible value for the bit depth of the images.bit depth
for many grayscale images is 8(8bits=1byte of storage for each pixle).this
gives a range of 256 gray levels ranging from 0 to 255.
Colour pixles
In this case depth bit depth refers to the number of bits required to store all
of the available colours. For example 24 bit colour allows for 16.7million
different colours. When this is the case, the number of bits is divided by three
to provide the number of bits for each separate channel(24bits=8R bits+8G
bits+8B bits).
• Common image formats include:
– 1 sample per point (B&W or Grayscale)
– 3 samples per point (Red, Green, and Blue)
– 4 samples per point (Red, Green, Blue, and
“Alpha”means Opacity)
Image
Segmentatio
Enhancemen
n
t
Image Object
Acquisition Recognition
Representati
Problem Domain on &
Description
Colour
Image
Image
Compression
Processing
Image Acquisition
n It is the first process
n The input image will be in digital form
n It involves acquisition of source from real
word images and storing them in
computer for further pre-processing such
as scaling.
Key Stages in Digital Image Processing: Image Aquisition
Morphologic
Image
al
Restoration
Processing
Image
Segmentatio
Enhancemen
n
t
Image Object
Acquisition Recognition
Representati
Problem Domain on &
Description
Colour
Image
Image
Compression
Processing
Image Enhancement
n Process of manipulating an image so that
the result is more suitable than the
original for a specific application
n Enhancement techniques are problem
oriented
n Means a method which is suitable for
enhancing x ray Images may not be the
best approach for enhancing satellite
images
Key Stages in Digital Image Processing:
Image Enhancement
Morphologic
Image
al
Restoration
Processing
Image
Segmentatio
Enhancemen
n
t
Image Object
Acquisition Recognition
Representati
Problem Domain on &
Description
Colour
Image
Image
Compression
Processing
Image Restoration
n Which deals with improving the
appearance of an image.
n Restoration techniques are based on
mathematical or probabilistic models of
image degradation.
n Where as enhancement is based on
human subjective preferences
Key Stages in Digital Image Processing:
Image Restoration
Morphologic
Image
al
Restoration
Processing
Image
Segmentatio
Enhancemen
n
t
Image Object
Acquisition Recognition
Representati
Problem Domain on &
Description
Colour
Image
Image
Compression
Processing
Morphological Processing
n Deals with tools for extracting image
components that are useful in the
representation and description of shape
such as boundaries skeleton etc.
n Input are images and output are attributes
extracted from those images
Key Stages in Digital Image Processing:
Morphological Processing
Morphologic
Image
al
Restoration
Processing
Image
Segmentatio
Enhancemen
n
t
Image Object
Acquisition Recognition
Representati
Problem Domain on &
Description
Colour
Image
Image
Compression
Processing
Segmentation
n Partition of an image into its constituent
parts or objects
n It is one of the most difficult stages in DIP
n More accurate the segmentation the more
likely the recognition to succeed
Key Stages in Digital Image Processing:
Segmentation
Morphologic
Image
al
Restoration
Processing
Image
Segmentatio
Enhancemen
n
t
Image Object
Acquisition Recognition
Representati
Problem Domain on &
Description
Colour
Image
Image
Compression
Processing
Object Recognition
n A pattern class is a family of patterns that
share some common properties
n Pattern classes are denoted by
w1,w2….Ww Where W is the no of class
patterns
n Grouping into separate classes
n That assigns a label to an object based on
its descriptors
Key Stages in Digital Image Processing:
Object Recognition
Morphologic
Image
al
Restoration
Processing
Image
Segmentatio
Enhancemen
n
t
Image Object
Acquisition Recognition
Representati
Problem Domain on &
Description
Colour
Image
Image
Compression
Processing
Representation & Description
n It is the output of the segmentation stage
which usually is raw pixel data consisting
either the boundary of a region
n Description also called feature selection
deals with extracting attributes that result
in some quantitative information of
interest or are basic differentiating once
class of object from another
Key Stages in Digital Image Processing:
Representation & Description
Morphologic
Image
al
Restoration
Processing
Image
Segmentatio
Enhancemen
n
t
Image Object
Acquisition Recognition
Representati
Problem Domain on &
Description
Colour
Image
Image
Compression
Processing
Image Compression
n The technique deals with reducing the
storage required to save an image or the
bandwidth required to transmit it.
Key Stages in Digital Image Processing:
Image Compression
Morphologic
Image
al
Restoration
Processing
Image
Segmentatio
Enhancemen
n
t
Image Object
Acquisition Recognition
Representati
Problem Domain on &
Description
Colour
Image
Image
Compression
Processing
Colour Image Processing
Image
Segmentatio
Enhancemen
n
t
Image Object
Acquisition Recognition
Representati
Problem Domain on &
Description
Colour
Image
Image
Compression
Processing
Cont’d..
Introduction
Basic intensity transformation
Histogram processing
2.36
Introduction
2.37
Cont’d..
images.
2.38
Cont’d..
2.39
Cont’d..
2.40
Cont’d..
2.41
Cont’d..
2.42
Cont,d..
2.43
Cont,d..
2.44
Cont’d..
2.45
Cont’d..
• Negative images are useful for enhancing white or grey detail
embedded in dark regions of an image
2.46
Cont,d..
§ Example: Consider 3X3 8 bit image, the negative of the given
image can be obtained using the equation
Solution
2.47
Logarithmic Transformations
s = c * log(1 + r)
• The log transformation maps a narrow range of low input grey
level values into a wider range of output values
2.48
Cont’d..
2.49
Power Law Transformations
• Power law transformations have the following form
s=c*rγ
• Map a narrow range of dark input values into a wider range of
output values or vice versa
2.50
Cont’d..
2.51
Cont’d..
Example 1.
n Different curves
highlight different
detail
2.52
Cont’d..
Example 2.
n An aerial photo
of a runway is
shown
n Different curves
highlight different detail
2.53
Thresholding Function
2.54
Cont’d..
2.55
Cont’d..
2.56
Cont,d..
2.57
Intensity Level(Gray Level ) Slicing
– Similar to thresholding
2.58
Cont’d..
2.59
Cont’d..
2.60
Cont’d..
2.61
Cont’d..
B = 200.
2.62
Cont’d..
Solution
Intensity Level slicing with background can be
represented mathematically as
2.64
Cont’d..
2.65
Bit Plane Slicing
2.66
Cont’d..
2.67
Cont’d..
Example: Consider a 4 bit input image shown below
Solution
2.68
Cont’d..
0 0 0 0 0 0 1 1 0 0 1 1
0 0 1 1 1 0 0 1 1 0 0 0
1 0 0 0 1 0 0 1 0 0 1 0
2.69
Cont’d..
2.70
Quiz
1. For the following 3-bit image find the negative. Also find the
bit planes for this image and reconstruct the image using two
most significant bits.
3 2 0
4 3 1
5 4 3
2.71
Contrast Stretching
§ When you capture an image by using camera Low contrast
image can happen this is due to different resean
1. poor illumination,
2. lack of dynamic range in the imaging sensor, or
3. even the wrong setting of a lens aperture during image
acquisition.
§ Contrast stretching is a process that expands the range of
intensity levels in the image so that it spans the full intensity
range of the display device.
§ The figure 2.2 shows a typical transformation used for
contrast stretching
2.72
Cont’d..
2.73
Cont’d..
2.74
Cont’d…
2.75
Cont’d..
2.76
Histogram Processing
Grey Levels
2.77
Cont’d..
2.78
Cont’d..
2.79
Cont’d..
2.80
Cont’d..
2.81
Cont’d..
2.82
Cont’d..
2.83
Cont’d..
2.84
Cont’d..
2.85
Cont’d..
2.86
Cont’d…
2.87
Cont’d..
Example1. Perform Linear stretching contrast enhancement for the
given histogram
2.88
Cont’d..
2.89
Cont’d..
2.90
Cont’d..
1.91
Cont’d..
2.92