diff options
author | Justin Berger <j.david.berger@gmail.com> | 2018-03-10 23:19:09 -0700 |
---|---|---|
committer | Justin Berger <j.david.berger@gmail.com> | 2018-03-11 14:54:29 -0600 |
commit | 5564ee35b070676e2761336bc119b94b0a049da0 (patch) | |
tree | c258c0736a4e523f024901cd188b774061b6b666 | |
parent | bc207e7985fc35b521e8ad5945e35498913e86b4 (diff) | |
download | libsurvive-5564ee35b070676e2761336bc119b94b0a049da0.tar.gz libsurvive-5564ee35b070676e2761336bc119b94b0a049da0.tar.bz2 |
Tweaked the reproj error to be in terms of average error per sample
-rwxr-xr-x | src/survive_cal.c | 8 |
1 files changed, 7 insertions, 1 deletions
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); } |