Skip to content

Commit 5ae104a

Browse files
Fabien Servantservantftransperfect
authored andcommitted
change threshold for sfm validity
1 parent c743a80 commit 5ae104a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

src/aliceVision/sfm/pipeline/sequential/ReconstructionEngine_sequentialSfM.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,16 @@ bool ReconstructionEngine_sequentialSfM::process()
227227

228228
exportStatistics(elapsedTime);
229229

230-
return !_sfmData.getPoses().empty();
230+
int nbviews = _sfmData.getViews().size();
231+
int nbposes = _sfmData.getPoses().size();
232+
233+
int minPoses = 1;
234+
if (nbviews > 5)
235+
{
236+
minPoses = 3;
237+
}
238+
239+
return (nbposes >= minPoses);
231240
}
232241

233242
void ReconstructionEngine_sequentialSfM::initializePyramidScoring()

0 commit comments

Comments
 (0)