summaryrefslogtreecommitdiffstats
path: root/SD-VBS/benchmarks/texture_synthesis/src/matlab/mkAngularSine.m
diff options
context:
space:
mode:
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src/matlab/mkAngularSine.m')
-rwxr-xr-xSD-VBS/benchmarks/texture_synthesis/src/matlab/mkAngularSine.m42
1 files changed, 0 insertions, 42 deletions
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/matlab/mkAngularSine.m b/SD-VBS/benchmarks/texture_synthesis/src/matlab/mkAngularSine.m
deleted file mode 100755
index f5238cc..0000000
--- a/SD-VBS/benchmarks/texture_synthesis/src/matlab/mkAngularSine.m
+++ /dev/null
@@ -1,42 +0,0 @@
1% IM = mkAngularSine(SIZE, HARMONIC, AMPL, PHASE, ORIGIN)
2%
3% Make an angular sinusoidal image:
4% AMPL * sin( HARMONIC*theta + PHASE),
5% where theta is the angle about the origin.
6% SIZE specifies the matrix size, as for zeros().
7% AMPL (default = 1) and PHASE (default = 0) are optional.
8
9% Eero Simoncelli, 2/97.
10
11function [res] = mkAngularSine(sz, harmonic, ampl, ph, origin)
12
13sz = sz(:);
14if (size(sz,1) == 1)
15 sz = [sz,sz];
16end
17
18mxsz = max(sz(1),sz(2));
19
20%------------------------------------------------------------
21%% OPTIONAL ARGS:
22
23if (exist('harmonic') ~= 1)
24 harmonic = 1;
25end
26
27if (exist('ampl') ~= 1)
28 ampl = 1;
29end
30
31if (exist('ph') ~= 1)
32 ph = 0;
33end
34
35if (exist('origin') ~= 1)
36 origin = (sz+1)/2;
37end
38
39%------------------------------------------------------------
40
41res = ampl * sin(harmonic*mkAngle(sz,ph,origin) + ph);
42