When trying to save a `cv::Matx` to a file using FileStorage, openCV throws some errors which say saving a Matx is not yet implemented. A workaround is to cast the Matx to a `cv::Mat` when writing:
cv::FileStorage fs("file.xml", cv::FileStorage::WRITE);
cv::Matx33d x;
fs<<"X"<>cv::Mat(x); // x contains gibberish
Is there a simple workaround for this, without resorting to creating temporary `cv::Mat`'s and casting them to Matx after reading?
↧