diff options
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlab/spyrBand.m')
| -rwxr-xr-x | SD-VBS/benchmarks/texture_synthesis/src/matlab/spyrBand.m | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlab/spyrBand.m b/SD-VBS/benchmarks/texture_synthesis/src/matlab/spyrBand.m deleted file mode 100755 index 474a8dc..0000000 --- a/SD-VBS/benchmarks/texture_synthesis/src/matlab/spyrBand.m +++ /dev/null | |||
| @@ -1,34 +0,0 @@ | |||
| 1 | % [LEV,IND] = spyrBand(PYR,INDICES,LEVEL,BAND) | ||
| 2 | % | ||
| 3 | % Access a band from a steerable pyramid. | ||
| 4 | % | ||
| 5 | % LEVEL indicates the scale (finest = 1, coarsest = spyrHt(INDICES)). | ||
| 6 | % | ||
| 7 | % BAND (optional, default=1) indicates which subband | ||
| 8 | % (1 = vertical, rest proceeding anti-clockwise). | ||
| 9 | |||
| 10 | % Eero Simoncelli, 6/96. | ||
| 11 | |||
| 12 | function res = spyrBand(pyr,pind,level,band) | ||
| 13 | |||
| 14 | if (exist('level') ~= 1) | ||
| 15 | level = 1; | ||
| 16 | end | ||
| 17 | |||
| 18 | if (exist('band') ~= 1) | ||
| 19 | band = 1; | ||
| 20 | end | ||
| 21 | |||
| 22 | nbands = spyrNumBands(pind); | ||
| 23 | if ((band > nbands) | (band < 1)) | ||
| 24 | error(sprintf('Bad band number (%d) should be in range [1,%d].', band, nbands)); | ||
| 25 | end | ||
| 26 | |||
| 27 | maxLev = spyrHt(pind); | ||
| 28 | if ((level > maxLev) | (level < 1)) | ||
| 29 | error(sprintf('Bad level number (%d), should be in range [1,%d].', level, maxLev)); | ||
| 30 | end | ||
| 31 | |||
| 32 | firstband = 1 + band + nbands*(level-1); | ||
| 33 | res = pyrBand(pyr, pind, firstband); | ||
| 34 | |||
