1. The document discusses image segmentation techniques including edge detection methods. It describes segmenting an image into homogeneous regions using edge detection to find discontinuities.
2. Several edge detection methods are described including Robert, Prewitt, Sobel detectors as well as the Canny edge detector. The Canny edge detector uses a multi-stage algorithm to detect edges including filtering, finding gradients, non-maximum suppression, and hysteresis thresholding.
3. The document provides examples of applying different edge detection techniques and algorithms including the steps in the Canny edge detection method.
8. Canny Edge Detector
Characteristics:
1. Criterion 1 : Good Detection : Robustness to noise :The
optimum detector must minimize the probability of false
positive as well as false negative.
2. Criterion 2 : Good Localization : The edge must be as close as
possible to the true edges.
3. Criterion 3 : Strong Response Constraint : Not too many or too
few responses : The detector must return one point only for each
point.
Steps :
1. Smoothing with Gaussian Filter
2. Compute Derivative of filter image
3. Find magnitude & orientation of gradient
4. Apply Non Maxima Suppression
5. Apply Hysteresis Threshold
13. Canny Edge Detector
4.Apply Non Maxima Suppression
Exploring Pixels for
NonMaxima Suppression
D D D
D D
D
D D D D D
Gradient Orientation
D D D
D D
D
D D D D D
Colour Coded Orientation
14. 4.2 1.4 0 0 0
4.2 3.2 1.4 0 0
1.4 4.2 4.5 4 4
0 1.4 3.2 4 4
0 0 0 0 0
Gradient Magnitude
Canny Edge Detector
4.Apply Non Maxima Suppression
Gradient Magnitude with
D D D
D D
D
D D D D D
Colour Coded Orientation
Exploring Pixels for
NonMaxima Suppression
4.3 1.4 0 0 0
4.1 3.3 1.5 0 0
1.3 4.3 4.4 4.1 4.0
0 1.5 3.3 4.0 3.9
0 0 0 0 0
4.3 0 0 0 0
4.1 3.3 0 0 0
0 4.3 4.4 4.1 4.0
0 0 0 0 0
0 0 0 0 0
Additive Noise : Dithering
Gradient Magnitude after
NonMaxima Suppression
19. Canny Edge Detector
2 2 2 2 2 2 2
1 2 2 2 2 2 2
1 1 1 2 2 2 2
1 1 1 1 2 2 2
1 1 1 1 1 1 2
1 1 1 1 1 1 1
1 1 1 1 1 1 1
-4 -3 -1 0 0
-3 -4 -3 -1 0
0 -1 -3 -4 -3
0 0 -1 -3 -4
0 0 0 0 -1
2 1 1 0 0
1 2 3 1 0
0 1 3 2 1
0 0 1 1 2
0 0 0 0 1
I
Class Work Find Edge Magnitude & Edge Orientation for Image I. Apply
Non Maxima Suppression.
4.5 3.2 1.4 0 0
3.2 4.5 4.2 1.4 0
0 1.4 4.2 4.5 3.2
0 0 1.4 3.2 4.5
0 0 0 0 1.4
Class Work Solution
D D
D
D
D D
D D D D
Magnitude Orientation
20. Canny Edge Detector
2 2 2 2 2 2 2
1 2 2 2 2 2 2
1 1 1 2 2 2 2
1 1 1 1 2 2 2
1 1 1 1 1 1 2
1 1 1 1 1 1 1
1 1 1 1 1 1 1
I
Class Work Solution
4.5 3.2 1.4 0 0
3.2 4.5 4.2 1.4 0
0 1.4 4.2 4.5 3.2
0 0 1.4 3.2 4.5
0 0 0 0 1.4
D D
D
D
D D
D D D D
Edge Magnitude Edge Orientation
Apply Non Maxima Suppression.
D D
D
D
D D
D D D D
Colour Coded Edge Orientation
21. Canny Edge Detector Class Work Solution
2 2 2 2 2 2 2
1 2 2 2 2 2 2
1 1 1 2 2 2 2
1 1 1 1 2 2 2
1 1 1 1 1 1 2
1 1 1 1 1 1 1
1 1 1 1 1 1 1
4.5 3.2 1.4 0 0
3.2 4.5 4.2 1.4 0
0 1.4 4.2 4.5 3.2
0 0 1.4 3.2 4.5
0 0 0 0 1.4
D D
D
D
D D
D D D D
I Edge Magnitude Edge Orientation
D D
D
D
D D
D D D D
4.5 0 0 0 0
0 4.5 4.2 0 0
0 0 4.2 4.5 0
0 0 0 0 4.5
0 0 0 0 1.4
Colour Coded Edge Orientation
Edge Magnitude after Non Maxima Suppression
23. Representation & Description
R1 R2
R3
R4
Result of Segmentation
External Characteristics :
Primal Focus is Shape Characteristics
Representation : Boundary
Description as Features –
Length, Orientation of st lines,
No of concavities
Internal Characteristics :Pixel
Primal Focus is Colour, Texture
Representation: Pixel
Description as Features :
Histogram, Covariance, Co-occurrence
Ideally Features to be Translation,
Rotation & Scale Invariant
24. Boundary Following
Moore Boundary Tracking Algorithm
No L T CT O/B Boundary
Points
1 (1,1) O (1,1) F
2 (1,0) B
3 (0,0) B
4 (0,1) B
5 (0,2) B
6 (0,2) (1,2) O (1,2) S
7 (0,2) B
8 (0,3) B
9 (0,3) (1,3) O (1,3)
10 (0,3) B
11 (0,4) B
12 (1,4) B
13 (2,4) B
14 (2,4) (2,3) O (2.3)
15 (2,4) B
16 (3.4) B
17 (3,4) (3,3) O (3,3)
18 (3.4) B
19 (4,4) B
20 (4.3) B
0 1 2 3 4
0
1
2
3
4
No L T CT O/B Boundary
Points
21 (4,2) B
22 (3.2) B
23 (3,2) (2,2) O (2,2)
24 (3,2) B
25 (3,1) B
25 (2,1) B
26 (2.1) (1,1) O (1,1) =F
28 (2,1) B
29 (2,0) B
30 (1,0) B
31 (0,0) B
32 (0,1) B
33 (0,2) B
34 (1,2) O (1,2)=S
35 T
Current Traversal CT
Last Traversal LT
Object/Background Point O/
Termination T
25. R
Boundary Following
Determine the Traversal Table & Boundary Points for a
Region R in Fig a by Moore Boundary Tracking Algorithm
No L T CT O/B Boundary
Points
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
0 1 2 3
0
1
2
3
Fig a
ClassWork
26. ClassWork Solution Boundary Following
No L T CT O/B Boundary
Points
1 (1,0) (1.1) O (1,1) F
2 (1,0) B
3 (0,0) B
4 (0,1) B
5 (0,2) B
6 (0,2) (1,2) O (1,2) S
7 (0,2) B
8 (0,3) B
9 (1,3) B
10 (2,3) B
11 (2,3) (2,2) O (2,2)
12 (2,3) B
13 (3.3) B
14 (3,2) B
15 (3.1) B
16 (3,1) (2,1) O (2,1)
17 (3,1) B
18 (3,0) B
19 (2,0) B
20 (1,0) B
0 1 2 3
0
1
2
3
Fig a
No L T CT O/B Boundary
Points
21 (1,0) (1,1) O (1,1) = F
22 (1,0) B
23 (0,0) B
24 (0,1) B
25 (0,2) B
25 (0,2) (1,2) O (1,2) =S
26 T
Determine the Traversal Table & Boundary Points for a
Region R in Fig a by Moore Boundary Tracking Algorithm