This post is about how to copy Mat data to vector and copy vector data to Mat. Reference this example source code. printf("///////...