OpenCV - Array of Images, or Buffer of Mat
问题 How, can I have a buffer or array of images "Mat" with OpenCV? I mean: having a set of images, want to pick up and put in an array like How can I do this? It's like C++ normal array style? Mat images[2]; images[0] = imread(...); images[1] = imread(..); Thanks in advance. 回答1: Just declare a array of cvMat object as- Mat image_array[10]; // array of 10 images Now read the images into it according to index of the array image_array[0]=imread("/home/me/Pictures/img1.png",1); image_array[1]=imread