lucasb-eyer / libheatmap

High performance C heatmap generation library. Supposed to be wrapped by higher-level languages.
MIT License
302 stars 60 forks source link

How to overlay heatmap on an image? #15

Closed mirzafahad closed 5 years ago

mirzafahad commented 5 years ago

Hi Lucas,

Thanks for this great library. I have a quick question about the first image from your Readme. How did you overlay the heatmap on the DOTA map?

Regards, Fahad Mirza

lucasb-eyer commented 5 years ago

Hi, since the rendered heatmap does contain alpha channel (as long as the colormap contained it, which the default ones do) it's simply alpha-blending on top of the image. You could do that in any image editing program.