Advertisement
cymplecy

Persepective mapping

Jun 7th, 2017
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. Imagine a camera pointing down-ish on a rectangle laid out on the floor
  2. Taking a pic - 4 corner x/y pixels values are
  3. top left 73,100
  4. top right 280,96
  5. bottom right 300,230
  6. bottom left 50,224
  7. with a point p at px,py
  8. i.e
  9. tl tr
  10.  
  11. p
  12.  
  13. bl br
  14.  
  15. now I want to take point p and work out whats its position within the rectangle if the image was transformed into a birds eye view
  16.  
  17. eg
  18. tl tr
  19.  
  20.  
  21. p
  22.  
  23.  
  24. bl br
  25. (assume image is now width 360, height 240)
  26. The question I need answering is how do I determine the new x/y co-ords of p within new frame 240x320 frame of ref
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement