-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.h
52 lines (39 loc) · 1.1 KB
/
config.h
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#ifndef IMAGE_SEARCH_CONFIG_H
#define IMAGE_SEARCH_CONFIG_H
#define MAX_WEIGHT_IDX 5
#define MY_WEIGHTS
#define MAX_RESULTS 16
#define THUMB_ROWS 250
#define THUMB_COLS 250
//#define CONFIG_DEHDABEHS
#define CONFIG_SHIRTS
//#define CONFIG_COVERS
#ifdef CONFIG_COVERS
#define DB_PREFIX "/images/covers"
#define DB_FILE "../covers.bin"
#define URL_PREFIX_STRATEGY_CLASS CoverScanUrlPrefixStrategy
#endif
#ifdef CONFIG_SHIRTS
#define DB_PREFIX "/images/shirts"
#define DB_FILE "../shirts.bin"
#define URL_PREFIX_STRATEGY_CLASS FlatUrlPrefixStrategy
#endif
#ifdef CONFIG_DEHDABEHS
#define DB_PREFIX "/images/dehdabehs"
#define DB_FILE "../imagedb.bin"
#define URL_PREFIX_STRATEGY_CLASS FlatUrlPrefixStrategy
#endif
#define SERIALIZER_CLASS BinaryScoreTableSerializer
#define AVG_DIVIDEND 1
//#define AVG_DIVIDEND 10
#define DECOMP_TYPE STANDARD
//#define DECOMP_TYPE PYRAMID
#define DB_IMAGE_COLS 128
#define DB_IMAGE_ROWS 128
#define KEPT_COEFFS 40
#define DB_NAME "images"
#define TABLE_NAME "images"
#define HOSTADDR "127.0.0.1"
#define USERNAME "md"
#define PASSWORD "md"
#endif // IMAGE_SEARCH_CONFIG_H