diff options
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlab/wpyrBand.m')
-rwxr-xr-x | SD-VBS/benchmarks/texture_synthesis/src/matlab/wpyrBand.m | 39 |
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 | |||
13 | function im = wpyrBand(pyr,pind,level,band) | ||
14 | |||
15 | if (exist('level') ~= 1) | ||
16 | level = 1; | ||
17 | end | ||
18 | |||
19 | if (exist('band') ~= 1) | ||
20 | band = 1; | ||
21 | end | ||
22 | |||
23 | if ((pind(1,1) == 1) | (pind(1,2) ==1)) | ||
24 | nbands = 1; | ||
25 | else | ||
26 | nbands = 3; | ||
27 | end | ||
28 | |||
29 | if ((band > nbands) | (band < 1)) | ||
30 | error(sprintf('Bad band number (%d) should be in range [1,%d].', band, nbands)); | ||
31 | end | ||
32 | |||
33 | maxLev = wpyrHt(pind); | ||
34 | if ((level > maxLev) | (level < 1)) | ||
35 | error(sprintf('Bad level number (%d), should be in range [1,%d].', level, maxLev)); | ||
36 | end | ||
37 | |||
38 | band = band + nbands*(level-1); | ||
39 | im = pyrBand(pyr,pind,band); | ||