color map 表提供吗?
收藏
快速回复

能否再解释下这个表 提供的color map 和Id 在哪儿呢?

0
收藏
回复
全部评论(4)
时间顺序
z
zhoudf56
#2 回复于2018-12

你好!

id 这一列是我们标注的原始classId, 

color这一列 对应的是我们的colormap

为了获取classId,你需要做这样的操作, 用MATLAB的函数,[label_img. color_map] = imread('imgname.jpg'); 其中label_img 中的像素值是classId, colormap就是我们的编码的colormap表。

 

0
回复
海子徐杨
#3 回复于2018-12
你好! id 这一列是我们标注的原始classId,  color这一列 对应的是我们的colormap 为了获取classId,你需要做这样的操作, 用MATLAB的函数,[label_img. color_map] = imread('imgname.jpg'); 其中label_img 中的像素值是classId, colormap就是我们的编码的colormap表。  
展开

非常感谢,我明白了,用python PIL.Image.getpaltte()也可以

0
回复
海子徐杨
#4 回复于2018-12
你好! id 这一列是我们标注的原始classId,  color这一列 对应的是我们的colormap 为了获取classId,你需要做这样的操作, 用MATLAB的函数,[label_img. color_map] = imread('imgname.jpg'); 其中label_img 中的像素值是classId, colormap就是我们的编码的colormap表。  
展开

您好  我还想问下  训练的时候做标签 是做是根据标注id分类,还是根据trainid分类呀?

0
回复
l
luckyToMe2
#6 回复于2020-01

看看

0
回复
在@后输入用户全名并按空格结束,可艾特全站任一用户