Commit a91190437c42d5a407e77c25975c2fbd24956fc2

Authored by Josh Klontz
1 parent 8b0c8984

few more tweaks

openbr/openbr_plugin.cpp
@@ -1393,7 +1393,7 @@ float compare(const Template &a, const Template &b) const @@ -1393,7 +1393,7 @@ float compare(const Template &a, const Template &b) const
1393 1393
1394 float compare(const cv::Mat &, const cv::Mat &) const 1394 float compare(const cv::Mat &, const cv::Mat &) const
1395 { 1395 {
1396 - qFatal("Logic error: distance metric did not implement a comparison function or was accessed at an unsupported level of abstraction."); 1396 + qFatal("Logic error: %s did not implement a comparison function or was accessed at an unsupported level of abstraction.", metaObject()->className());
1397 } 1397 }
1398 1398
1399 /* Distance - private methods */ 1399 /* Distance - private methods */
openbr/plugins/distance.cpp
@@ -169,7 +169,7 @@ class PipeDistance : public Distance @@ -169,7 +169,7 @@ class PipeDistance : public Distance
169 futures.waitForFinished(); 169 futures.waitForFinished();
170 } 170 }
171 171
172 - float compare(const Mat &a, const Mat &b) const 172 + float compare(const Template &a, const Template &b) const
173 { 173 {
174 float result = -std::numeric_limits<float>::max(); 174 float result = -std::numeric_limits<float>::max();
175 foreach (br::Distance *distance, distances) { 175 foreach (br::Distance *distance, distances) {