-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal_values.py
68 lines (48 loc) · 2.46 KB
/
global_values.py
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
__author__ = 'fire'
import global_utils
number_of_colors = 10 # the number of colors to pick for the swatch
D_GRAM_NUMBER = 40 # the number of colors to pick for the dendrogram
MAPS_DIR = 'maps' # maps directory
INPUT_DIR = 'input' # input directory
OUTPUT_DIR = 'output' # output directory
TAB = '\t' # not REALLY neccesarry
INPUT_MODE = 1 # run in input mode
OUTPUT_MODE = 2 # run in output mode
HTML_MODE = 3 # run in html mode
START_TAG = 50 # flags for tags in html
END_TAG = 51 # flags for tags in html
MAX_SCATTER_POINTS = 10 # the number of scatter points to use
THUMBS_FILENAME = 'Thumbs.db' # annoying stuff
BOOTSTRAP_CSS = '../../HTML_STATIC/CSS/libs/bootstrap.min.css' # for html imports
STYLE_CSS = '../../HTML_STATIC/CSS/style.css' # for html imports
JQUERY_JS = '../../HTML_STATIC/Javascript/libs/jquery.min.js' # for html imports
BOOTSTRAP_SCRIPT_JS = '../../HTML_STATIC/Javascript/libs/bootstrap.min.js' # for html imports
SCRIPT_JS = '../../HTML_STATIC/Javascript/script.js' # for html imports
DISTANCE_TYPE = 'HSV' # The color space the dengrams use to calculate distance (Can be RGB, LAB or HSV)
WHITE_THRESHOLD = 250 # threshold for white
BLACK_THRESHOLD = 5 # threshold for black
HSV_SCATTER_LABELS = ['Hue', 'Saturation', 'Value']
LAB_SCATTER_LABELS = ['Lightness', 'a', 'b']
RGB_SCATTER_LABELS = ['Red', 'Green', 'Blue']
STATS_FILENAME = 'color.statistics' # the combined color statistics file (not aggregated)
STATS_FILENAME_AGG = 'color_aggregate.statistics' # the aggregated stats file
DISTANCE_METRIC_TAG_HSV = "HSV Distance" # labels
DISTANCE_METRIC_TAG_LAB = "LAB Distance" # labels
DISTANCE_METRIC_TAG_RGB = "RGB Distance" # labels
STAT_ENDING_TMP = 'stattmp' # tmp file ending
DENDROGRAM_LABEL_HTML = 'View Dendrogram (click here)' # labels
SCATTER_LABEL_HTML = 'View Scatter Plot (click here)' # labels
FILE_STATS_RE = '^\[.*\] (.*)$' # re used for parsing color.statistics
TEST_FOLDER_NAME = 'test' # the test folder
TEST_DIMENSIONS = [100,100] # dimensions of test daya
BOOTSTRAP_TWIDTH = 12 # bootstrap class
BOOTSTRAP_COLW = BOOTSTRAP_TWIDTH / 3 # bootstrap class
BOOTSTRAP_TWIDTH_STR = 'col-sm-%d' % BOOTSTRAP_TWIDTH # bootstrap class
BOOTSTRAP_COLW_STR = 'col-sm-%d' % BOOTSTRAP_COLW # bootstrap class
P = 5
TRUNCATE_MODE = 'none' # Dendreogram settings
PLOT_TITLE = 'Color Clustering' # Dendreogram settings
ORIENTATION = 'left' # Dendreogram settings
FIGURE_SIZE = (8, 10) # Dendreogram settings
if __name__ == "__main__":
global_utils.print_run_main_error()