How to pan and tilt a still image?
Hello guys,
How can know the pan and tilt angle necessary to center a PTZ camera in a specific pixel in the image?
For example, consider that the center of the image provided by the PTZ camera has the coordinates (0,0). My question is how to determine the pan and tilt angle that I have to rotate the camera to center the camera in the pixel (30,40) ( it is an example).
I am almost sure that the mapping forrmula will require the horizontal angle of view and image resolution, in my case 58,9º and 1080x1920
Thank you for your help
What have you tried so far? And why do you think that your solution is wrong?
What you want to do is create a calibration matrix with your camera setup and the real world so that you can transform image coordinates to real world coordinates for your system. I would say google camera calibration and start reading :)