My program needs to compute the angle of a pixel from a computer vision camera that has 120 degrees field of view, and resolution of 640 pixels wide and 480 pixels high.

Program receives an X,Y array of pixels for each image frame from camera. For left-most pixel, X would be 0 and angle would be -60 degrees. For right-most pixel, X would be 639 and angle 60 degrees. For center pixel, X would be 320 and angle 0.

How is angle computed when (X is > 0 and < 320) and (>320 and <640)?

  • $\begingroup$ Image plane is the base of isosceles triangle with camera at the apex. $\endgroup$ – geometrikal Sep 11 '15 at 13:58
  • $\begingroup$ crossposted here and here $\endgroup$ – aledalgrande Sep 14 '15 at 1:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.