Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

To invert both rvec and tvec, use the following.

Mat R;
Rodrigues(rvec, R);
R = R.t();
tvec = -R*tvec;
Rodrigues(R, rvec);