c++ - Reading in images in a folder withouth knowing the exact names -
i have folder full of images. want use them compute optical flow opencv. cross-platform way read in images without having know exact file names?
i rename images 1.png, 2.png, , on, if helps.
there's hidden gem in core/utility.hpp:
void glob(string pattern, std::vector<string>& result, bool recursive = false);
(takes dir or similar, returns vector of filenames)
Comments
Post a Comment