diff --git a/src/theia/sfm/filter_view_pairs_from_relative_translation.cc b/src/theia/sfm/filter_view_pairs_from_relative_translation.cc index b7a7783a8..04f49812b 100644 --- a/src/theia/sfm/filter_view_pairs_from_relative_translation.cc +++ b/src/theia/sfm/filter_view_pairs_from_relative_translation.cc @@ -191,7 +191,7 @@ void ComputeMeanVariance( for (const auto& translation : relative_translations) { *variance += (translation.second - *mean).cwiseAbs2(); } - *variance /= static_cast(relative_translations.size() - 1); + *variance /= static_cast(relative_translations.size()); } // Performs a single iterations of the translation filtering. This method is