计算机视觉课件(4)

合集下载
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

2 f
2 f
2 f
x 2 y 2
In discrete computation:
f 2 f [i, j 1] 2 f [i, j] f [i, j 1]
x 2 f 2
f [i 1, j] 2 f [i, j] f [i 1, j] y 2
ii) Edge Enhancement: Design a filter corresponding to edges; that is, the filter’s output is large at edge pixel and low elsewhere, so edge an be located as the maximum in filter’s output.
the edge. In computation, gradient is approximated
by:
Gx f [i, j 1] f [i, j]
Gy f [i, j] f [i 1, j]
GX = -1 1 for symmetry,
1 GY = -1
-1 1 GX = -1 1
11 GY = -1 -1
edge direction: perpendicular to edge normal, and therefore tangent to the contour.
edge position: the pixel position where the edge is located.
edge strength: the measurement of local image contrast, e.g., intensity variation along an edge normal.
iii) Edge Location: Decide which local maximum in the filter’s output are edges and which are just caused by noise.
3) Edge descriptions:
edge normal: the direction (unit vector) of the maximum intensity variation at edge pixels. Edge normal is perpendicular to the edge.
Course 5 Edge Detection
Course 5 Edge Detection
Image Features: local, meaningful, detectable parts of an image.
edge corner texture …
Edges: Edges points, or simply edges, are pixels at or around which the image values undergo a sharp variation.
2) Roberts Operator
Gx f [i, j] f [i 1, j 1] Gy f [i 1, j] f [i, j 1] G( f [i, j]) G x G y ;
3) Sobel Operator: — avoid having the gradient calculated about an interpolated point between pixels.
1) Goal: Given an image corrupted by acquisition noise, locate the edges most likely to be generated by scene elements not by noise.
2) Operations required in edge detection
i) Noise smoothing: suppress as much of the image noise as possible, without destroying the edges. In the absence of specific information of image, assume the noise white and Gaussian.
Sx (a2 ca3 a4 ) (a0 ca7 a6 ) S y (a0 ca1 a2 ) (a6 ca5 a4 )
where c is constant,
a0 Biblioteka Baidu7 a6
e.g., c = 2
-1 0 1
Sx= -2 0 2
-1 0 1
And,
M
S
2 x
S
2 y
a1 a2 [i,j] a3 a5 a4
2. Gradient Based Edge Detection:
1) Gradient:
f
f
(x,
y)
G[
f
(
x,
y)]
Gx G y
fx
y
Magnitude
G(x, y)
G
2 x
G
2 y
Direction
(x,
y)
tan
1
G (
y
)
Gx
Note:
The direction of edge normal is perpendicular to
Usually, edges are classified as : step edge, ridge edge roof edge.
We will emphasize on step edge detection in our discussions.
1. Edge detection:
121
Sy= 0 0 0
-1 -2 -1
3. LapLacian Operator
----Second derivative of a smoothed step edge gives a function that crosses zero at the location of the edge. The second derivative of a 2D function is Laplacian.
相关文档
最新文档