diff --git a/openbr/openbr_plugin.cpp b/openbr/openbr_plugin.cpp index 04c8db6..3fd52a8 100644 --- a/openbr/openbr_plugin.cpp +++ b/openbr/openbr_plugin.cpp @@ -1401,6 +1401,7 @@ float Distance::compare(const Template &a, const Template &b) const float Distance::compare(const cv::Mat &, const cv::Mat &) const { qFatal("Logic error: %s did not implement a comparison function or was accessed at an unsupported level of abstraction.", metaObject()->className()); + return -std::numeric_limits::max(); } /* Distance - private methods */