Commit c51200fad3fb6b88d711f8425833f7a1836dc07b

Authored by Josh Klontz
1 parent 579fec22

added PP5CompareDistance::compare(cv::Mat, cv::Mat)

Showing 1 changed file with 5 additions and 0 deletions
openbr/plugins/pp5.cpp
@@ -322,6 +322,11 @@ class PP5CompareDistance : public Distance @@ -322,6 +322,11 @@ class PP5CompareDistance : public Distance
322 ppr_free_gallery(gallery.gallery); 322 ppr_free_gallery(gallery.gallery);
323 } 323 }
324 324
  325 + float compare(const cv::Mat &target, const cv::Mat &query) const
  326 + {
  327 + return compare(Template(target), Template(query));
  328 + }
  329 +
325 float compare(const Template &target, const Template &query) const 330 float compare(const Template &target, const Template &query) const
326 { 331 {
327 TemplateList targetList; 332 TemplateList targetList;