29 #include <Color/ColorParameterSet.h>
30 #include <SegmentableRecognition/SegmentableRecognition.h>
31 #include <Visualizer/OpenGLVisualizer.h>
34 #include <VirtualRobot/VirtualRobot.h>
54 defineOptionalProperty<std::string>(
"ColorParameterFile",
"VisionX/examples/colors.txt",
"The color parameter file configures the colors used for segmentable recognition (usually colors.txt)");
55 defineOptionalProperty<float>(
"MinPixelsPerRegion", 4,
"Minimum number of pixels per region for detecting a uniformly colored object");
56 defineOptionalProperty<float>(
"MaxEpipolarDistance", 4,
"Maximum epipolar line distance allowed for a valid 3D recognition result");
57 defineOptionalProperty<int>(
"NumObjectMarker", 4,
"Number of markers");
58 defineOptionalProperty<int>(
"Hue", 4,
"Hue value of object marker");
59 defineOptionalProperty<int>(
"HueTolerance", 4,
"Hue tolerance value of object marker");
60 defineOptionalProperty<int>(
"MinSaturation", 0,
"Minimum saturation");
61 defineOptionalProperty<int>(
"MaxSaturation", 255,
"Maximum saturation");
62 defineOptionalProperty<int>(
"MinValue", 0,
"Minimum value");
63 defineOptionalProperty<int>(
"MaxValue", 255,
"Maximum value");
64 defineOptionalProperty<std::string>(
"MarkerColor",
"Yellow3",
"Marker Color");
65 defineOptionalProperty<std::string>(
"MarkeredObjectName",
"MarkeredObject",
"Name of the object");
92 return "ColorMarkerObjectLocalizer";
137 float calculateRecognitionCertainty(
const std::string& objectClassName,
const Object3DEntry& entry);
138 void visualizeResults(
const Object3DList& objectList, CByteImage**
resultImages);
142 std::shared_ptr<CGLContext> contextGL;
143 std::shared_ptr<COpenGLVisualizer> m_pOpenGLVisualizer;
146 float minPixelsPerRegion;
147 float maxEpipolarDistance;
148 unsigned int numObjectMarker;
155 std::string markeredObjectName;
157 ObjectColor objectMarkerColor;
162 std::map<std::string, ObjectColor> objectColors;