1 | initial version |
.exr
or .hdr
. this is the only way with imread/imwrite.you can save it as a text file, using FileStorage:
Mat floatImg = ... FileStorage fs("my.yml", FileStorage::WRITE); fs << "myimg" << floatImg; fs.release();
Mat floatImg; FileStorage fs("my.yml", FileStorage::READ); fs["myimg"] >> floatImg; fs.release();
2 | No.2 Revision |
.exr
or .hdr
. this is the only way with imread/imwrite.
Mat floatImg = ...
FileStorage fs("my.yml", FileStorage::WRITE);
fs << "myimg" << floatImg;