From 5564ee35b070676e2761336bc119b94b0a049da0 Mon Sep 17 00:00:00 2001 From: Justin Berger Date: Sat, 10 Mar 2018 23:19:09 -0700 Subject: Tweaked the reproj error to be in terms of average error per sample --- src/survive_cal.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/survive_cal.c b/src/survive_cal.c index bcbe25c..696cce4 100755 --- a/src/survive_cal.c +++ b/src/survive_cal.c @@ -677,7 +677,13 @@ static void handle_calibration( struct SurviveCalData *cd ) reproj_err += sqrt(err); } - reproj_err = reproj_err / cnt; + // This represents the average distance we were off in our + // reprojection. + // Different libraries have slightly different variations on + // this theme, + // but this one has an intuitive meaning + reproj_err = (reproj_err / cnt); + SV_INFO("Reproject error was %.13g for lighthouse %d", reproj_err, lh); } -- cgit v1.2.3