File: gift_features.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 (27 lines) | stat: -rw-r--r-- 762 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef _GIFT_FEATURES
#define _GIFT_FEATURES
/* feature classes */

#define COL_POS		0	/* a colour in a specific position (and at a
						specific scale) */
#define COL_HST		1	/* the proportion of a given colour */
#define GABOR_POS	2	/* the value of a Gabor filter in a particular
						position */
#define GABOR_HST	3	/* the proportion of a particular value of a Gabor
						filter in the image */

#define FREQ_MAX 0xff     /* since we will use FLOATS to store frequencies we want high resolution (WM) */

typedef unsigned int freq_type;

typedef struct _FEATURE_DATA {
	int id;
	freq_type frequency; /* i.e. f = frequency/FREQ_MAX */
} FEATURE_DATA;


/* use primitive hacks by Wolfgang for 
   adapting to Wolfgang's code */
#define WOLFGANG_HACK 

#endif