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) {