Commit 9033d5af07462186896954560fdbce7342bfa275
1 parent
f7368019
Removed matchprob comment
Showing
2 changed files
with
3 additions
and
4 deletions
openbr/core/fuse.cpp
| @@ -14,7 +14,6 @@ | @@ -14,7 +14,6 @@ | ||
| 14 | * limitations under the License. * | 14 | * limitations under the License. * |
| 15 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ | 15 | * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */ |
| 16 | 16 | ||
| 17 | -#include <QFile> | ||
| 18 | #include <QList> | 17 | #include <QList> |
| 19 | #include <QStringList> | 18 | #include <QStringList> |
| 20 | #include <limits> | 19 | #include <limits> |
openbr/plugins/quality.cpp
| @@ -181,9 +181,9 @@ class MatchProbabilityDistance : public Distance | @@ -181,9 +181,9 @@ class MatchProbabilityDistance : public Distance | ||
| 181 | float compare(const Template &target, const Template &query) const | 181 | float compare(const Template &target, const Template &query) const |
| 182 | { | 182 | { |
| 183 | float rawScore = distance->compare(target, query); | 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 | + //return -log(rawScore+1); |
| 185 | + if (rawScore == -std::numeric_limits<float>::max()) return rawScore; | ||
| 186 | + return mp(rawScore, gaussian); | ||
| 187 | } | 187 | } |
| 188 | 188 | ||
| 189 | void store(QDataStream &stream) const | 189 | void store(QDataStream &stream) const |