title: How to warp an image in python?
body: <p>How do i transform the image to make <strong>warp effect</strong> using pull warp like in the below image? </p>
  
  <p>Left image is the input and right one is the output (warped version)</p>
  
  <p>I read this article <a href="https://subscription.packtpub.com/book/application_development/9781785283932/1/ch01lvl1sec16/image-warping" rel="nofollow noreferrer">Image warping</a> and found some hint. Now my question is that how do i calculate the offset ?</p>
  
  <p><a href="https://i.stack.imgur.com/ajViZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ajViZ.png" alt="enter image description here"></a></p>