Commit 533fc664b88abb92a128021b88959fc24bff2a85
1 parent
f7368019
oops
Showing
1 changed file
with
2 additions
and
3 deletions
openbr/plugins/quality.cpp
| ... | ... | @@ -181,9 +181,8 @@ class MatchProbabilityDistance : public Distance |
| 181 | 181 | float compare(const Template &target, const Template &query) const |
| 182 | 182 | { |
| 183 | 183 | float rawScore = distance->compare(target, query); |
| 184 | - return -log(rawScore+1); | |
| 185 | - //if (rawScore == -std::numeric_limits<float>::max()) return rawScore; | |
| 186 | - //return mp(rawScore, gaussian); | |
| 184 | + if (rawScore == -std::numeric_limits<float>::max()) return rawScore; | |
| 185 | + return mp(rawScore, gaussian); | |
| 187 | 186 | } |
| 188 | 187 | |
| 189 | 188 | void store(QDataStream &stream) const | ... | ... |