avw_smooth.m
来自「mri_toolbox是一个工具用来MRI. 来自于SourceForge, 我」· M 代码 · 共 21 行
M
21 行
function avw = avw_smooth(avw,fwhm)
% avw_smooth - Guassian smoothing
%
% Usage: avw = avw_smooth(avw,fwhm)
%
% avw is the Analyze struct returned by avw_read
% fwhm is an integer indicating the voxels to convolve with the Gaussian kernel
% (default = 3, a 3x3x3 convolution)
%
if ~exist('fwhm','var'), fwhm = 3; end
if isempty(fwhm), fwhm = 3; end
fprintf('...gaussian smoothing...'); tic;
avw.img = smooth3(avw.img,'gaussian',fwhm);
t = toc; fprintf('done (%5.2f sec)\n',t);
return
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?