Reputation: 739
How write a cv::Mat
which the type is CV_32FC2
.
Is it possible to write the two channels in TIFF file ? or write each channel separately ?
Upvotes: 0
Views: 1514
Reputation: 39796
if you can live with a (large!) textfile, use the FileStorage:
Mat m; // your CV_32FC2
FileStorage fs("my.yml",FileStorage::WRITE);
fs << "mat1" << m; // key, value store
fs.release(); // flush.
FileStorage fs1("my.yml",FileStorage::READ);
fs1["mat1"] >> m;
Upvotes: 1