gaussianBlur.m
资源名称:Snakes.rar [点击查看]
上传用户:zlding2008
上传日期:2013-05-13
资源大小:1914k
文件大小:0k
源码类别:
2D图形编程
开发平台:
Matlab
- function GI = gaussianBlur(I,s)
- % GAUSSIANBLUR blur the image with a gaussian kernel
- % GI = gaussianBlur(I,s)
- % I is the image, s is the standard deviation of the gaussian
- % kernel, and GI is the gaussian blurred image.
- % Chenyang Xu and Jerry L. Prince 6/17/97
- % Copyright (c) 1996-97 by Chenyang Xu and Jerry L. Prince
- M = gaussianMask(1,s);
- M = M/sum(sum(M)); % normalize the gaussian mask so that the sum is
- % equal to 1
- GI = xconv2(I,M);