Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

How to write a vector<cv::mat> to a single file?

Hello, I found a pull request Which states that "imwrite for multipage images implemented"

But I am unable to find the function that does so.

I used cv::imreadmulti() to read a stacked tiff file (one file with multiple images). Then did some processing on them. Now, I have a vector<cv::mat> where each Mat is a Tiff image.

How do I write them to one file which would be similar to the file I read using imreadmulti()?

Thank you