gaussianblur.m
来自「gvf snake 范例程式,以matlab撰写」· M 代码 · 共 14 行
M
14 行
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);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?