I am developing a C++ project with OpenCV. I was thinking to use Boost library to do a simple ls, but I would like to follow opencv standars..
How can I do a cross plataform listing files with opencv?
OpenCV is not created to solve such problems - you have to use another API. Look at this stacloverflow discussion. It seems that it's cross-platform.
There is a header
opencv2\contrib\contrib.hpp
It contains a class called Directory and few functions like GetListFiles,
GetListFolders and GetListFilesR.
You can try it out, but it's not available in Opencv3.