blur.m

来自「matlab的steel金字塔小波分解源代码」· M 代码 · 共 28 行

M
28
字号
% 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 + =
减小字号Ctrl + -
显示快捷键?