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.
I had to implement something similar and I didn't need to view the images all I wanted was to extract some data from them but I'm going to add the imread anyway. Here is the code:
this is going to display the first image in the array and you will have to press any key to go to the next one. Hope this helps
Just declare a array of cvMat object as-
Now read the images into it according to index of the array