my problem is the following: I have developed a superpixel segmentation algorithm and i want to test how the superpixel behave in stereo imagery. For this i use the Middlebury Stereo Dataset 2006 (http://vision.middlebury.edu/stereo/data/scenes2006/), right now i load one pair of images segment them and then compute my metrics (basically a fancy IOU) on it. This now works properly and now i want to extend it that it not only uses one pair of stereo images but the whole dataset.
Programming language is C++.
Here lies the problem: How would i efficiently load all images? Because the pairs are all in independent folders (for the structure of the folder see below).
My idea would be to have a list of paths to the folders and then import all images from one folder, compute everything and then load the next folder. How would i do that?
Structure of each stereo pair is like that:
Folder with the name of the item (like cat, wood, baby, ...) disp1.png disp5.png view1.png view5.png
Right now at the start of the my program i load images like that:
String pathImageLeft = "/Users/Stereo/Left/view1.png";
String pathImageRight = "/Users/Stereo/Right/view5.png";
String pathDisparityLeft = "/Users/Stereo/DisparityMap/disp1.png";
String pathDisparityRight = "/Users/Stereo/DisparityMap/disp5.png";
Thanks for your ideas.