Canny Edge Detection in image processing

MuhammadNaqi7 30 views 17 slides Oct 15, 2024
Slide 1
Slide 1 of 17
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17

About This Presentation

Canny Edge Detection in image processing and its applications


Slide Content

Edge Detection

•Our goal is to extract
a “line drawing”
representation from
an image
•Useful for recognition:
edges contain shape
information
–invariance

Derivatives
•Edges are locations with high image
gradient or derivative
•Estimate derivative using finite
difference
•Problem?

Smoothing
•Reduce image noise by smoothing with
a Gaussian

Edge orientation
•Would like gradients in all directions
•Approximate:
–Compute smoothed derivatives in x,y
directions
–Edge strength
–Edge normal

Canny Edge Detection
•Compute edge strength and orientation
at all pixels
•“Non-max suppression”
–Reduce thick edge strength responses
around true edges
•Link and threshold using “hysteresis”
–Simple method of “contour completion”

Non-maximum suppression:
Select the single maximum point across the width
of an edge.
Slides by D. Lowe

Non-maximum
suppression
At q, the
value must
be larger
than values
interpolated
at p or r.

Examples:
Non-Maximum Suppression
courtesy of G. Loy
Original imageGradient magnitude
Non-maxima
suppressed
Slide credit: Christopher Rasmussen

fine scale
high
threshold

coarse
scale,
high
threshold

coarse
scale
low
threshold

Linking to the
next edge point
Assume the marked
point is an edge
point.
Take the normal to
the gradient at that
point and use this to
predict continuation
points (either r or s).

Edge Hysteresis
•Hysteresis: A lag or momentum factor
•Idea: Maintain two thresholds k
high and k
low
–Use k
high to find strong edges to start edge
chain
–Use k
low to find weak edges which continue
edge chain
•Typical ratio of thresholds is roughly
k
high / k
low = 2

Example: Canny Edge Detection
courtesy of G. Loy
gap is gone
Original
image
Strong
edges
only
Strong +
connected
weak edges
Weak
edges

Problem?
•Texture
–Canny edge detection responds all over
textured regions
Tags