changes and data/eval files for new evaluations
[IRC.git] / Robust / src / Benchmarks / SSJava / EyeTracking / ImageReader.java
index d89c14cd1f477e39be6bb21df7f048931103be9d..36aa569f35135b7ebf2ae315c7bd9cbccfcfaf17 100644 (file)
@@ -1,8 +1,21 @@
 public class ImageReader {
+
+  static int idx = 0;
+
   public ImageReader() {
   }
 
   @TRUST
+  public static Image getImage() {
+    System.out.println(idx);
+    Image image = ImageReader.readImage("data/b" + idx + ".bmp");
+    idx++;
+    if (idx > 73) {
+      return null;
+    }
+    return image;
+  }
+
   public static Image readImage(String file) {
 
     FileInputStream fs = new FileInputStream(file);