summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/texture_synthesis/src/matlab/modulateFlip.m
diff options
context:
space:
mode:
authorleochanj105 <leochanj@live.unc.edu>2020-10-19 23:09:30 -0400
committerleochanj105 <leochanj@live.unc.edu>2020-10-20 02:40:39 -0400
commitf618466c25d43f3bae9e40920273bf77de1e1149 (patch)
tree460e739e2165b8a9c37a9c7ab1b60f5874903543 /SD-VBS/benchmarks/texture_synthesis/src/matlab/modulateFlip.m
parent47ced4e96bbb782b9e780e8f2cfc637b2c21ff44 (diff)
initial sd-vbs
initial sd-vbs add sd-vbs sd-vbs
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlab/modulateFlip.m')
-rwxr-xr-xSD-VBS/benchmarks/texture_synthesis/src/matlab/modulateFlip.m19
1 files changed, 19 insertions, 0 deletions
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlab/modulateFlip.m b/SD-VBS/benchmarks/texture_synthesis/src/matlab/modulateFlip.m
new file mode 100755
index 0000000..eb27303
--- /dev/null
+++ b/SD-VBS/benchmarks/texture_synthesis/src/matlab/modulateFlip.m
@@ -0,0 +1,19 @@
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
10function [hfilt] = modulateFlipShift(lfilt)
11
12lfilt = lfilt(:);
13
14sz = size(lfilt,1);
15sz2 = ceil(sz/2);
16
17ind = [sz:-1:1]';
18
19hfilt = lfilt(ind) .* (-1).^(ind-sz2);