Could inverse extrinsics
This commit is contained in:
@@ -315,6 +315,13 @@ std::ostream &operator<<(std::ostream &os, const MotionIntrinsics &in);
|
||||
struct MYNTEYE_API Extrinsics {
|
||||
double rotation[3][3]; /**< rotation matrix */
|
||||
double translation[3]; /**< translation vector */
|
||||
|
||||
Extrinsics Inverse() const {
|
||||
return {{{rotation[0][0], rotation[1][0], rotation[2][0]},
|
||||
{rotation[0][1], rotation[1][1], rotation[2][1]},
|
||||
{rotation[0][2], rotation[1][2], rotation[2][2]}},
|
||||
{-translation[0], -translation[1], -translation[2]}};
|
||||
}
|
||||
};
|
||||
|
||||
MYNTEYE_API
|
||||
|
||||
Reference in New Issue
Block a user