Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

maybe you should use opencv's glob() instead:

vector<String> fn;
glob("C:/Users/Sam/Images2/", fn);
for (auto f:fn) {
    Mat img = imread(f);
}

maybe you should use opencv's glob() instead:

vector<String> fn;
glob("C:/Users/Sam/Images2/", fn);
for (auto f:fn) {
{ // f contains the complete path to the file
    Mat img = imread(f);
}