title: Distance image to objects in matlab
body: <p>I have an image that contains some points (or objects). I want to create another image base on this image that shows the distance from these objects. For example, this new image should has the maximum value at the object locations. Is there any solution in matlab?</p>
  
  <p><img src="https://i.stack.imgur.com/Hc7ay.png" alt="enter image description here"></p>