Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

How to save and load Matx from a file?

$
0
0
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?

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>