Edge Detection
Hao Huy Tran
Computer Graphics and Image Processing
CIS 581 โ€“ Fall 2002
Professor: Dr. Longin Jan Latecki
Edge Detection
โ€ข What are edges in an image?
โ€ข Edge Detection
โ€ข Edge Detection Methods
โ€ข Edge Operators
โ€ข Matlab Program
โ€ข Performance
What are edges in an image?
๏ท Edges are those places
in an image that
correspond to object
boundaries.
๏ท Edges are pixels where
image brightness
changes abruptly.
Brightness vs. Spatial Coordinates
More About Edges
๏ท An edge is a property attached to an
individual pixel and is calculated from the
image function behavior in a neighborhood
of the pixel.
๏ท It is a vector variable (magnitude of the
gradient, direction of an edge) .
๏ท More information about edges can be found
in Dr. Lateckiโ€™s Lecture on Filter.
Image To Edge Map
Edge Detection
๏ท Edge information in an image is found by looking
at the relationship a pixel has with its
neighborhoods.
๏ท If a pixelโ€™s gray-level value is similar to those
around it, there is probably not an edge at that
point.
๏ท If a pixelโ€™s has neighbors with widely varying gray
levels, it may present an edge point.
Edge Detection Methods
๏ท Many are implemented with convolution
mask and based on discrete approximations
to differential operators.
๏ท Differential operations measure the rate of
change in the image brightness function.
๏ท Some operators return orientation
information. Other only return information
about the existence of an edge at each point.
Roberts Operator
๏ท Mark edge point only
๏ท No information about edge orientation
๏ท Work best with binary images
๏ท Primary disadvantage:
๏ฎ High sensitivity to noise
๏ฎ Few pixels are used to approximate the gradient
Roberts Operator (Cont.)
๏ท First form of Roberts Operator
๏ท Second form of Roberts Operator
๏› ๏ ๏› ๏2
2
)
,
1
(
)
1
,
(
)
1
,
1
(
)
,
( c
r
I
c
r
I
c
r
I
c
r
I ๏€ญ
๏€ญ
๏€ญ
๏€ซ
๏€ญ
๏€ญ
๏€ญ
|
)
,
1
(
)
1
,
(
|
|
)
1
,
1
(
)
,
(
| c
r
I
c
r
I
c
r
I
c
r
I ๏€ญ
๏€ญ
๏€ญ
๏€ซ
๏€ญ
๏€ญ
๏€ญ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ฝ
1
0
0
1
1
h ๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ฝ
0
1
1
0
2
h
Sobel Operator
๏ท Looks for edges in both horizontal and vertical
directions, then combine the information into a
single metric.
๏ท The masks are as follows:
Edge Magnitude = Edge Direction =
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ ๏€ญ
๏€ญ
๏€ญ
๏€ฝ
1
2
1
0
0
0
1
2
1
y
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
1
0
1
2
0
2
1
0
1
x
2
2
y
x ๏€ซ ๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
x
y
1
tan
Prewitt Operator
๏ท Similar to the Sobel, with different mask
coefficients:
Edge Magnitude = Edge Direction =
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ ๏€ญ
๏€ญ
๏€ญ
๏€ฝ
1
1
1
0
0
0
1
1
1
y
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
1
0
1
1
0
1
1
0
1
x
2
2
y
x ๏€ซ ๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
x
y
1
tan
Kirsch Compass Masks
๏ท Taking a single mask and rotating it to 8
major compass orientations: N, NW, W, SW,
S, SE, E, and NE.
๏ท The edge magnitude = The maximum value
found by the convolution of each mask with
the image.
๏ท The edge direction is defined by the mask
that produces the maximum magnitude.
Kirsch Compass Masks (Cont.)
๏ท The Kirsch masks are defined as follows:
๏ท EX: If NE produces the maximum value, then the
edge direction is Northeast
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
5
3
3
5
0
3
5
3
3
N
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
3
3
3
5
0
3
5
5
3
W
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
3
3
3
3
0
3
5
5
5
S
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
3
3
3
3
0
5
3
5
5
E
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
3
3
5
3
0
5
3
3
5
NW
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
3
5
5
3
0
5
3
3
3
SW
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
5
5
5
3
0
3
3
3
3
SE
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
5
5
3
5
0
3
5
3
3
NE
Robinson Compass Masks
๏ท Similar to the Kirsch masks, with mask
coefficients of 0, 1, and 2:
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
1
0
1
2
0
2
1
0
1
N
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
0
1
2
1
0
1
2
1
0
W
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
1
2
1
0
0
0
1
2
1
S
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
2
1
0
1
0
1
0
1
2
E
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
1
0
1
2
0
2
1
0
1
NW
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
0
1
2
1
0
1
2
1
0
SW
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ ๏€ญ
๏€ญ
๏€ญ
๏€ฝ
1
2
1
0
0
0
1
2
1
SE
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ฝ
2
1
0
1
0
1
0
1
2
NE
Laplacian Operators
๏ท Edge magnitude is approximated in digital
images by a convolution sum.
๏ท The sign of the result (+ or -) from two
adjacent pixels provide edge orientation and
tells us which side of edge brighter
Laplacian Operators (Cont.)
๏ท Masks for 4 and 8 neighborhoods
๏ท Mask with stressed significance of the
central pixel or its neighborhood
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
0
1
0
1
4
1
0
1
0
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
1
1
1
1
8
1
1
1
1
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
1
2
1
2
4
2
1
2
1
๏ƒบ
๏ƒบ
๏ƒบ
๏ƒป
๏ƒน
๏ƒช
๏ƒช
๏ƒช
๏ƒซ
๏ƒฉ
๏€ญ
๏€ญ
๏€ญ
๏€ญ
2
1
2
1
4
1
2
1
2
Edge Map In Matlab Program
๏ท Implement all methods in this presentation
๏ท Set up edge detection mask(s)
๏ท Use convolution method (filter2 function)
๏ท Calculate edge magnitude
๏ท Show the result of edge map
๏ท No calculation of edge direction
Performance
๏ท Sobel and Prewitt methods are very
effectively providing good edge maps.
๏ท Kirsch and Robinson methods require more
time for calculation and their results are not
better than the ones produced by Sobel and
Prewitt methods.
๏ท Roberts and Laplacian methods are not very
good as expected.
A Quick Note
๏ท Matlabโ€™s image processing toolbox provides
edge function to find edges in an image.
๏ท Edge function supports six different edge-
finding methods: Sobel, Prewitt, Roberts,
Laplacian of Gaussian, Zero-cross, and
Canny.
๏ท Edge is a powerful edge-detection method

Tran_EdgeDetection.ppt

  • 1.
    Edge Detection Hao HuyTran Computer Graphics and Image Processing CIS 581 โ€“ Fall 2002 Professor: Dr. Longin Jan Latecki
  • 2.
    Edge Detection โ€ข Whatare edges in an image? โ€ข Edge Detection โ€ข Edge Detection Methods โ€ข Edge Operators โ€ข Matlab Program โ€ข Performance
  • 3.
    What are edgesin an image? ๏ท Edges are those places in an image that correspond to object boundaries. ๏ท Edges are pixels where image brightness changes abruptly. Brightness vs. Spatial Coordinates
  • 4.
    More About Edges ๏ทAn edge is a property attached to an individual pixel and is calculated from the image function behavior in a neighborhood of the pixel. ๏ท It is a vector variable (magnitude of the gradient, direction of an edge) . ๏ท More information about edges can be found in Dr. Lateckiโ€™s Lecture on Filter.
  • 5.
  • 6.
    Edge Detection ๏ท Edgeinformation in an image is found by looking at the relationship a pixel has with its neighborhoods. ๏ท If a pixelโ€™s gray-level value is similar to those around it, there is probably not an edge at that point. ๏ท If a pixelโ€™s has neighbors with widely varying gray levels, it may present an edge point.
  • 7.
    Edge Detection Methods ๏ทMany are implemented with convolution mask and based on discrete approximations to differential operators. ๏ท Differential operations measure the rate of change in the image brightness function. ๏ท Some operators return orientation information. Other only return information about the existence of an edge at each point.
  • 8.
    Roberts Operator ๏ท Markedge point only ๏ท No information about edge orientation ๏ท Work best with binary images ๏ท Primary disadvantage: ๏ฎ High sensitivity to noise ๏ฎ Few pixels are used to approximate the gradient
  • 9.
    Roberts Operator (Cont.) ๏ทFirst form of Roberts Operator ๏ท Second form of Roberts Operator ๏› ๏ ๏› ๏2 2 ) , 1 ( ) 1 , ( ) 1 , 1 ( ) , ( c r I c r I c r I c r I ๏€ญ ๏€ญ ๏€ญ ๏€ซ ๏€ญ ๏€ญ ๏€ญ | ) , 1 ( ) 1 , ( | | ) 1 , 1 ( ) , ( | c r I c r I c r I c r I ๏€ญ ๏€ญ ๏€ญ ๏€ซ ๏€ญ ๏€ญ ๏€ญ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ฝ 1 0 0 1 1 h ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ฝ 0 1 1 0 2 h
  • 10.
    Sobel Operator ๏ท Looksfor edges in both horizontal and vertical directions, then combine the information into a single metric. ๏ท The masks are as follows: Edge Magnitude = Edge Direction = ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 1 2 1 0 0 0 1 2 1 y ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 1 0 1 2 0 2 1 0 1 x 2 2 y x ๏€ซ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ x y 1 tan
  • 11.
    Prewitt Operator ๏ท Similarto the Sobel, with different mask coefficients: Edge Magnitude = Edge Direction = ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 1 1 1 0 0 0 1 1 1 y ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 1 0 1 1 0 1 1 0 1 x 2 2 y x ๏€ซ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ x y 1 tan
  • 12.
    Kirsch Compass Masks ๏ทTaking a single mask and rotating it to 8 major compass orientations: N, NW, W, SW, S, SE, E, and NE. ๏ท The edge magnitude = The maximum value found by the convolution of each mask with the image. ๏ท The edge direction is defined by the mask that produces the maximum magnitude.
  • 13.
    Kirsch Compass Masks(Cont.) ๏ท The Kirsch masks are defined as follows: ๏ท EX: If NE produces the maximum value, then the edge direction is Northeast ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 5 3 3 5 0 3 5 3 3 N ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 3 3 3 5 0 3 5 5 3 W ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 3 3 3 3 0 3 5 5 5 S ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 3 3 3 3 0 5 3 5 5 E ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 3 3 5 3 0 5 3 3 5 NW ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 3 5 5 3 0 5 3 3 3 SW ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 5 5 5 3 0 3 3 3 3 SE ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 5 5 3 5 0 3 5 3 3 NE
  • 14.
    Robinson Compass Masks ๏ทSimilar to the Kirsch masks, with mask coefficients of 0, 1, and 2: ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 1 0 1 2 0 2 1 0 1 N ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 0 1 2 1 0 1 2 1 0 W ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 1 2 1 0 0 0 1 2 1 S ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 2 1 0 1 0 1 0 1 2 E ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 1 0 1 2 0 2 1 0 1 NW ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 0 1 2 1 0 1 2 1 0 SW ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 1 2 1 0 0 0 1 2 1 SE ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ฝ 2 1 0 1 0 1 0 1 2 NE
  • 15.
    Laplacian Operators ๏ท Edgemagnitude is approximated in digital images by a convolution sum. ๏ท The sign of the result (+ or -) from two adjacent pixels provide edge orientation and tells us which side of edge brighter
  • 16.
    Laplacian Operators (Cont.) ๏ทMasks for 4 and 8 neighborhoods ๏ท Mask with stressed significance of the central pixel or its neighborhood ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ญ 0 1 0 1 4 1 0 1 0 ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ ๏€ญ 1 1 1 1 8 1 1 1 1 ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ญ 1 2 1 2 4 2 1 2 1 ๏ƒบ ๏ƒบ ๏ƒบ ๏ƒป ๏ƒน ๏ƒช ๏ƒช ๏ƒช ๏ƒซ ๏ƒฉ ๏€ญ ๏€ญ ๏€ญ ๏€ญ 2 1 2 1 4 1 2 1 2
  • 17.
    Edge Map InMatlab Program ๏ท Implement all methods in this presentation ๏ท Set up edge detection mask(s) ๏ท Use convolution method (filter2 function) ๏ท Calculate edge magnitude ๏ท Show the result of edge map ๏ท No calculation of edge direction
  • 18.
    Performance ๏ท Sobel andPrewitt methods are very effectively providing good edge maps. ๏ท Kirsch and Robinson methods require more time for calculation and their results are not better than the ones produced by Sobel and Prewitt methods. ๏ท Roberts and Laplacian methods are not very good as expected.
  • 19.
    A Quick Note ๏ทMatlabโ€™s image processing toolbox provides edge function to find edges in an image. ๏ท Edge function supports six different edge- finding methods: Sobel, Prewitt, Roberts, Laplacian of Gaussian, Zero-cross, and Canny. ๏ท Edge is a powerful edge-detection method