Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cv::Matx, copy section to another Matx

I am porting some code from one project to another. One uses cv::Mat objects, and the other uses cv::Matx.

With Mat, I have:

cvImuMatrix.copyTo(imuPoseOut.rowRange(0, 3).colRange(0, 3));

cvImuMatrix and imuPoseOut are both:

cv::Mat imuPoseOut = cv::Mat::eye(4, 4, CV_32F);

I have not used Matx much, so my questions are:

What do these two lines need to be when using cv::Matx44d?

cv::Mat imuPoseOut = cv::Mat::eye(4, 4, CV_32F); //needs to be cv::Matx44d.
cvImuMatrix.copyTo(imuPoseOut.rowRange(0, 3).colRange(0, 3));

(Neither copyTo, nor rowrange seem to be included in Matx)

Thank you!