29 #include <VirtualRobot/VirtualRobot.h>
31 #include <Color/ColorParameterSet.h>
32 #include <SegmentableRecognition/SegmentableRecognition.h>
33 #include <Visualizer/OpenGLVisualizer.h>
53 defineOptionalProperty<std::string>(
55 "VisionX/examples/colors.txt",
56 "The color parameter file configures the colors used for segmentable recognition "
57 "(usually colors.txt)");
58 defineOptionalProperty<float>(
61 "Minimum number of pixels per region for detecting a uniformly colored object");
62 defineOptionalProperty<float>(
63 "MaxEpipolarDistance",
65 "Maximum epipolar line distance allowed for a valid 3D recognition result");
66 defineOptionalProperty<int>(
"NumObjectMarker", 4,
"Number of markers");
67 defineOptionalProperty<int>(
"Hue", 4,
"Hue value of object marker");
68 defineOptionalProperty<int>(
"HueTolerance", 4,
"Hue tolerance value of object marker");
69 defineOptionalProperty<int>(
"MinSaturation", 0,
"Minimum saturation");
70 defineOptionalProperty<int>(
"MaxSaturation", 255,
"Maximum saturation");
71 defineOptionalProperty<int>(
"MinValue", 0,
"Minimum value");
72 defineOptionalProperty<int>(
"MaxValue", 255,
"Maximum value");
73 defineOptionalProperty<std::string>(
"MarkerColor",
"Yellow3",
"Marker Color");
74 defineOptionalProperty<std::string>(
75 "MarkeredObjectName",
"MarkeredObject",
"Name of the object");
104 return "ColorMarkerObjectLocalizer";
144 memoryx::ObjectLocalizationResultList
154 float calculateRecognitionCertainty(
const std::string& objectClassName,
155 const Object3DEntry& entry);
156 void visualizeResults(
const Object3DList& objectList, CByteImage**
resultImages);
160 std::shared_ptr<CGLContext> contextGL;
161 std::shared_ptr<COpenGLVisualizer> m_pOpenGLVisualizer;
164 float minPixelsPerRegion;
165 float maxEpipolarDistance;
166 unsigned int numObjectMarker;
173 std::string markeredObjectName;
175 ObjectColor objectMarkerColor;
180 std::map<std::string, ObjectColor> objectColors;