Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to rotate a camera to point to an object on the screen

I have a camera which points in a direct, I have a unit vector $\vec{c}$ which describes the orientation of the camera in world coordinates.

There is a point of interest in the image taken by the camera. Given the field of view of the camera and image size, I can compute two vectors in pixel space:

$\vec{a}$, the principal point (center point of the image), and

$\vec{b}$ the point of interest in pixel space.

I want to rotate the camera $\vec{c}$ (in world coordinates) such that it now points at the object represented on screen by $\vec{b}$

It's unclear to me how to transition between the on-screen pixel-space orientation of vectors $\vec{a}$ and $\vec{b}$ and the world space vector $\vec{c}$.

How to rotate a camera to point to an object on the screen

I have a camera which points in a direct, I have a unit vector $\vec{c}$ C which describes the orientation of the camera in world coordinates.

There is a point of interest in the image taken by the camera. Given the field of view of the camera and image size, I can compute two vectors in pixel space:

$\vec{a}$, A, the principal point (center point of the image), and

$\vec{b}$ B the point of interest in pixel space.

I want to rotate the camera $\vec{c}$ C (in world coordinates) such that it now points at the object represented on screen by $\vec{b}$B

It's unclear to me how to transition between the on-screen pixel-space orientation of vectors $\vec{a}$ A and $\vec{b}$ B and the world space vector $\vec{c}$.C.