No BSD License
-
atrousdec(x,fname,Nlevels);
ATROUSDEC - computes the 2-D atrous decomposition using symmetric extension.
-
atrousfilters(fname);
ATROUSFILTERS Generate pyramid 2D filters
-
decdemo( im, option )
DECDEMO demonstrates nonsubsampled Contourlet decomposition and reconstruction.
-
dfilters(fname, type)
DFILTERS Generate directional 2D filters
-
dmaxflat(N,d)
returns 2-D diamond maxflat filters of order 'N'
-
efilter2(x, f, extmod, shift)
EFILTER2 2D Filtering with edge handling (via extension)
-
extend2(x, ru, rd, cl, cr, ex...
EXTEND2 2D extension
-
ho=upsample2df(h, power);
upsample filter by 2^power;
-
ld2quin(beta)
LD2QUIN Quincunx filters from the ladder network structure
-
ldfilter(fname)
LDFILTER Generate filter for the ladder structure network
-
mctrans(b,t)
MCTRANS McClellan transformation
-
modulate2(x, type, center)
MODULATE2 2D modulation
-
nsctdec(x, levels, dfilt, pfi...
NSSCDEC Nonsubsampled Contourlet Transform Decomposition
-
nsdfbdec( x, dfilter, clevels...
NSDFBDEC Nonsubsampled directional filter bank decomposition.
-
nsdfbrec( x, dfilter )
NSDFBREC Nonsubsampled directional filter bank reconstruct.
-
nsfbdec( x, h0, h1, lev )
nsfbdec - computes the ns pyramid decomposition
-
nsfbrec( y0, y1, g0, g1, lev ...
nsfbrec - computes the inverse of 2-D atrous decomposition at level lev
-
nsscrec(y, dfilt, pfilt)
NSCTREC Nonsubsampled Contourlet Reconstruction
-
nssfbdec( x, f1, f2, mup )
NSSFBDEC Two-channel nonsubsampled filter bank decomposition with periodic extension.
-
nssfbrec( x1, x2, f1, f2, mup...
NSSFBREC Two-channel nonsubsampled filter bank reconstruction with periodic extension.
-
parafilters( f1, f2 )
PARAFILTERS Generate four groups of parallelogram filters.
-
qupz(x, type)
QUPZ Quincunx Upsampling (with zero-pad and matrix extending)
-
resampz(x, type, shift)
RESAMPZ Resampling of matrix
-
shownsct( y )
SHOWNSSC Show nonsubsampled Contourlet transform coefficients.
-
wfilters(wname,o)
WFILTERS Wavelet filters.
-
x=satrousrec(y,fname);
SATROUSREC - computes the inverse of 2-D atrous decomposition computed with ATROUSDEC
-
yT=symext(x,h,shift);
FUNCTION Y = SYMEXT
-
dfbdecdemo.m
-
View all files
|
|
| modulate2(x, type, center)
|
function y = modulate2(x, type, center)
% MODULATE2 2D modulation
%
% y = modulate2(x, type, [center])
%
% With TYPE = {'r', 'c' or 'b'} for modulate along the row, or column or
% both directions.
%
% CENTER secify the origin of modulation as floor(size(x)/2)+1+center
% (default is [0, 0])
if ~exist('center', 'var')
center = [0, 0];
end
% Size and origin
s = size(x);
o = floor(s / 2) + 1 + center;
n1 = [1:s(1)] - o(1);
n2 = [1:s(2)] - o(2);
switch lower(type(1))
case 'r'
m1 = (-1) .^ n1;
y = x .* repmat(m1', [1, s(2)]);
case 'c'
m2 = (-1) .^ n2;
y = x .* repmat(m2, [s(1), 1]);
case 'b'
m1 = (-1) .^ n1;
m2 = (-1) .^ n2;
m = m1' * m2;
y = x .* m;
otherwise
error('Invalid input type');
end
|
|
Contact us at files@mathworks.com