summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/wpyrLev.m
diff options
context:
space:
mode:
authorleochanj <jbakita@cs.unc.edu>2020-10-21 01:52:54 -0400
committerleochanj <jbakita@cs.unc.edu>2020-10-21 01:52:54 -0400
commit25d94aa8aabb8ac3e8bbea0bc439ea6148444cc8 (patch)
treeba80e76d25d9ca9486092e2f6b6d76f0e3352bf7 /SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/wpyrLev.m
parente2b50015cebdfba68699abd6e8575e38230f5a78 (diff)
debug libextra and remove matlab
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/wpyrLev.m')
-rwxr-xr-xSD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/wpyrLev.m30
1 files changed, 0 insertions, 30 deletions
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/wpyrLev.m b/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/wpyrLev.m
deleted file mode 100755
index 18f30ae..0000000
--- a/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/wpyrLev.m
+++ /dev/null
@@ -1,30 +0,0 @@
1% [LEV,IND] = wpyrLev(PYR,INDICES,LEVEL)
2%
3% Access a level from a separable QMF/wavelet pyramid.
4% Return as an SxB matrix, B = number of bands, S = total size of a band.
5% Also returns an Bx2 matrix containing dimensions of the subbands.
6
7% Eero Simoncelli, 6/96.
8
9function [lev,ind] = wpyrLev(pyr,pind,level)
10
11if ((pind(1,1) == 1) | (pind(1,2) ==1))
12 nbands = 1;
13else
14 nbands = 3;
15end
16
17if ((level > wpyrHt(pind)) | (level < 1))
18 error(sprintf('Level number must be in the range [1, %d].', wpyrHt(pind)));
19end
20
21firstband = 1 + nbands*(level-1)
22firstind = 1;
23for l=1:firstband-1
24 firstind = firstind + prod(pind(l,:));
25end
26
27
28ind = pind(firstband:firstband+nbands-1,:);
29lev = pyr(firstind:firstind+sum(prod(ind'))-1);
30