How center the eyes of human face at specific pixels? I am facing a problem with processing some frontal facial images.

I need to adjust the centers of the eyes (irises) to be at certain specific pixels in the image. In other words, i need to transform the image until the centers of the eyes are at specific pixels.

Can anyone help me with this problem, an algorithm, technique, ...etc. that might solve this problem ?

Thanks,
Assuming you can find the centers of the eyes...


Rotate - Find the difference of the angle between the actual eyes and your desired angle. Rotate image accordingly.
Scale - Find the distance between eyes. Scale according to the desired distance.
Translate - Move the image so that one eye lines up. If you've rotated and scaled properly, both should now be in the desired spot.