lprec1_old.m
来自「拉普拉斯分解」· M 代码 · 共 33 行
M
33 行
function x = lprec1_old(c, d, h, g, extmod)% LPREC1_OLD Laplacian pyramid reconstruction using the old method%% x = lprec1_old(c, d, h, g)%% Input:% c: coarse signal at half size% d: detail signal at full size% h, g: two biorthogonal 1-D lowpass filters% extmod: [optional] extension mode (default is 'per')%% Output:% x: reconstructed signal%% See also: LPDEC1if ~exist('extmod', 'var') extmod = 'per';endnd = ndims(c);% Even size filter needs to be adjusted to obtain perfect reconstructionadjust = mod(length(g) + 1, 2); % Upsample and filter the coarse signalp = c;for dim = 1:nd p = upfilt(p, g, dim, extmod, adjust);end% Add with the detail signalx = p + d;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?