📄 blur.m
字号:
% RES = blur(IM, LEVELS, FILT)%% Blur an image, by filtering and downsampling LEVELS times% (default=1), followed by upsampling and filtering LEVELS times. The% blurring is done with filter kernel specified by FILT (default =% 'binom5'), which can be a string (to be passed to namedFilter), a% vector (applied separably as a 1D convolution kernel in X and Y), or% a matrix (applied as a 2D convolution kernel). The downsampling is% always by 2 in each direction.% Eero Simoncelli, 3/04.function res = blur(im, nlevs, filt)%------------------------------------------------------------%% OPTIONAL ARGS:if (exist('nlevs') ~= 1) nlevs = 1;endif (exist('filt') ~= 1) filt = 'binom5';end%------------------------------------------------------------res = upBlur(blurDn(im,nlevs,filt));
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -