Commit 3c69526be72b24eb771a847f4346fac74fd6d371
1 parent
4341a47d
sort comparisons with std::stable_sort
Showing
1 changed file
with
1 additions
and
1 deletions
openbr/core/eval.cpp
| @@ -188,7 +188,7 @@ float Evaluate(const Mat &simmat, const Mat &mask, const QString &csv, const QSt | @@ -188,7 +188,7 @@ float Evaluate(const Mat &simmat, const Mat &mask, const QString &csv, const QSt | ||
| 188 | if (impostorCount == 0) qFatal("No impostor scores!"); | 188 | if (impostorCount == 0) qFatal("No impostor scores!"); |
| 189 | 189 | ||
| 190 | // Sort comparisons by simmat_val (score) | 190 | // Sort comparisons by simmat_val (score) |
| 191 | - std::sort(comparisons.begin(), comparisons.end()); | 191 | + std::stable_sort(comparisons.begin(), comparisons.end()); |
| 192 | 192 | ||
| 193 | QList<OperatingPoint> operatingPoints; | 193 | QList<OperatingPoint> operatingPoints; |
| 194 | QList<float> genuines; genuines.reserve(sqrt((float)comparisons.size())); | 194 | QList<float> genuines; genuines.reserve(sqrt((float)comparisons.size())); |