]> git.sesse.net Git - nageru/blobdiff - eval.cpp
Allow symlinked frame files. Useful for testing.
[nageru] / eval.cpp
index ef47a6899877e8a10a65c666cf36e00770f8e988..85783bb58a1a83d95b92391c6fbc37d234f6d3c2 100644 (file)
--- a/eval.cpp
+++ b/eval.cpp
@@ -1,12 +1,11 @@
 // 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;
 
@@ -20,7 +19,7 @@ int main(int argc, char **argv)
                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)