How to obtain a camera image without distortion and the effects of pose?

IF if is really about human heads, please take a look at satya’s solvePnP tutorial . this will give you at least the desired homography. then have a good look at the paper mentioned above on: ‘how to move the pixels’