// Evaluate a .flo file against ground truth,
// outputting the average end-point error.
-#include <assert.h>
-#include <stdio.h>
+#include "util.h"
+#include <assert.h>
#include <memory>
-
-#include "util.h"
+#include <stdio.h>
using namespace std;
sum_epe += eval_flow(argv[i], argv[i + 1]);
++num_flows;
}
- fprintf(stderr, "Average EPE: %.2f pixels\n", sum_epe / num_flows);
+ printf("Average EPE: %.2f pixels\n", sum_epe / num_flows);
}
double eval_flow(const char *filename1, const char *filename2)