title: Generate a HeatMap from blobs different sizes using C++
body: <p>I want to obtain a heatmap from the attached image. The bigger blobs will have darker(red) regions and then slowly fade to lighter blue shades. The smaller blobs will have lighter variations. But keep in mind that the center of the bigger blob should be the hottest region. 
  I think the blobs can be made more curvaceous using gaussian blur and thresholding them.</p>
  
  <p>I used opencvs method like using distance transform and then using apply colormap. But this feels like its more like inverted circles like skeletons(thinning) of the blobs. I want a better gradient heat map. </p>
  
  <p><a href="https://i.stack.imgur.com/HwYPp.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HwYPp.png" alt="enter image description here"></a></p>
  
  <p>I want it to be more like <a href="https://i.stack.imgur.com/YzKuE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YzKuE.png" alt="enter image description here"></a></p>
  
  <p>not like this from opencv<a href="https://i.stack.imgur.com/mNsze.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mNsze.png" alt="enter image description here"></a></p>