Hello,
I am using OpenCV to calibrate the camera, which gives me a 3x3 matrix of intrinsic parameters
fx 0 ox
0 fy oy
0 0 1
with the actual values as follows:
966.64154, 0.0 , 477.89288
0.0 , 966.64154, 363.23544
0.0 , 0.0 , 1.0
I also use OpenCV to compute the location of cubes with respect to the camera, meaning that I don't need to move the camera, only the cubes (1 or 2 for now).
I see that I can convert an OpenCV matrix directly into a row-major float array and use that in JPCT to move the cubes.
However, I'm not sure how to use the camera parameters matrix. It seems that I can't set the projection matrix directly in the Camera class. And I'm not exactly sure how to convert those parameters into something that the Camera class understands (like FOV, for example).
Any hints?