From f618466c25d43f3bae9e40920273bf77de1e1149 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Mon, 19 Oct 2020 23:09:30 -0400 Subject: initial sd-vbs initial sd-vbs add sd-vbs sd-vbs --- SD-VBS/benchmarks/texture_synthesis/src/matlab/pyrBand.m | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 SD-VBS/benchmarks/texture_synthesis/src/matlab/pyrBand.m (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlab/pyrBand.m') diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlab/pyrBand.m b/SD-VBS/benchmarks/texture_synthesis/src/matlab/pyrBand.m new file mode 100755 index 0000000..1fb6461 --- /dev/null +++ b/SD-VBS/benchmarks/texture_synthesis/src/matlab/pyrBand.m @@ -0,0 +1,11 @@ +% RES = pyrBand(PYR, INDICES, BAND_NUM) +% +% Access a subband from a pyramid (gaussian, laplacian, QMF/wavelet, +% or steerable). Subbands are numbered consecutively, from finest +% (highest spatial frequency) to coarsest (lowest spatial frequency). + +% Eero Simoncelli, 6/96. + +function res = pyrBand(pyr, pind, band) + +res = reshape( pyr(pyrBandIndices(pind,band)), pind(band,1), pind(band,2) ); -- cgit v1.2.2