Skip to content

Commit

Permalink
change threshold for sfm validity
Browse files Browse the repository at this point in the history
  • Loading branch information
servantftechnicolor authored and cbentejac committed Nov 5, 2024
1 parent 396d82c commit 4ab99b4
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 4ab99b4

Please sign in to comment.