File: gabor.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-- 500 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 */
/* with my corrections! */

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


#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
#define theta_step (M_PI/num_gabors_per_scale)
#define u00 (0.5/(1.0 + 1.0/3.0))
#define sigma_m(u) (3.0*sqrt(2.0*log(2.0))/(2.0*M_PI*u))