lprec.m
来自「NONSUBSAMPLED CONTOURLET TRANSFORM FILTE」· M 代码 · 共 34 行
M
34 行
function x = lpdec(c, d, h, g)% LPDEC Laplacian Pyramid Reconstruction%% x = lpdec(c, d, h, g)%% Input:% c: coarse image at half size% d: detail image at full size% h, g: two lowpass filters for the Laplacian pyramid%% Output:% x: reconstructed image%% Note: This uses a new reconstruction method by Do and Vetterli,% "Framming pyramids", IEEE Trans. on Sig Proc., Sep. 2003.%% See also: LPDEC, PDFBREC% First, filter and downsample the detail imagexhi = sefilter2(d, h, h, 'per');xhi = xhi(1:2:end, 1:2:end);% Subtract from the coarse image, and then upsample and filterxlo = c - xhi; xlo = dup(xlo, [2, 2]);% Even size filter needs to be adjusted to obtain % perfect reconstruction with zero shiftadjust = mod(length(g) + 1, 2); xlo = sefilter2(xlo, g, g, 'per', adjust * [1, 1]);% Final combinationx = xlo + d;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?