Matplotlib has a lot of good color maps, but is bad in performance. I'm writing some code to make gray-scale image colorful where interpolate with color map is a good idea. I wonder whether there are open source color maps available or demo code to use Pillow to convert gray-scale images into colorful ones via colormap?
Clarify:
- Matplotlib is good for demo use, but bad performace for thounsands of images.
- Matplotlib colormaps
- You can map grayscale images to colormaps to get colorful ones.
Demo:
The first image is grayscale, second is mapped in 'jet' cmap, third being 'hot'.
The problem is that I do not know much about colors, and I'd like to achieve such effects in PIL for better performance.