How to pan and tilt a still image?

asked 2014-10-19 12:42:50 -0600

JCNeves gravatar 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

edit retag flag offensive close merge delete

Comments

What have you tried so far? And why do you think that your solution is wrong?

FooBar gravatar imageFooBar ( 2014-10-20 01:41:56 -0600 )edit

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 :)

StevenPuttemans gravatar imageStevenPuttemans ( 2014-10-20 04:35:36 -0600 )edit