Discrete color heat map using matplotlib

Viewed 30

Trying to produce heat map with custom color - BYGR, but the output file only composed of single color heat map.

blur = cv2.GaussianBlur(img, (13,13),11)
cm = matplotlib.colors.ListedColormap(['blue','yellow','green','red'])
plt.imshow(blur, cmap = cm, interpolation='nearest')

Input Jpg fileInput image

Output Jpg file enter image description here

0 Answers
Related