From a69f8f73681062a619faf81caf37794af2edd2c5 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Fri, 18 Apr 2014 11:11:53 -0400 Subject: [PATCH] switched to L1 distance --- openbr/plugins/turk.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; } }; -- libgit2 0.21.4