Dr. Muhammad Shahzad Department of Computing (DOC), SEECS, NUST
Dr. Muhammad Shahzad Department of Computing (DOC), SEECS, NUST
Muhammad Shahzad
Department Of Computing (DOC), SEECS, NUST
http://seecs.nust.edu.pk/faculty/muhammadshahzad.html
[email protected]
Spring 2019, MSCS-8
▪ Vehicle Re-Identification
▪ Person Re-Identification
▪ Traffic Flow Estimation / Road Traffic Analysis
▪ Semantic Segmentation of 3D Point Cloud
▪ Crop Health Monitoring Using Low Cost Drone
▪ Crop Health Monitoring Using Remote Sensing Data
▪ Forest Change Detection Using Remote Sensing Data
▪ Satellite Drone Data Fusion in Forest/Crop Applications
▪ Buildings Detection in Aerial Imagery
▪ 3D Building Modeling Using Point Cloud
▪ Crop Height Estimation
▪ Age Estimation / Person Identification / Terrain Classification
Using Inertial Sensor Data
▪ …
2
▪ Preliminaries – set theory
▪ Structuring Element(s)
▪ Dilation and erosion
▪ Opening and closing
▪ Hit-or-Miss transformation
▪ Some basic morphological algorithms
▪ Extensions to gray-scale images
3
▪ “Morphology “ – a branch in biology that deals with the form and
structure of animals and plants.
▪ “Mathematical Morphology” –
▪ as a tool for extracting image components, that are useful in the
representation and description of region shape.
4
▪ A tool for extracting image components that are useful in the
representation and description of region shape, such as
▪ boundaries extraction
▪ skeletons
▪ convex hull
▪ morphological filtering
▪ thinning Quick Example
▪ pruning
5
▪ The set space of binary image is Z2
▪ Each element of the set is a 2D vector whose coordinates are the
(x,y) of a black (or white, depending on the convention) pixel in the
image
NOTE:
Set Theory and Logical operations are covered in:
Section 9.1, Chapter # 9, 2nd Edition DIP by Gonzalez
Section 2.6.4, Chapter # 2, 3rd Edition DIP by Gonzalez
6
7
8
9
▪ Operators by Example
10
▪ The translation of a set B by point z = (z1, z2), denoted (B)z, is
defined as
reflection
translation
11
▪ Reflection of a set B, denoted as B^
reflection
translation
12
▪ A structuring element is a small image – used as a moving
window.
13
▪ Fundamentally morphological image processing is very like
spatial filtering.
14
fit hit
15
▪ Erosion of image f by structuring element s is given by f Θ s
16
▪ With A and B as sets in Z2, the erosion of A by B is defined as
17
Steps
▪ For each foreground pixel (which we will call the input pixel)
18
19
Foreground
Background
20
Basics
▪ Effects
▪ Shrinks the size of foreground (1-valued) objects
▪ It does smooth object boundaries
▪ Removes small objects
21
Basics
23
Results
24
Results
25
Exercise 1
26
Exercise 2
▪ Using MATLAB, count the number or circles in the image below
through erosion and object labeling.
27
Exercise 2
28
29
Steps
31
Example
Foreground
Background 32
Example
Here it is assumed
that the center red
dot of the structuring
element should be
within the foreground
(blue square)
33
Basics
▪ Effects
▪ Expands the size of foreground (1-valued) objects.
▪ Smoothes object boundaries.
▪ Closes holes and gaps.
34
Basics
35
Example 1
36
Example 2
37
Example 3
38
39
40
▪ Preliminaries – set theory
▪ Structuring Element(s)
▪ Dilation and erosion
▪ Opening and closing
▪ Hit-or-Miss transformation
▪ Some basic morphological algorithms
▪ Extensions to gray-scale images
41
▪ More interesting morphological operations can be performed
by performing combinations of erosions and dilations
▪ Closing
▪ Also tends to smooth sections of contours but, as opposed to
opening, it generally fuses narrow breaks and long thin gulfs,
eliminates small holes and fills gaps in the contour
42
43
44
45
46
47
Various contents in this presentation have been taken from
different books, lecture notes, and the web. These solely belong
to their owners, and are here used only for clarifying various
educational concepts. Any copyright infringement is not
intended.
48