SlidingWindowFilters幻灯片

上传人:E**** 文档编号:89707551 上传时间:2019-05-31 格式:PPT 页数:23 大小:199KB
返回 下载 相关 举报
SlidingWindowFilters幻灯片_第1页
第1页 / 共23页
SlidingWindowFilters幻灯片_第2页
第2页 / 共23页
SlidingWindowFilters幻灯片_第3页
第3页 / 共23页
SlidingWindowFilters幻灯片_第4页
第4页 / 共23页
SlidingWindowFilters幻灯片_第5页
第5页 / 共23页
点击查看更多>>
资源描述

《SlidingWindowFilters幻灯片》由会员分享,可在线阅读,更多相关《SlidingWindowFilters幻灯片(23页珍藏版)》请在金锄头文库上搜索。

1、Sliding Window Filters,Longin Jan Latecki lateckitemple.edu October 9, 2002,Linear Image Filters Linear operations calculate the resulting value in the output image pixel f(i,j) as a linear combination of brightness in a local neighborhood of the pixel h(i,j) in the input image. This equation is cal

2、led to discrete convolution:,Function w is called a convolution kernel or a filter mask. In our case it is a rectangle of size (2a+1)x(2b+1).,Exercise: Compute the 2-D linear convolution of the following two signal X with mask w. Extend the signal X with 0s where needed.,Averaging of brightness valu

3、es is a special case of discrete convolution. For a 3 x 3 neighborhood the convolution mask w is,Applying this mask to an image results in smoothing. Matlab example program is filterEx1.m Local image smoothing can effectively eliminate impulsive noise or degradations appearing as thin stripes, but d

4、oes not work if degradations are large blobs or thick stripes.,Image smoothing = image blurring,The significance of the central pixel may be increased to better reflect properties of Gaussian noise:,Edge detectors locate sharp changes in the intensity function edges are pixels where brightness chang

5、es abruptly.,Calculus describes changes of continuous functions using derivatives; an image function depends on two variables - partial derivatives. A change of the image function can be described by a gradient that points in the direction of the largest growth of the image function. An edge is a pr

6、operty 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 and direction,The gradient direction gives the direction of maximal growth of the function, e.g., from black (f(i,j)=0) to whit

7、e (f(i,j)=255). This is illustrated below; closed lines are lines of the same brightness. The orientation 0 points East.,Edges are often used in image analysis for finding region boundaries. Boundary and its parts (edges) are perpendicular to the direction of the gradient.,The gradient magnitude and

8、 gradient direction are continuous image functions, where arg(x,y) is the angle (in radians) from the x-axis to the point (x,y).,Sometimes we are interested only in edge magnitudes without regard to their orientations. The Laplacian may be used. The Laplacian has the same properties in all direction

9、s and is therefore invariant to rotation in the image.,The Laplace operator is a very popular operator approximating the second derivative which gives the gradient magnitude only.,The Laplacian is approximated in digital images by a convolution sum. A 3 x 3 mask for 4-neighborhoods and 8-neighborhoo

10、d,A Laplacian operator with stressed significance of the central pixel or its neighborhood is sometimes used. In this approximation it loses invariance to rotation,A digital image is discrete in nature, derivatives must be approximated by differences. The first differences of the image g in the vert

11、ical direction (for fixed i) and in the horizontal direction (for fixed j) n is a small integer, usually 1.,The value n should be chosen small enough to provide a good approximation to the derivative, but large enough to neglect unimportant changes in the image function.,Gradient operators can be di

12、vided into three categories I. Operators approximating derivatives of the image function using differences. rotationally invariant (e.g., Laplacian) need one convolution mask only. Individual gradient operators that examine small local neighborhoods are in fact convolutions and can be expressed by c

13、onvolution masks. approximating first derivatives use several masks, the orientation is estimated on the basis of the best matching of several simple patterns. Operators which are able to detect edge direction. Each mask corresponds to a certain direction.,II. Operators based on the zero crossings o

14、f the image function second derivative (e.g., Marr-Hildreth or Canny edge detector).,III. Operators which attempt to match an image function to a parametric model of edges. Parametric models describe edges more precisely than simple edge magnitude and direction and are much more computationally inte

15、nsive. The categories II and III will not be covered here;,Roberts operator The magnitude of the edge is computed as,The primary disadvantage of the Roberts operator is its high sensitivity to noise, because very few pixels are used to approximate the gradient.,Prewitt operator The Prewitt operator

16、approximates the first derivative, similarly to the Sobel, Kirsch, Robinson and some other operators that follow. Operators approximating first derivative of an image function are sometimes called compass operators because of the ability to determine gradient direction. The gradient is estimated in eight (for a 3 x 3 convolution mask) possible directions. Larger masks are possible. The direction of the gradient is given by the mask giving maximal response. This is valid for all follo

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 高等教育 > 大学课件

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号