diff options
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlab/reconSpyrLevs.m')
| -rwxr-xr-x | SD-VBS/benchmarks/texture_synthesis/src/matlab/reconSpyrLevs.m | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlab/reconSpyrLevs.m b/SD-VBS/benchmarks/texture_synthesis/src/matlab/reconSpyrLevs.m deleted file mode 100755 index f8e456c..0000000 --- a/SD-VBS/benchmarks/texture_synthesis/src/matlab/reconSpyrLevs.m +++ /dev/null | |||
| @@ -1,46 +0,0 @@ | |||
| 1 | % RES = reconSpyrLevs(PYR,INDICES,LOFILT,BFILTS,EDGES,LEVS,BANDS) | ||
| 2 | % | ||
| 3 | % Recursive function for reconstructing levels of a steerable pyramid | ||
| 4 | % representation. This is called by reconSpyr, and is not usually | ||
| 5 | % called directly. | ||
| 6 | |||
| 7 | % Eero Simoncelli, 6/96. | ||
| 8 | |||
| 9 | function res = reconSpyrLevs(pyr,pind,lofilt,bfilts,edges,levs,bands); | ||
| 10 | |||
| 11 | nbands = size(bfilts,2); | ||
| 12 | lo_ind = nbands+1; | ||
| 13 | res_sz = pind(1,:); | ||
| 14 | |||
| 15 | % Assume square filters: | ||
| 16 | bfiltsz = round(sqrt(size(bfilts,1))); | ||
| 17 | |||
| 18 | if any(levs > 1) | ||
| 19 | |||
| 20 | if (size(pind,1) > lo_ind) | ||
| 21 | nres = reconSpyrLevs( pyr(1+sum(prod(pind(1:lo_ind-1,:)')):size(pyr,1)), ... | ||
| 22 | pind(lo_ind:size(pind,1),:), ... | ||
| 23 | lofilt, bfilts, edges, levs-1, bands); | ||
| 24 | else | ||
| 25 | nres = pyrBand(pyr,pind,lo_ind); % lowpass subband | ||
| 26 | end | ||
| 27 | |||
| 28 | res = upConv(nres, lofilt, edges, [2 2], [1 1], res_sz); | ||
| 29 | |||
| 30 | else | ||
| 31 | |||
| 32 | res = zeros(res_sz); | ||
| 33 | |||
| 34 | end | ||
| 35 | |||
| 36 | if any(levs == 1) | ||
| 37 | ind = 1; | ||
| 38 | for b = 1:nbands | ||
| 39 | if any(bands == b) | ||
| 40 | bfilt = reshape(bfilts(:,b), bfiltsz, bfiltsz); | ||
| 41 | upConv(reshape(pyr(ind:ind+prod(res_sz)-1), res_sz(1), res_sz(2)), ... | ||
| 42 | bfilt, edges, [1 1], [1 1], res_sz, res); | ||
| 43 | end | ||
| 44 | ind = ind + prod(res_sz); | ||
| 45 | end | ||
| 46 | end | ||
