From 73887c6bcf1c03931f768e2cc4c948a8a8d4097c Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Mon, 20 Mar 2023 12:52:14 -0400 Subject: [PATCH] Do not allow RS with non-georeferenced datasets --- stages/dataset.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stages/dataset.py b/stages/dataset.py index c7b84ab9..a859180b 100644 --- a/stages/dataset.py +++ b/stages/dataset.py @@ -330,3 +330,8 @@ class ODMLoadDatasetStage(types.ODM_Stage): log.ODM_WARNING("No omega/phi/kappa angles found in input photos (%s), switching sfm-algorithm to incremental" % p.filename) args.sfm_algorithm = 'incremental' break + + # Rolling shutter cannot be done in non-georeferenced datasets + if args.rolling_shutter and not reconstruction.is_georeferenced(): + log.ODM_WARNING("Reconstruction is not georeferenced, disabling rolling shutter correction") + args.rolling_shutter = False