Opencv Write an image with two channel -
how write cv::mat
type cv_32fc2
.
is possible write 2 channels in tiff file ? or write each channel separately ?
if can live (large!) textfile, use filestorage:
mat m; // 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;
Comments
Post a Comment