From 834237b60593ce3259e89b59a92ce76a09e26c21 Mon Sep 17 00:00:00 2001 From: Fabien Servant Date: Wed, 16 Oct 2024 15:01:20 +0200 Subject: [PATCH] change threshold for sfm validity --- .../sequential/ReconstructionEngine_sequentialSfM.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/aliceVision/sfm/pipeline/sequential/ReconstructionEngine_sequentialSfM.cpp b/src/aliceVision/sfm/pipeline/sequential/ReconstructionEngine_sequentialSfM.cpp index cb8705599d..d31380009a 100644 --- a/src/aliceVision/sfm/pipeline/sequential/ReconstructionEngine_sequentialSfM.cpp +++ b/src/aliceVision/sfm/pipeline/sequential/ReconstructionEngine_sequentialSfM.cpp @@ -227,7 +227,16 @@ bool ReconstructionEngine_sequentialSfM::process() exportStatistics(elapsedTime); - return !_sfmData.getPoses().empty(); + int nbviews = _sfmData.getViews().size(); + int nbposes = _sfmData.getPoses().size(); + + int minPoses = 1; + if (nbviews > 5) + { + minPoses = 3; + } + + return (nbposes >= minPoses); } void ReconstructionEngine_sequentialSfM::initializePyramidScoring()