How to write a Float Mat to a file in OpenCV
Using pure OpenCV API calls: // Declare what you need cv::FileStorage file(“some_name.ext”, cv::FileStorage::WRITE); cv::Mat someMatrixOfAnyType; // Write to file! file << “matName” << someMatrixOfAnyType; The file extension can be xml or yml. In both cases you get a small header that you can easily remove/parse, then you have access to the data in a floating … Read more