summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/texture_synthesis/src/matlab/spyrLev.m
diff options
context:
space:
mode:
authorleochanj105 <leochanj@live.unc.edu>2020-10-20 03:47:33 -0400
committerleochanj105 <leochanj@live.unc.edu>2020-10-20 03:47:33 -0400
commita32f220f06cc463e5b56e7fa0b1b1334d94d08f3 (patch)
tree4af4caa60074465d85fc2ef5cc1b23e74c064329 /SD-VBS/benchmarks/texture_synthesis/src/matlab/spyrLev.m
parent79f30887129145e15e5172e36a7d7602859fc932 (diff)
matlab removed
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlab/spyrLev.m')
-rwxr-xr-xSD-VBS/benchmarks/texture_synthesis/src/matlab/spyrLev.m24
1 files changed, 0 insertions, 24 deletions
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlab/spyrLev.m b/SD-VBS/benchmarks/texture_synthesis/src/matlab/spyrLev.m
deleted file mode 100755
index 5cb4a85..0000000
--- a/SD-VBS/benchmarks/texture_synthesis/src/matlab/spyrLev.m
+++ /dev/null
@@ -1,24 +0,0 @@
1% [LEV,IND] = spyrLev(PYR,INDICES,LEVEL)
2%
3% Access a level from a steerable 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] = spyrLev(pyr,pind,level)
10
11nbands = spyrNumBands(pind);
12
13if ((level > spyrHt(pind)) | (level < 1))
14 error(sprintf('Level number must be in the range [1, %d].', spyrHt(pind)));
15end
16
17firstband = 2 + nbands*(level-1);
18firstind = 1;
19for l=1:firstband-1
20 firstind = firstind + prod(pind(l,:));
21end
22
23ind = pind(firstband:firstband+nbands-1,:);
24lev = pyr(firstind:firstind+sum(prod(ind'))-1);