Let's say I take an image with a camera, mounted on a stepper motor that can rotate it in the X-direction (Yaw).
From an image taken by the camera, I can determine the required angular displacement of the camera in pixels in a certain rotational direction.
Let's say that the stepper motor has 200 steps in a 360 degree rotation. Therefore the degree/step of the stepper motor 1.8 degrees.
Let's also say that the resolution of the images taken by the camera is 1280x960 pixels.
Let's also say that the camera has a pixel size of 3.75 µm.
Let's also say that the focal length of the lens of the camera is 300 mm.
Using the known required angular displacement in pixels and the other known pieces of data, would it be possible for me to determine the required displacement in motor steps? What would the formula for that be?
Let's say that I would like the camera to move 20 pixels to the left. How would I determine how many steps of the motor that would be, in the desired direction?