Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

you can use cv::glob to traverse a whole directory of images:

String folderpath = "d:/mymages/*.jpg"
vector<String> filenames;
cv::glob(folderpath, filenames);

for (size_t i=0; i<filenames.size(); i++)
{
    Mat im = imread(filenames[i]);
    ... your processing here
}