SlideShare a Scribd company logo
8
Most read
9
Most read
12
Most read
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

More Related Content

DOC
Seminar report on edge detection of video using matlab code
PDF
Published paper of Advances in Vision Computing: An International Journal (AVC)
PDF
Edge Detection Algorithm for Yoruba Character Recognition
PDF
Published Paper of Advances in Vision Computing: An International Journal (AVC)
PDF
EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION
PDF
EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION
PDF
EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION
PDF
EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION
Seminar report on edge detection of video using matlab code
Published paper of Advances in Vision Computing: An International Journal (AVC)
Edge Detection Algorithm for Yoruba Character Recognition
Published Paper of Advances in Vision Computing: An International Journal (AVC)
EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION
EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION
EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION
EDGE DETECTION ALGORITHM FOR YORUBA CHARACTER RECOGNITION

Similar to Tran_EdgeDetection.ppt (20)

PDF
Advances in Vision Computing: An International Journal (AVC)
PDF
ALGORITHM AND TECHNIQUE ON VARIOUS EDGE DETECTION: A SURVEY
PPT
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge Detection
PDF
Real time Canny edge detection
PDF
Denoising and Edge Detection Using Sobelmethod
PPTX
Edge detection.pptx
PPTX
08_Lecture -Chapter 10- Image Segmentation_Part I_Edge Detection.pptx
PPT
MODULE_4_part1_Intro_image-segmentation.ppt AAAAAAAAAAAAAAAAAAAAAAA
PPT
MODULE_4_part1_Intro_image-segzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
PDF
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
PDF
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
PPT
Michal Erel's SIFT presentation
PDF
Study and Comparison of Various Image Edge Detection Techniques
PDF
Ijarcet vol-2-issue-7-2246-2251
PDF
Ijarcet vol-2-issue-7-2246-2251
PDF
Ed34785790
PDF
Edge detection by modified otsu method
PDF
EDGE DETECTION BY MODIFIED OTSU METHOD
PPT
Imageddddddddddddddddddddddddddddddddddd_Filter.ppt
PDF
EDGE Detection Filter for Gray Image and Observing Performances
Advances in Vision Computing: An International Journal (AVC)
ALGORITHM AND TECHNIQUE ON VARIOUS EDGE DETECTION: A SURVEY
Edge Drawing - An Heuristic Approach to Robust Real-Time Edge Detection
Real time Canny edge detection
Denoising and Edge Detection Using Sobelmethod
Edge detection.pptx
08_Lecture -Chapter 10- Image Segmentation_Part I_Edge Detection.pptx
MODULE_4_part1_Intro_image-segmentation.ppt AAAAAAAAAAAAAAAAAAAAAAA
MODULE_4_part1_Intro_image-segzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
EDGE DETECTION IN RADAR IMAGES USING WEIBULL DISTRIBUTION
Michal Erel's SIFT presentation
Study and Comparison of Various Image Edge Detection Techniques
Ijarcet vol-2-issue-7-2246-2251
Ijarcet vol-2-issue-7-2246-2251
Ed34785790
Edge detection by modified otsu method
EDGE DETECTION BY MODIFIED OTSU METHOD
Imageddddddddddddddddddddddddddddddddddd_Filter.ppt
EDGE Detection Filter for Gray Image and Observing Performances
Ad

More from TitleTube (6)

PPT
P6-Algoritma-Dasar.ppt
PPT
P6-Algoritma-Dasar.ppt
PPTX
Review Jurnal.pptx
PPT
P6-Algoritma-Dasar.ppt
PDF
20200428135045cfbc718e2c.pdf
PPT
Tran_EdgeDetection.ppt
P6-Algoritma-Dasar.ppt
P6-Algoritma-Dasar.ppt
Review Jurnal.pptx
P6-Algoritma-Dasar.ppt
20200428135045cfbc718e2c.pdf
Tran_EdgeDetection.ppt
Ad

Recently uploaded (20)

PDF
Introduction-to-World-Schools-format-guide.pdf
PPTX
Orthtotics presentation regarding physcial therapy
PPTX
Entrepreneur intro, origin, process, method
PDF
ART & DESIGN HISTORY OF VEDIC CIVILISATION.pdf
PPT
robotS AND ROBOTICSOF HUMANS AND MACHINES
PDF
Test slideshare presentation for blog post
PDF
Pongal 2026 Sponsorship Presentation - Bhopal Tamil Sangam
PPTX
Causes of Flooding by Slidesgo sdnl;asnjdl;asj.pptx
PPTX
Acoustics new for. Sound insulation and absorber
PPTX
DOC-20250430-WA0014._20250714_235747_0000.pptx
PPTX
rapid fire quiz in your house is your india.pptx
PDF
The Basics of Presentation Design eBook by VerdanaBold
PPT
aksharma-dfs.pptgfgfgdfgdgdfgdfgdgdrgdgdgdgdgdgadgdgd
PPT
EthicsNotesSTUDENTCOPYfghhnmncssssx sjsjsj
PPTX
UNIT III - GRAPHICS AND AUDIO FOR MOBILE
PPTX
EDP Competencies-types, process, explanation
PPTX
a group casestudy on architectural aesthetic and beauty
PDF
Urban Design Final Project-Context
PDF
intro_to_rust.pptx_123456789012446789.pdf
PDF
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf
Introduction-to-World-Schools-format-guide.pdf
Orthtotics presentation regarding physcial therapy
Entrepreneur intro, origin, process, method
ART & DESIGN HISTORY OF VEDIC CIVILISATION.pdf
robotS AND ROBOTICSOF HUMANS AND MACHINES
Test slideshare presentation for blog post
Pongal 2026 Sponsorship Presentation - Bhopal Tamil Sangam
Causes of Flooding by Slidesgo sdnl;asnjdl;asj.pptx
Acoustics new for. Sound insulation and absorber
DOC-20250430-WA0014._20250714_235747_0000.pptx
rapid fire quiz in your house is your india.pptx
The Basics of Presentation Design eBook by VerdanaBold
aksharma-dfs.pptgfgfgdfgdgdfgdfgdgdrgdgdgdgdgdgadgdgd
EthicsNotesSTUDENTCOPYfghhnmncssssx sjsjsj
UNIT III - GRAPHICS AND AUDIO FOR MOBILE
EDP Competencies-types, process, explanation
a group casestudy on architectural aesthetic and beauty
Urban Design Final Project-Context
intro_to_rust.pptx_123456789012446789.pdf
UNIT 1 Introduction fnfbbfhfhfbdhdbdto Java.pptx.pdf

Tran_EdgeDetection.ppt

  • 1. Edge Detection Hao Huy Tran Computer Graphics and Image Processing CIS 581 – Fall 2002 Professor: Dr. Longin Jan Latecki
  • 2. Edge Detection • What are edges in an image? • Edge Detection • Edge Detection Methods • Edge Operators • Matlab Program • Performance
  • 3. 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
  • 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.
  • 6. 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.
  • 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  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
  • 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  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
  • 11. 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
  • 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  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
  • 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 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
  • 18. 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.
  • 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