1 | initial version |
You can use projectPoints() for that. rvec
is the rotation vector that can be obtained from the rotation matrix with Rodrigues()
. tvec
is the translation vector so T[12], T[13], T[14]
. You need also the intrinsic parameters. For the distortion, you can use a zero distortion if you don't have them.
Be careful when you extract the rotation matrix, ARPose T
is column-major order.