diff --git a/openbr/plugins/turk.cpp b/openbr/plugins/turk.cpp index c7df830..6d5745e 100644 --- a/openbr/plugins/turk.cpp +++ b/openbr/plugins/turk.cpp @@ -147,10 +147,9 @@ class TurkDistance : public Distance float compare(const Template &target, const Template &query) const { - const float stddev = .75; float score = 0; for (int i=0; i(0,i)-target.file.get(key + "_" + values[i]))/stddev, 2)); + score -= fabs(query.m().at(i) - target.file.get(key + "_" + values[i])); return score; } };