📄 lprec1_old.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -