title: Benchmarking on the 2006 Middlebury Stereo Dataset
body: <p>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 (<a href="http://vision.middlebury.edu/stereo/data/scenes2006/" rel="nofollow noreferrer">http://vision.middlebury.edu/stereo/data/scenes2006/</a>),  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.</p>
  <p>Programming language is C++.</p>
  <p>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).</p>
  <p>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?</p>
  <blockquote>
  <p>Structure of each stereo pair is like that:</p>
  <pre><code>Folder with the name of the item (like cat, wood, baby, ...)
      disp1.png
      disp5.png
      view1.png
      view5.png
  </code></pre>
  </blockquote>
  <p>Right now at the start of the my program i load images like that:</p>
  <pre><code>String pathImageLeft = &quot;/Users/Stereo/Left/view1.png&quot;;
  String pathImageRight = &quot;/Users/Stereo/Right/view5.png&quot;;
  String pathDisparityLeft = &quot;/Users/Stereo/DisparityMap/disp1.png&quot;;
  String pathDisparityRight = &quot;/Users/Stereo/DisparityMap/disp5.png&quot;;
  </code></pre>
  <p>Thanks for your ideas.</p>