Merge tag 'v01.01.00.00' into develop
[tidl/tidl-api.git] / examples / segmentation / object_classes.cpp
index 1cc2a9a3c0513a02eb923284603b21fa59df5580..35aebf744d338cc841813024d96747355e25d692 100644 (file)
@@ -46,9 +46,9 @@ object_class_table_t jdetnet_table =
     4,
     {
         { "some class 1",     { 255,   0, 255 } },
-        { "vehicle",          {   0,   0, 255 } },
-        { "road sign",        { 255, 255,   0 } },
         { "pedestrian",       { 255,   0,   0 } },
+        { "road sign",        { 255, 255,   0 } },
+        { "vehicle",          {   0,   0, 255 } },
         { "unknown",          {   0,   0,   0 } }    /* guard */
     }
 };
@@ -62,7 +62,7 @@ object_class_table_t* GetObjectClassTable(std::string &config)
 
 object_class_t* GetObjectClass(object_class_table_t *table, int index)
 {
-    if (index < 0 || index >= table->num_classes)  index = table->num_classes;
+    if (index < 0 || (unsigned int)index >= table->num_classes)  index = table->num_classes;
     return & (table->classes[index]);
 }