I'm using a physical camera in Unity where I set the focal length f and sensor size sx
and sy
. Can these parameters and image resolution be used to create a camera calibration matrix? I probably need the focal length in terms of pixels and the cx
and cy
parameters that denote the deviation of the image plane center from the camera's optical axis. Is cx = w/2
and cy = h/2
correct in this case (w
: width, h
: height)?
I need the calibration matrix to compute a homography in OpenCV using the camera pose from Unity.