I'm using cv::FileStorage
to save a float image to hard drive before
cv::FileStorage file(out_path, cv::FileStorage::WRITE);
file << "bla" << img;
This image at the point of saving is a cv::Mat
of size 7716*5364 and data type 6, which should be CV_64F
. In memory this should take up about 331 megabytes, but when I save this matrix the YAML file takes up about 1.2 gigabytes on the hard drive. Does each value contain that much overhead? I was hoping for FileStorage to do something like numpy.save, where such an array when I save it indeed takes up about 331 megabytes on the hard disk.