perform_convolution.m
来自「张量投票在matlab环境下的仿真。球型张量及棒型张量的仿真」· M 代码 · 共 16 行
M
16 行
function y = perform_convolution(x,h, bound)
% perform_convolution - compute convolution with centered filter.
%
% y = perform_convolution(x,h,bound);
%
% The filter 'h' is centred at 0 for odd
% length of the filter, and at 1/2 otherwise.
%
% This works either for 1D or 2D convolution.
% For 2D the matrix have to be square.
%
% 'bound' is either 'per' (periodic extension)
% or 'sym' (symmetric extension).
%
% Copyright (c) 2004 Gabriel Peyr
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?