X-Git-Url: https://git.ti.com/gitweb?p=tidl%2Ftidl-api.git;a=blobdiff_plain;f=examples%2Fsegmentation%2Fobject_classes.h;h=2a2fce7631519a20bd82d147a5d9741dca732bba;hp=7ae0e5ad0637f67e2f030fdfe62a1b76f2d2df4c;hb=4e1332e00fee67146e32960a3e24c55ffc6f5525;hpb=e92addf306fb3443309e72636f8a96ccbad97d32 diff --git a/examples/segmentation/object_classes.h b/examples/segmentation/object_classes.h index 7ae0e5a..2a2fce7 100644 --- a/examples/segmentation/object_classes.h +++ b/examples/segmentation/object_classes.h @@ -30,15 +30,20 @@ #define _OBJECT_CLASSES_H_ #include +#include 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 classes; } object_class_table_t; extern object_class_table_t* GetObjectClassTable(std::string &config);