Perspective matrix and camera parameters

asked Oct 27 '12

this post is marked as community wiki

This post is a wiki. Anyone with karma >50 is welcome to improve it.

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.

Preview: (hide)

Comments

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.

Kirill Kornyakov gravatar imageKirill Kornyakov (Oct 29 '12)edit