summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/texture_synthesis/src/matlab/wpyrBand.m
diff options
context:
space:
mode:
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlab/wpyrBand.m')
-rwxr-xr-xSD-VBS/benchmarks/texture_synthesis/src/matlab/wpyrBand.m39
1 files changed, 0 insertions, 39 deletions
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlab/wpyrBand.m b/SD-VBS/benchmarks/texture_synthesis/src/matlab/wpyrBand.m
deleted file mode 100755
index c027cca..0000000
--- a/SD-VBS/benchmarks/texture_synthesis/src/matlab/wpyrBand.m
+++ /dev/null
@@ -1,39 +0,0 @@
1% RES = wpyrBand(PYR, INDICES, LEVEL, BAND)
2%
3% Access a subband from a separable QMF/wavelet pyramid.
4%
5% LEVEL (optional, default=1) indicates the scale (finest = 1,
6% coarsest = wpyrHt(INDICES)).
7%
8% BAND (optional, default=1) indicates which subband (1=horizontal,
9% 2=vertical, 3=diagonal).
10
11% Eero Simoncelli, 6/96.
12
13function im = wpyrBand(pyr,pind,level,band)
14
15if (exist('level') ~= 1)
16 level = 1;
17end
18
19if (exist('band') ~= 1)
20 band = 1;
21end
22
23if ((pind(1,1) == 1) | (pind(1,2) ==1))
24 nbands = 1;
25else
26 nbands = 3;
27end
28
29if ((band > nbands) | (band < 1))
30 error(sprintf('Bad band number (%d) should be in range [1,%d].', band, nbands));
31end
32
33maxLev = wpyrHt(pind);
34if ((level > maxLev) | (level < 1))
35 error(sprintf('Bad level number (%d), should be in range [1,%d].', level, maxLev));
36end
37
38band = band + nbands*(level-1);
39im = pyrBand(pyr,pind,band);