I am having a problem with removal of perspective effect from a 512x512 bitmap image. I am working on a paper that converts screen coordinates to coordinates in x,y,z plane (z=0 for the remapped image). i get the coordinates of this remapped image spaced very widely. How do I get a 512x512 remapped image. Any hints and preferably code would be great!