Save a vector with imwrite

Hi to all!
I want to save a returning vector from a buffer with imwrite or any aother compatible method.
I have used imread to read an image and i converted it then to vector for input in an FPGA emulator.Now the output i also a vector and i want to store it to check the result.
Any ideas guys?

vector < int > v={0,3,…17};
Mat a(v);

That’s all

1 Like

Thanks for your reply!
Can i use it as is in C++???
ANy other method?