igauss.m
来自「这是一个基于MATLAB的机器视觉工具箱,里面用很多非常有价值的的程序」· M 代码 · 共 25 行
M
25 行
%IGAUSS Gaussian smoothing kernel%% M = IGAUSS(W, SIGMA)%% Returns a W x W matrix with a unit amplitude Gaussian function of% standard deviation SIGMA. The Gaussian is centered within the matrix.%% SEE ALSO: ilog conv2%% Copyright (c) Peter Corke, 1999 Machine Vision Toolbox for Matlab% pic 10/96function m = igauss(w, sigma) ww = 2*w + 1; [x,y] = meshgrid(-w:w, -w:w); m = 1/(2*pi) * exp( -(x.^2 + y.^2)/2/sigma^2); m = m / sum(sum(m));
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?