diff options
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/modulateFlip.m')
-rwxr-xr-x | SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/modulateFlip.m | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/modulateFlip.m b/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/modulateFlip.m deleted file mode 100755 index eb27303..0000000 --- a/SD-VBS/benchmarks/texture_synthesis/src/matlabPyrTools/modulateFlip.m +++ /dev/null | |||
@@ -1,19 +0,0 @@ | |||
1 | % [HFILT] = modulateFlipShift(LFILT) | ||
2 | % | ||
3 | % QMF/Wavelet highpass filter construction: modulate by (-1)^n, | ||
4 | % reverse order (and shift by one, which is handled by the convolution | ||
5 | % routines). This is an extension of the original definition of QMF's | ||
6 | % (e.g., see Simoncelli90). | ||
7 | |||
8 | % Eero Simoncelli, 7/96. | ||
9 | |||
10 | function [hfilt] = modulateFlipShift(lfilt) | ||
11 | |||
12 | lfilt = lfilt(:); | ||
13 | |||
14 | sz = size(lfilt,1); | ||
15 | sz2 = ceil(sz/2); | ||
16 | |||
17 | ind = [sz:-1:1]'; | ||
18 | |||
19 | hfilt = lfilt(ind) .* (-1).^(ind-sz2); | ||