我有不同对象的图像(Pascal Voc),我有一个概率热图.我想通过绘制图像以及在它上面以某种方式绘制热图来可视化它.最好的方法是什么?
我正在考虑像这样使用alpha通道:
im_heat = np.zeros((image.shape[0],image.shape[1],4))
im_heat[:,:,:3] = image
im_heat[:,:,3] = np.rint(255/heatmap)
plt.imshow(im_heat, cmap='jet')
plt.colorbar()
Run Code Online (Sandbox Code Playgroud)
如何自定义颜色条从最小(热图)到最大(热图)?或者有没有更好的方法可视化概率?