Perspective matrix and camera parameters
I have an image with N points which I know (I, j, x, y, z). I calculated the perspective matrix (4,4) that transforms any x,y,z to the image I,j. I don't know anything about the camera that generates the image. Is there a way to calculate the location of the camera from the perspective matrix? I want to know the rotation angles of the camera (rolll, pitch, heading) and the translation tx, Ty, tz. Also, how can I get the camera intrinsic matrix? I'll appreciate any leads.
thanks you so much.
Just to be sure. Are you familiar with calib3d module documentation and tutorials? You can also try to read C++ samples and opencv_stitching module.