title: How to convert a grayscale image to heatmap image with Python OpenCV
body: <p>I have a <code>(540, 960, 1)</code> shaped image with values ranging from <code>[0..255]</code> which is black and white. I need to convert it to a "heatmap" representation. As an example, pixels with <code>255</code> should be of most heat and pixels with <code>0</code> should be with least heat. Others in-between. I also need to return the heat maps as Numpy arrays so I can later merge them to a video. Is there a way to achieve this? </p>