Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

extract the data from a cv::Matx44d?

Hi, I am new to the Matx format, and am trying to extract data into a std::vector and a cv::Mat.

I have :

cv::Matx44d resultMat;

which is a 4 x 4 transformation matrix. I wish to extract the translation part of this (the last col) into a std::vector, and the rotation part ( a 3 x 3 matrix) into a new Mat object.

How can I go about this?

Thanks!

extract the data from a cv::Matx44d?

Hi, I am new to the Matx format, and am trying to extract data into a std::vector and a cv::Mat.

I have :

cv::Matx44d resultMat;

which is a 4 x 4 transformation matrix. I wish to extract the translation part of this (the last col) into a std::vector, and the rotation part ( a 3 x 3 (the top left 3x3 matrix) into a new Mat object.

How can I go about this?

Thanks!