Skip to content

Commit e2d1af4

Browse files
committed
[filterSfM] fix bug in damping
1 parent 252560d commit e2d1af4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/software/pipeline/main_filterSfM.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -803,9 +803,9 @@ void propagateNeighborsScores(const std::vector<Landmark*>& landmarksData,
803803
viewScores_total = 1.;
804804
for(auto j = params.maxNbObservationsPerLandmark; j < viewScores_acc.size(); j++)
805805
{
806-
const double& v = params.dampingFactor * viewScores_acc[j];
807-
viewScores_total += v - viewScores_acc[j];
808-
viewScores_acc[j] = v;
806+
const double& v = params.dampingFactor * viewScores_acc[idx[j]];
807+
viewScores_total += v - viewScores_acc[idx[j]];
808+
viewScores_acc[idx[j]] = v;
809809
}
810810
// re-normalize
811811
for(auto j = 0; j < viewScores_acc.size(); j++)

0 commit comments

Comments
 (0)