From a91190437c42d5a407e77c25975c2fbd24956fc2 Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Tue, 6 May 2014 15:45:32 -0400 Subject: [PATCH] few more tweaks --- openbr/openbr_plugin.cpp | 2 +- openbr/plugins/distance.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 6f2717a..f50fcee 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -1393,7 +1393,7 @@ float compare(const Template &a, const Template &b) const float compare(const cv::Mat &, const cv::Mat &) const { - qFatal("Logic error: distance metric did not implement a comparison function or was accessed at an unsupported level of abstraction."); + qFatal("Logic error: %s did not implement a comparison function or was accessed at an unsupported level of abstraction.", metaObject()->className()); } /* Distance - private methods */ diff --git a/openbr/plugins/distance.cpp b/openbr/plugins/distance.cpp index ca90b3f..214be02 100644 --- a/openbr/plugins/distance.cpp +++ b/openbr/plugins/distance.cpp @@ -169,7 +169,7 @@ class PipeDistance : public Distance futures.waitForFinished(); } - float compare(const Mat &a, const Mat &b) const + float compare(const Template &a, const Template &b) const { float result = -std::numeric_limits::max(); foreach (br::Distance *distance, distances) { -- libgit2 0.21.4