Ask Your Question

Revision history [back]

You have two options. Option 1 below is the easier one.

  1. Create a plain text file containing all the image names in your library. Read each image after picking up the name from the text file.
  2. Use boost library to find out the image names in the directory. Read those one by one.

In each of the above cases, I suggest using imread to read individual images. Of course, as suggested in the comment above, if your images are sequentially numbered, you should be able to generate the file names and read images using imread.