File: gabor_old.h

package info (click to toggle)
gnuift 0.1.14%2Bds-1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 5,632 kB
  • ctags: 2,973
  • sloc: cpp: 15,867; sh: 8,281; ansic: 1,812; perl: 1,007; php: 651; makefile: 483; lisp: 344
file content (17 lines) | stat: -rw-r--r-- 507 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#define sq(x) ((x)*(x))

/* note that all this is taken from the paper JaH98 in ~/tex/bib/squizz.bib */
/* define some constants for the filter bank */
#define theta_step M_PI/4

/* define the functions which determine the parameters of the filter back */

#define u00 (0.5/(1.0 + tan(B_theta)))
#define sigma_m(u) (sqrt(2.0*log(2.0))/(3*u*tan(B_theta)))

#define num_gabor_scales 3
#define gabor_kernel_size_0 9
#define gabor_kernel_size_1 17
#define gabor_kernel_size_2 35

#define num_gabors_per_scale 4