Professional Documents
Culture Documents
Week 7 Lecture Material - Watermark PDF
Week 7 Lecture Material - Watermark PDF
Week 7 Lecture Material - Watermark PDF
WEEK 7: ROBOTICS
1
EL
Topic 7: Robot Vision
2
Methods of Pre-Processing
EL
a. Masking
PT
Pre-processed
intensity operator
Input
intensity
3
EL
f(x,y) : Light intensity value at pixel Q y
x
f(x-1,y-1) f(x-1,y) f(x-1,y+1)
f(x,y-1) Q: f(x,y) f(x,y+1)
f(x+1,y-1) f(x+1,y) f(x+1,y+1)
PT
Let us consider the pixel Q having the coordinates (x,y). It has two
horizontal and two vertical and four diagonal neighbors.
4
EL
Let us consider a 3x3 mask with coefficients W1, W2, W3, W4, W5, W6,
W7, W8,and W9.
W1 W2 W3 -1 -1 -1
W4 W5 W6 -1 +8 -1
W7
PTW8 W9 -1 -1 -1
Example of a 3x3 mask
5
EL
𝑷𝑷 𝒙𝒙, 𝒚𝒚 = 𝑶𝑶[𝒇𝒇(𝒙𝒙, 𝒚𝒚)]
= 𝑾𝑾𝟏𝟏𝒇𝒇 𝒙𝒙 − 𝟏𝟏, 𝒚𝒚 − 𝟏𝟏 + 𝑾𝑾𝟐𝟐𝒇𝒇 𝒙𝒙 − 𝟏𝟏, 𝒚𝒚 + 𝑾𝑾𝟑𝟑𝒇𝒇 𝒙𝒙 − 𝟏𝟏, 𝒚𝒚 + 𝟏𝟏
+ 𝑾𝑾𝟒𝟒𝒇𝒇 𝒙𝒙, 𝒚𝒚 − 𝟏𝟏 + 𝑾𝑾𝟓𝟓𝒇𝒇 𝒙𝒙, 𝒚𝒚 + 𝑾𝑾𝟔𝟔𝒇𝒇 𝒙𝒙, 𝒚𝒚 + 𝟏𝟏 + 𝑾𝑾𝟕𝟕𝒇𝒇 𝒙𝒙 + 𝟏𝟏, 𝒚𝒚 − 𝟏𝟏
PT
+𝑾𝑾𝟖𝟖𝒇𝒇 𝒙𝒙 + 𝟏𝟏, 𝒚𝒚 + 𝑾𝑾𝟗𝟗𝒇𝒇 𝒙𝒙 + 𝟏𝟏, 𝒚𝒚 + 𝟏𝟏
6
b. Neighborhood Averaging
EL
Here, p(x,y) is calculated by averaging the intensity values of the
pixels contained in a pre-defined neighborhood of f(x,y).
𝟏𝟏
PT
𝒑𝒑 𝒙𝒙, 𝒚𝒚 = � 𝒇𝒇(𝒏𝒏, 𝒎𝒎)
𝑹𝑹
𝒏𝒏,𝒎𝒎 ∈ 𝑺𝑺
Where, S is the set of pixels lying in the neighbourhood of (x,y)
including itself and R is the total number of neighbourhood pixels
including itself.
7
EL
c. Median Filtering
PT
then determine the median value. This median value is going to
replace the intensity value at Q.
8
Step 5: Thresholding
EL
• To get clear distinction between objects and the background,
let T be the threshold intensity
0 0 0 0 0 0 Y
𝟏𝟏, 𝒊𝒊𝒊𝒊 𝒑𝒑 𝒙𝒙, 𝒚𝒚 > 𝑻𝑻 0 0 1 1 1 0
𝒈𝒈 𝒙𝒙, 𝒚𝒚 = �
𝟎𝟎, 𝒊𝒊𝒊𝒊 𝒑𝒑 𝒙𝒙, 𝒚𝒚 ≤ 𝑻𝑻
0 0 1 1 0 0
PT
For the black background and white
object, 1 corresponds to object and
0 indicates the background.
0
0
X
0
0
1
1
1
0
0
0
0
0
9
Step 6: Edge detection
EL
• To detect the edge of an object
• Gradient operator
𝝏𝝏𝝏𝝏�
PT 𝑮𝑮 𝒑𝒑 𝒙𝒙, 𝒚𝒚 =
𝑮𝑮𝒙𝒙
𝑮𝑮𝒚𝒚
= 𝝏𝝏𝝏𝝏
𝝏𝝏𝝏𝝏
�𝝏𝝏𝒚𝒚
10
EL
Masks used for Gradient operator
-1 -2 -1 -1 0 1
0 0 0 -2 0 2
1
PT
2
𝑮𝑮𝒙𝒙
1 -1 0
𝑮𝑮𝒚𝒚
1
11
• Laplace operator
EL
𝝏𝝏𝟐𝟐 𝒑𝒑 𝝏𝝏𝟐𝟐 𝒑𝒑
𝑳𝑳 𝒑𝒑 𝒙𝒙, 𝒚𝒚 = 𝟐𝟐 + 𝟐𝟐
𝝏𝝏𝒙𝒙 𝝏𝝏𝒚𝒚
0 1 0
PT 1
0
-4
1
1
0
12
Edge Detection (contd.)
EL
• Light object on dark background
PT
13
Boundary Descriptors
EL
Chain Codes – used to represent the boundary of an object by
a set of straight line segments of specified length and direction.
PT
4-directional chain code 8-directional chain code
14
EL
Example:
PT
Chain code: 11030010332222
15
Signature
EL
• One dimensional functional representation of a boundary
Examples:
PT
16
EL
PT
Note: To identify multiple objects present in an image, we consider
Compactness = (perimeter2/ area)
17
EL
Topic 8: Robot Motion Planning
18
EL
Aim
PT
19
EL
Robot Motion Planning
PT
Manipulation Navigation
20
PT
21
EL
Sequence of Robotic Action
EL
Task identification Motion Planning Kinematics
Trajectory planning
PT
Motor action Control scheme Dynamics
22
EL
Structured
environment
Environment
Un-structured
PT environment
23
EL
Motion Planning Approaches
PT
information) planning with incomplete
information)
24
Motion Planning Schemes
EL
Traditional schemes/ Algorithmic Approaches Non-Traditional schemes (using
soft computing)
(i) Fuzzy logic – based
(ii) Neural networks – based
Graph-based methods Analytical Approaches approaches
(i) Visibility graph (i) Potential Field Approach
(ii)
(iii)
(iv)
(v)
PT
Voronoi diagram
Cell decomposition
Tangent graph
Accessibility graph
(ii)
(iii)
(iv)
(v)
(vi)
Path Velocity Decomposition
Incremental Planning
Probabilistic Approach
Relative Velocity Approach
Reactive Control Strategies (Behavior-
Based Robotics)
25
Visibility Graph (Nilsson 1969)
EL
It connects those vertices of obstacles, which are visible from
one another.
PT
26
Voronoi Diagram (Dunlaing et al., 1986)
Represents the locus of points those are equidistant from at
EL
least two of the boundaries (obstacle).
PT
27
Cell Decomposition (Lozano Perez, 1983)
Configuration space (C-space)
EL
PT
28
Cell Decomposition (contd.)
EL
Robot’s free area is divided into a number of small regions called
cells. A connectivity graph is then constructed and searched.
PT
29
Tangent Graph (Liu & Arimoto 1991)
EL
Tangents are drawn from the starting point to the visible
obstacle and then from one obstacle to another
A path comprises of tangents and circular arcs
PT
Complexity: O (N2), where N is the number of control points
30
EL
G
O3
PT
S
O1
O2
31
Approaches to Solve Moving Obstacle Problems
EL
Path Velocity Decomposition (Kant and Zucker, 1984)
PT
(ii) Velocity planning problem (VPP) – to plan the velocity of the
robot along the above planned path to avoid collision with
moving obstacles
32
EL
Drawbacks
PT
As there is a sudden change of velocity of the robot, it will
have jerky motion, which is not desirable.
33
Accessibility Graph (Fujimura and samet, 1988)
EL
Generalization of the visibility graph
PT
which is solved using visibility graph
34
Incremental Planning Scheme (Slack & Miller, 1987)
EL
Plan a collision – free path based on
predicted position of obstacles
35
EL
Follow the path until it becomes
invalid
PT destination
36
EL
Relative Velocity Scheme
PT
Dynamic motion planning problem is converted into several
static problems
37
EL
Several static problems are then converted into a single
problem by means of a vector transformation
PT
avoids collision with all the moving obstacles
38
Potential Field Approach (Khatib, 1986)
EL
PT
39
EL
Speed of the robot α Fres
PT
40
Attractive Potential
EL
1 2
U att ( R) = ξ d goal ( R), if parabolic
2
= ξ d goal ( R), if conic-well
R
PT dgoal (R)
41
Repulsive Potential
EL
U rep ( R) = 0
PT
42
EL
1 1 1 2
η ( − ) , if P(R)<Po
U rep ( R) = 2 P( R) Po
0, if P(R) ≥ P
PT
o
43
Drawbacks
EL
Solution depends on the chosen potential function
Chance of local minima problem – when the attractive force
is balanced by the repulsive force
PT
44
EL
When the robot travels in a narrow corridor, it
experiences repulsive forces simultaneously from the
opposite sides, and consequently the motion becomes
unstable
PT
Unable to find a path among closely spaced
obstacles
45
Reactive Control Strategy (Brooks, 1986)
EL
Robotic action is decomposed into some independent
primitive behaviours like move-to-goal, avoid-obstacle,
etc.
Basic behaviours are controlled at different layers of
PT
control architecture
Basic behaviours are coordinated by a central
mechanism (Behaviour-Based Robotics)
46
EL
Drawbacks
PT
problem. It requires a large amount of computer memory
47
EL
Computational Complexity
PT
obstacles in 2D plane with bounded velocity is NP-hard.
48
EL
Reif and Sharir (1985) –
PT
b) Motion planning among moving obstacles in 3-D
space with velocity bound is PSPACE-hard
49
Drawbacks of the Traditional Methods of Motion Planning
EL
Traditional methods are computationally expensive even
for a simple problem
PT
As most of the algorithms do not have an optimization
module, the generated path may not be optimal in any
sense.
50
EL
So, there is still a need for the development of an efficient,
versatile and computationally tractable algorithm for solving
the motion planning problems of robots.
PT
51