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

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

c# - WPF+EF - The operation cannot be completed because the DbContext has been disposed -

jsf - How to ajax update an item in the footer of a PrimeFaces dataTable? -