title: Determine distance to vehicle in image (Matlab, OpenCV)
body: <p>I have 2 image:</p>
  
  <p><a href="https://i.stack.imgur.com/rRqZN.png" rel="nofollow noreferrer">1</a> Initial image when I detected car. </p>
  
  <p><a href="https://i.stack.imgur.com/rRqZN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rRqZN.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/nPdlr.jpg" rel="nofollow noreferrer">2</a> IPM image when I transformed image to another plan.
  <a href="https://i.stack.imgur.com/nPdlr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nPdlr.jpg" alt="enter image description here"></a></p>
  
  <p>I don't have any information about camera parameters.
  I know the location of the car in original image and in IPM image and I wish to know how can I determinate the distance between the car and the camera. Can we assume the height of the camera is 1 m.</p>
  
  <p>Exist any formula or algorithm for that?</p>