27 #include "Math/Math3d.h"
36 #define DSHT_USE_ARMAR3B
39 #define DSHT_NUM_FINGERS 5
42 #define DSHT_MAX_POLYGON_CORNERS 12
43 #elif DSHT_USE_ARMAR3A
44 #define DSHT_MAX_POLYGON_CORNERS 22
46 #define DSHT_MAX_POLYGON_CORNERS 18
49 #define DSHT_USE_EDGE_DIRECTION
53 #define DSHT_NUM_PARAMETERS 12
55 #define DSHT_OI_FILE_PATH "/home/SMBAD/schieben/home/MeinSVN/RobotHandTracking/OI-files/rightHand-David.iv"
58 #define DSHT_HAND_MODEL_PATH "/home/SMBAD/schieben/home/armarx/VisionX/source/VisionX/vision_algorithms/HandLocalizationWithFingertips/HandModel/HandModeliCubRight.txt"
59 #elif DSHT_USE_ARMAR3A
60 #define DSHT_HAND_MODEL_PATH "/home/SMBAD/schieben/home/armarx/VisionX/source/VisionX/vision_algorithms/HandLocalizationWithFingertips/HandModel/HandModelArmar3aRight.txt"
62 #define DSHT_HAND_MODEL_PATH "/home/SMBAD/schieben/home/armarx/VisionX/source/VisionX/vision_algorithms/HandLocalizationWithFingertips/HandModel/HandModelArmar3bRight-2015.txt"
66 #define DSHT_IMAGE_WIDTH 640
67 #define DSHT_IMAGE_HEIGHT 480
72 #ifdef DSHT_USE_ARMAR3A
73 static const unsigned char default_fingertip_hue = 113;
74 static const unsigned char default_fingertip_hue_tolerance = 20;
75 static const unsigned char default_fingertip_sat_min = 75;
76 static const unsigned char default_fingertip_sat_max = 255;
77 static const unsigned char default_fingertip_val_min = 10;
78 static const unsigned char default_fingertip_val_max = 150;
80 static const unsigned char default_trball_hue = 0;
81 static const unsigned char default_trball_hue_tolerance = 10;
82 static const unsigned char default_trball_sat_min = 135;
83 static const unsigned char default_trball_sat_max = 255;
84 static const unsigned char default_trball_val_min = 35;
85 static const unsigned char default_trball_val_max = 220;
87 static const unsigned char default_fingertip_hue = 127;
88 static const unsigned char default_fingertip_hue_tolerance = 50;
89 static const unsigned char default_fingertip_sat_min = 60;
90 static const unsigned char default_fingertip_sat_max = 255;
91 static const unsigned char default_fingertip_val_min = 0;
92 static const unsigned char default_fingertip_val_max = 63;
95 static const unsigned char default_trball_hue = 59;
96 static const unsigned char default_trball_hue_tolerance = 16;
97 static const unsigned char default_trball_sat_min = 65;
98 static const unsigned char default_trball_sat_max = 164;
99 static const unsigned char default_trball_val_min = 6;
100 static const unsigned char default_trball_val_max = 109;
123 #define DSHT_OI_RENDERSIZE_X 760
124 #define DSHT_OI_RENDERSIZE_Y 570