I'm trying to read multiple images from a file using OpenCV. The current code I have can only read one image at a time
Mat source = Highgui.imread(filename,Highgui.CV_LOAD_IMAGE_COLOR);
I'd like to load the images into an array and then read them using OpenCV. I'm not sure how to proceed. Any help would be appreciated.
The same logic can be translated into Java. Just Google around to see how to open a directory and iterate through its files in Java. The code and comments should be self-explanatory.
EDIT 1 Iterate through folder in Java