Skip to content

Commit

Permalink
gs-reinforcer: Add test to avoid some computations
Browse files Browse the repository at this point in the history
  • Loading branch information
fducroquet committed Dec 8, 2017
1 parent 879a755 commit b3bf59c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public List<Match> alignWith(Labels item) {
AffineTransformation possibleTransformation = new AffineTransformation(selectedMatches);

for (int j = 0; j < matches.size(); j++)
if (j != i && possibleTransformation.computeError(matches.get(j)) < THRESHOLD) {
if (j != i && !tested.contains(j) && possibleTransformation.computeError(matches.get(j)) < THRESHOLD) {
selectedMatches.add(matches.get(j));
tested.add(j);
}
Expand Down

0 comments on commit b3bf59c

Please sign in to comment.