1 | initial version |
I'm not sure I understand what you are looking for, but maybe I do?
First you need to figure out what your image center is - if you can calibrate the camera you will get an actual X,Y pixel value, otherwise you can just assume it is centered in the image space. So cx = 639.5 (the midway point of 0 and 1279)
Then a little bit of trig: angle = atan( (X-cx) / f) Where f is the focal length in pixels, (8 / 0.0044) = 1667
So for an image point at 800 you would get atan((800-639.5)/1667) = 5.5 degrees
Be aware that your atan() function probably returns the angle in radians.
You are really better off calibrating your camera first if you need accurate results, particularly if there is optical distortion..