color map 表提供吗?
收藏
能否再解释下这个表 提供的color map 和Id 在哪儿呢?
0
收藏
请登录后评论
你好!
id 这一列是我们标注的原始classId,
color这一列 对应的是我们的colormap
为了获取classId,你需要做这样的操作, 用MATLAB的函数,[label_img. color_map] = imread('imgname.jpg'); 其中label_img 中的像素值是classId, colormap就是我们的编码的colormap表。
非常感谢,我明白了,用python PIL.Image.getpaltte()也可以
您好 我还想问下 训练的时候做标签 是做是根据标注id分类,还是根据trainid分类呀?
看看