Go to the documentation of this file.
29 #define OLP_USE_ARMAR3
51 #if defined OLP_USE_XB3
52 #define OLP_IMG_WIDTH_CAM 1280
53 #define OLP_IMG_HEIGHT_CAM 960
54 #elif defined OLP_USE_KAHEAD
55 #define OLP_IMG_WIDTH_CAM 640
56 #define OLP_IMG_HEIGHT_CAM 480
57 #elif defined OLP_USE_DBVISION
58 #define OLP_IMG_WIDTH_CAM 640 // <- enter the resolution of the camera images here
59 #define OLP_IMG_HEIGHT_CAM 480
60 #elif defined OLP_USE_ARMAR3
61 #define OLP_IMG_WIDTH_CAM 640
62 #define OLP_IMG_HEIGHT_CAM 480
64 #define OLP_IMG_WIDTH_CAM 640
65 #define OLP_IMG_HEIGHT_CAM 480
68 #define OLP_IMG_WIDTH 640
69 #define OLP_IMG_HEIGHT 480
84 #define OLP_EFFORT_MODIFICATOR 0.5f
86 #define OLP_EFFORT_MODIFICATOR 1.0f
92 #if defined OLP_USE_XB3
93 #define OLP_TOLERANCE_MODIFICATOR 0.9f
94 #elif defined OLP_USE_KAHEAD
95 #define OLP_TOLERANCE_MODIFICATOR 1.5f
96 #elif defined OLP_USE_DBVISION
97 #define OLP_TOLERANCE_MODIFICATOR 1.5f
98 #elif defined OLP_USE_ARMAR3
99 #define OLP_TOLERANCE_MODIFICATOR 1.5f
101 #define OLP_TOLERANCE_MODIFICATOR 1.0f
106 #define OLP_MAX_OBJECT_DISTANCE 1500.0f // 1200
109 #define OLP_MIN_NUM_FEATURES 30 // 25
112 #define OLP_MAX_NUM_HYPOTHESES 80 // 120
116 #define OLP_CLUSTERING_FACTOR_PLANES 2.5f
118 #define OLP_MAX_NUM_CLUSTERING_PARTS 6 // 6
122 #ifdef OLP_USE_ARMAR3_ARMAR3_4
123 #define OMP_NUM_THREADS 2
140 #if defined OLP_USE_ARMAR3_ARMAR3_4
141 #define OLP_OBJECT_LEARNING_DIR "/localhome/armar-user/armar-user_test3_mca2.4/david_mca2.4/OLP/data/"
142 #define OLP_HISTOGRAM_DIR "/localhome/armar-user/armar-user_test3_mca2.4/david_mca2.4/OLP/data/Histograms-punkt/"
143 #define OLP_OBJECT_NAMES_FILE "/localhome/armar-user/armar-user_test3_mca2.4/david_mca2.4/OLP/data/Histograms-punkt/ObjectNames.txt"
144 #define OLP_VOCABULARY_FILE "/localhome/armar-user/armar-user_test3_mca2.4/david_mca2.4/OLP/data/VisualVocabulary1000d.txt"
145 #define OLP_ADDITIONAL_OBJECT_IMAGES_DIR "/localhome/armar-user/armar-user_test3_mca2.4/david_mca2.4/OLP/data/objects/"
146 #define OLP_NEW_VOCABULARY_FILE "/localhome/armar-user/armar-user_test3_mca2.4/david_mca2.4/OLP/data/VisualVocabulary1000e.txt"
147 #define OLP_NEW_VOCABULARY_TRAINING_IMAGES "/localhome/armar-user/armar-user_test3_mca2.4/david_mca2.4/OLP/data/objects/MoreObjects000.bmp"
148 #elif defined OLP_USE_ARMAR3
155 #define OLP_HISTOGRAM_DIR "/common/homes/staff/schieben/home/OLP/data/Histograms-punkt/"
156 #define OLP_OBJECT_NAMES_FILE "/common/homes/staff/schieben/home/OLP/data/Histograms-punkt/ObjectNames.txt"
157 #define OLP_VOCABULARY_FILE "/common/homes/staff/schieben/home/OLP/data/VisualVocabulary1000d-punkt.txt"
162 #define OLP_OBJECT_LEARNING_DIR "/common/homes/students/haas/OLP/temp/"
167 #elif defined OLP_USE_DBVISION
168 #define OLP_OBJECT_LEARNING_DIR "params/ObjectLearning/"
169 #define OLP_HISTOGRAM_DIR "params/ObjectLearning/HistogramsE/"
170 #define OLP_OBJECT_NAMES_FILE "params/ObjectLearning/HistogramsE/ObjectNames.txt"
171 #define OLP_VOCABULARY_FILE "params/ObjectLearning/VisualVocabulary1000d.txt"
172 #define OLP_ADDITIONAL_OBJECT_IMAGES_DIR "params/ObjectLearning/objects/"
173 #define OLP_NEW_VOCABULARY_FILE "params/ObjectLearning/objects/VisualVocabulary1000e.txt"
174 #define OLP_NEW_VOCABULARY_TRAINING_IMAGES "params/ObjectLearning/objects/MoreObjects000.bmp" // <- names have to end on 000, 001, 002 etc.
176 #define OLP_OBJECT_LEARNING_DIR "c:/img/"
177 #define OLP_HISTOGRAM_DIR "c:/img/HistogramsE/"
178 #define OLP_OBJECT_NAMES_FILE "c:/img/HistogramsE/ObjectNames.txt"
179 #define OLP_VOCABULARY_FILE "c:/img/VisualVocabulary1000d.txt"
180 #define OLP_ADDITIONAL_OBJECT_IMAGES_DIR "c:/img/objects/"
181 #define OLP_NEW_VOCABULARY_FILE "c:/img/VisualVocabulary1000e.txt"
182 #define OLP_NEW_VOCABULARY_TRAINING_IMAGES "c:/img/objects/MoreObjects000.bmp" // <- names have to end on 000, 001, 002 etc.
188 #ifndef OLP_USE_ARMAR3_ARMAR3_4
189 #define OLP_SHOW_RESULT_IMAGES
192 #define OLP_WAITING_TIME_VISUALISATION 400
195 #ifdef OLP_USE_ARMAR3_ARMAR3_4
196 #define OLP_MAKE_RESULT_SCREENSHOTS false
197 #define OLP_MAKE_INTERMEDIATE_SCREENSHOTS false
198 #define OLP_SAVE_COMPLETE_POINTCLOUD false
199 #define OLP_SAVE_CONFIRMED_OBJECT false
201 #define OLP_MAKE_RESULT_SCREENSHOTS true
202 #define OLP_MAKE_INTERMEDIATE_SCREENSHOTS true
203 #define OLP_SAVE_COMPLETE_POINTCLOUD true
204 #define OLP_SAVE_CONFIRMED_OBJECT true
206 #define OLP_SCREENSHOT_PATH OLP_OBJECT_LEARNING_DIR
211 #define OLP_FOURIER_TRANSFORM_SCALING_FACTOR 0.5
216 #define OLP_SIZE_MSER_HISTOGRAM 64
220 #define OLP_SIZE_OBJECT_HUE_HISTOGRAM 64
224 #define OLP_TOLERANCE_CONCURRENT_MOTION 80.0f // 70
226 #define OLP_MINIMAL_MOTION_MEASURE 30.0f // 50
228 #define OLP_MAX_DISTANCE_FOR_ADDING_FOREGROUND_CANDIDATE_2D 40
230 #define OLP_MAX_DISTANCE_FOR_ADDING_FOREGROUND_CANDIDATE_3D 70
232 #define OLP_ADD_POINTS_FROM_SEGMENTED_REGION
234 #define OLP_FOREGROUND_THRESHOLD 50 //50
238 #define OLP_ICP_COLOR_DISTANCE_WEIGHT 40.0f
240 #define OLP_ICP_CUTOFF_DISTANCE 3*OLP_TOLERANCE_CONCURRENT_MOTION // FLT_MAX
245 #define OLP_HARRIS_POINT_DISTANCE 3.0f
247 #define OLP_HARRIS_POINT_QUALITY 0.0001f // 0.001
250 #define OLP_USE_MSERS
254 #define OLP_USE_DEPTH_MAP
256 #define OLP_DEPTH_MAP_PIXEL_DISTANCE 3 // 3
258 #ifdef OLP_USE_ARMAR3_ARMAR3_4
259 #define OLP_EFFORT_POINTCLOUD_MATCHING 1
261 #define OLP_EFFORT_POINTCLOUD_MATCHING 3 // 3
264 #define OLP_CLUSTERING_FACTOR_FOREGROUND_HYPOTHESES 10.0f
266 #define OLP_CLUSTERING_FACTOR_OBJECT_LOCALIZATION 2.5f // 1.5
268 #ifdef OLP_USE_DEPTH_MAP
270 #define OLP_FIND_UNICOLORED_HYPOTHESES // <--
272 #define OLP_MSER_HYPOTHESIS_MIN_SIZE 225
274 #define OLP_MSER_HYPOTHESIS_MAX_SIZE (OLP_IMG_WIDTH*OLP_IMG_HEIGHT/100)
276 #define OLP_FIND_PLANES // <--
284 #define OLP_FIND_SALIENCY_HYPOTHESES // <--
287 #define OLP_MIN_SIZE_LCCP_SEGMENT OLP_MIN_NUM_FEATURES
288 #define OLP_MAX_SIZE_LCCP_SEGMENT (OLP_IMG_WIDTH*OLP_IMG_HEIGHT/100)
303 #ifdef OLP_USE_DEPTH_MAP
304 #define OLP_FILTER_INITIAL_HYPOTHESES_WITH_MAXIMUMNESS
309 #ifdef OLP_FILTER_INITIAL_HYPOTHESES_WITH_MAXIMUMNESS
310 #define OLP_MIN_X_VALUE_SIFT_POINTS 120
312 #define OLP_MIN_X_VALUE_SIFT_POINTS 0
318 #define OLP_CENTRAL_POSITION_FOR_PUSHING_X 0
319 #define OLP_CENTRAL_POSITION_FOR_PUSHING_Y 500
320 #define OLP_CENTRAL_POSITION_FOR_PUSHING_Z 1100
324 #define OLP_USE_NEW_OPENCV