Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
config_defaults.h
Go to the documentation of this file.
1 // -*- c-basic-offset: 4 -*-
24 #ifndef _CONFIG_DEFAULTS_H
25 #define _CONFIG_DEFAULTS_H
26 
27 #include <hugin_config.h>
28 
29 // contains various configuration defaults
30 
31 // assistant panel
32 #define HUGIN_ASS_NCONTROLPOINTS 20l
33 #define HUGIN_ASS_MAX_NORMAL_FOV 100.0
34 #define HUGIN_ASS_PANO_DOWNSIZE_FACTOR 0.7
35 #define HUGIN_ASS_AUTO_ALIGN 0l
36 #define HUGIN_ASS_AUTO_CPCLEAN 1l
37 #define HUGIN_ASS_LINEFIND 1l
38 
39 // celeste panel
40 #define HUGIN_CELESTE_AUTO 0l
41 #define HUGIN_CELESTE_THRESHOLD 0.5
42 #define HUGIN_CELESTE_FILTER 1l
43 #define HUGIN_CELESTE_MODEL "celeste.model"
44 
45 // template matching
46 #define HUGIN_FT_TEMPLATE_SIZE 21l
47 #define HUGIN_FT_SEARCH_AREA_PERCENT 10l
48 #define HUGIN_FT_LOCAL_SEARCH_WIDTH 14l
49 #define HUGIN_FT_CORR_THRESHOLD 0.8
50 #define HUGIN_FT_CURV_THRESHOLD 0.0
51 
52 #define HUGIN_FT_ROTATION_SEARCH 0l
53 #define HUGIN_FT_ROTATION_START_ANGLE -30.0
54 #define HUGIN_FT_ROTATION_STOP_ANGLE 30.0
55 #define HUGIN_FT_ROTATION_STEPS 12l
56 
57 
58 // Image cache defaults
59 #define HUGIN_IMGCACHE_UPPERBOUND 268435456
60 #define HUGIN_IMGCACHE_MAPPING_INTEGER 0l
61 #define HUGIN_IMGCACHE_MAPPING_FLOAT 1l
62 
63 #define HUGIN_CAPTURE_TIMESPAN 60l
64 
65 // GUI defaults
66 #define HUGIN_LANGUAGE wxLANGUAGE_DEFAULT
67 // sort by filename (1), sort by date (2)
68 #define HUGIN_GUI_SORT_NEW_IMG_ON_ADD 1l
69 
70 #define HUGIN_LENS_ASSUME_SIMILAR 1l
71 
72 // project naming convention
73 #define HUGIN_DEFAULT_PROJECT_NAME "%firstimage - %lastimage"
74 #define HUGIN_DEFAULT_OUTPUT_NAME "%projectname"
75 
76 // smart undo
77 #define HUGIN_SMART_UNDO 0l
78 
79 // show hints in fast preview window
80 #define HUGIN_SHOW_PROJECTION_HINTS 1l
81 
82 // Exiftool
83 #define HUGIN_USE_EXIFTOOL 1l
84 #define HUGIN_EXIFTOOL_CREATE_GPANO 1l
85 
86 // Program defaults
87 #if defined _WIN32
88 
89 #define HUGIN_PT_SCRIPTFILE "PT_script.txt"
90 
91 #define HUGIN_PT_MENDER_EXE "PTmender.exe"
92 #define HUGIN_PT_BLENDER_EXE "PTblender.exe"
93 #define HUGIN_PT_MASKER_EXE "PTmasker.exe"
94 #define HUGIN_PT_ROLLER_EXE "PTroller.exe"
95 
96 #define HUGIN_SMARTBLEND_EXE "smartblend.exe"
97 
98 #define HUGIN_ENBLEND_EXE "enblend.exe"
99 #define HUGIN_ENFUSE_EXE "enfuse.exe"
100 
101 #define HUGIN_ENBLEND_EXE_CUSTOM false
102 #define HUGIN_ENFUSE_EXE_CUSTOM false
103 
104 #elif defined __WXMAC__
105 
106 #define HUGIN_PT_SCRIPTFILE "PT_script.txt"
107 
108 #define HUGIN_PT_MENDER_EXE "PTmender"
109 #define HUGIN_PT_BLENDER_EXE "PTblender"
110 #define HUGIN_PT_MASKER_EXE "PTmasker"
111 #define HUGIN_PT_ROLLER_EXE "PTroller"
112 
113 #define HUGIN_SMARTBLEND_EXE "smartblend.exe"
114 #define HUGIN_ENBLEND_EXE "enblend"
115 #define HUGIN_ENFUSE_EXE "enfuse"
116 
117 #ifdef MAC_SELF_CONTAINED_BUNDLE
118 
119 #define HUGIN_ENBLEND_EXE_CUSTOM false
120 #define HUGIN_ENFUSE_EXE_CUSTOM false
121 
122 #else
123 
124 #define HUGIN_ENBLEND_EXE_CUSTOM true
125 #define HUGIN_ENFUSE_EXE_CUSTOM true
126 
127 #endif
128 
129 #else // for unix like systems
130 
131 #define HUGIN_PT_SCRIPTFILE "PT_script.txt"
132 
133 #define HUGIN_PT_MENDER_EXE "PTmender"
134 #define HUGIN_PT_BLENDER_EXE "PTblender"
135 #define HUGIN_PT_MASKER_EXE "PTmasker"
136 #define HUGIN_PT_ROLLER_EXE "PTroller"
137 
138 #define HUGIN_SMARTBLEND_EXE "smartblend.exe"
139 
140 #define HUGIN_ENBLEND_EXE "enblend"
141 #define HUGIN_ENFUSE_EXE "enfuse"
142 
143 #define HUGIN_ENBLEND_EXE_CUSTOM true
144 #define HUGIN_ENFUSE_EXE_CUSTOM true
145 
146 
147 #endif
148 
149 // enblend args
150 #define HUGIN_ENBLEND_ARGS ""
151 #define HUGIN_ENFUSE_ARGS ""
152 
153 // smartblend args
154 #define HUGIN_SMARTBLEND_ARGS ""
155 
156 // nona defaults
157 #define HUGIN_NONA_INTERPOLATOR 0l
158 #define HUGIN_NONA_CROPPEDIMAGES 1l
159 #define HUGIN_NONA_USEGPU 0l
160 
161 // output defaults
162 # define HUGIN_LDR_OUTPUT_FORMAT 0l
163 # define HUGIN_TIFF_COMPRESSION 2l
164 # define HUGIN_JPEG_QUALITY 90l
165 # define HUGIN_HDR_OUTPUT_FORMAT 0l
166 
167 // default blender
168 #define HUGIN_DEFAULT_BLENDER HuginBase::PanoramaOptions::ENBLEND_BLEND
169 
170 // hdrmerge defaults
171 #define HUGIN_HDRMERGE_ARGS "-m avg -c"
172 
173 // default colours for mask editor
174 #define HUGIN_MASK_COLOUR_POLYGON_NEGATIVE "#FF0000"
175 #define HUGIN_MASK_COLOUR_POLYGON_POSITIVE "#00FF00"
176 #define HUGIN_MASK_COLOUR_POINT_SELECTED "#0000FF"
177 #define HUGIN_MASK_COLOUR_POINT_UNSELECTED "#FFFFFF"
178 
179 // default colors for fast preview
180 #define HUGIN_PREVIEW_BACKGROUND "#000000"
181 
182 // processor
183 #define HUGIN_PROCESSOR_GUI 0l // first in the list in the xrc file
184 #define HUGIN_PROCESSOR_START 1l // boolean
185 #define HUGIN_PROCESSOR_OVERWRITE 0l // boolean
186 #define HUGIN_PROCESSOR_VERBOSE 1l // boolean
187 
188 //photometric optimizer
189 #define HUGIN_PHOTOMETRIC_OPTIMIZER_NRPOINTS 200l
190 
191 #endif // _CONFIG_DEFAULTS_H