title: How to warp an image into a trapezoidal shape in MATLAB
body: <p>I am working with the baboon image and what I want is to obtain an image like this:</p>
  
  <p><a href="https://i.stack.imgur.com/XOnIM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/XOnIM.png" alt="enter image description here"></a></p>
  
  <p>I have tried with <code>fitgeotrans</code>, <code>projective2d</code> and <code>affine2d</code> without success, maybe I don't understand correctly the behavior of these functions.</p>
  
  <p>Thank you for your help.</p>