Is there a reversible way to convert an OpenCV cv::Mat object to an Eigen::Matrix?
cv::Mat
Eigen::Matrix
e.g., Some way of doing:
cv::Mat cvMat;
This works for me,
#include cv::Mat image; image = cv::imread("/dataset/images/15207_angle_image.jpg", CV_LOA D_IMAGE_GRAYSCALE); // Read the file Eigen::Matrix eigen_mat; cv::cv2eigen(image, eigen_mat);