lpr.m

来自「This toolbox contains Matlab files that 」· M 代码 · 共 40 行

M
40
字号
function x = lpr(y, pfilt)% LPR   Multi-level Laplacian pyramid reconstruction%%	x = lpr(y, pfilt)%% Input:%   y:      output of a Laplacian pyramid in a cell vector%   pfilt:  pyramid filter name (see PFILTERS)%% Output:%   x:      reconstructed signal%% See also: LPD%% Note:     1-D input signals have to be in column vectorsnd = ndims(y{end});% Consider column vectors as 1-D signals if nd == 2 & size(y{end}, 2) == 1    nd = 1;end% Get the pyramidal filters from the filter name[h, g] = pfilters(pfilt);% Decide extension modeswitch pfilt    case {'9-7', '9/7', '5-3', '5/3', 'Burt'}        extmod = 'sym';            otherwise        extmod = 'per';        endx = y{1};for n = 2:length(y)    x = lprec1(x, y{n}, nd, h, g, extmod);end

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?