TIDL-API docu update: time, probability
[tidl/tidl-api.git] / examples / segmentation / object_classes.h
index 7ae0e5ad0637f67e2f030fdfe62a1b76f2d2df4c..2a2fce7631519a20bd82d147a5d9741dca732bba 100644 (file)
 #define _OBJECT_CLASSES_H_
 
 #include <string>
+#include <vector>
 
 typedef struct {
     const char *label;
-    unsigned char color[3];  /* rgb */
+    struct {
+        unsigned char red;
+        unsigned char green;
+        unsigned char blue;
+    } color;
 } object_class_t;
 
 typedef struct {
-    unsigned int num_classes;
-    object_class_t  classes[];
+    unsigned int                 num_classes;
+    std::vector<object_class_t>  classes;
 } object_class_table_t;
 
 extern object_class_table_t* GetObjectClassTable(std::string &config);