?? convolvegaussian.m
字號:
function convolvedMatrix=convolveGaussian(matrix, filterSize, radius)
% The standard deviation is the parameter that defines the Gaussian in
% fspecial. Exp(-x^2/2/s^2).
% The the n_by_n matrix for the filter. Considering the pixel size
% 0.1microns => 5 pixels is the radius of one particle. 20 sounds
% reasonable for n. So, standard dev=2.5
standardDev=radius/2;
filter=fspecial('gaussian', filterSize, standardDev);
convolvedMatrix=imfilter(double(matrix),filter,'circular','conv');
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -