Code covered by the BSD License
-
SNR(in, est)
-
filtdn(x, f, dim, extmod, shi...
FILTDN Filter and downsample (by 2) along a dimension
-
imageshow(im, range)
Show image with proper scalling
-
lp2vec(y)
LP2VEC Convert the output of the LP into a vector form
-
lpd(x, pfilt, nlev)
LPD Multi-level Laplacian pyramid decomposition
-
lpdec1(x, h, g, extmod)
LPDEC1 One-level Laplacian pyramid decomposition
-
lpr(y, pfilt)
LPR Multi-level Laplacian pyramid reconstruction
-
lpr_old(y, pfilt)
LPR_OLD Multi-level Laplacian pyramid reconstruction using the old method
-
lprec1(c, d, h, g, extmod)
LPREC1 One-level Laplacian pyramid reconstruction
-
lprec1_old(c, d, h, g, extmod)
LPREC1_OLD Laplacian pyramid reconstruction using the old method
-
pfilters(fname)
PFILTERS Generate filters for the Laplacian pyramid
-
upfilt(x, f, dim, extmod, shi...
UPFILT Upsample (by 2) and filter along a dimension
-
vec2lp(c, s)
VEC2LP Convert the vector output back to the LP cell array form
-
lpdemo.m
-
View all files
from
Laplacian Pyramid Toolbox
by Minh Do
Matlab toolbox that implements the Laplacian pyramid (LP) decomposition and a new pseudo-inverse rec
|
| lprec1_old(c, d, h, g, extmod) |
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: LPDEC1
if ~exist('extmod', 'var')
extmod = 'per';
end
nd = ndims(c);
% Even size filter needs to be adjusted to obtain perfect reconstruction
adjust = mod(length(g) + 1, 2);
% Upsample and filter the coarse signal
p = c;
for dim = 1:nd
p = upfilt(p, g, dim, extmod, adjust);
end
% Add with the detail signal
x = p + d;
|
|
Contact us at files@mathworks.com