From 26f3043163e1175fbd0357a76ec0b33b639603fa Mon Sep 17 00:00:00 2001 From: JordanCheney Date: Wed, 21 Jan 2015 16:49:50 -0500 Subject: [PATCH] Change to threshold convention --- openbr/openbr_plugin.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbr/openbr_plugin.h b/openbr/openbr_plugin.h index cd0ca79..0d91e37 100644 --- a/openbr/openbr_plugin.h +++ b/openbr/openbr_plugin.h @@ -1401,7 +1401,9 @@ public: static Classifier *make(QString str, QObject *parent); /*!< \brief Make a classifier from a string. */ virtual void train(const QList &images, const QList &labels) = 0; - virtual float classify(const cv::Mat &image, bool returnSum = false) const = 0; + // By convention, classify should return a value normalized such that the threshold is 0. Negative values + // can be interpreted as negative samples while positives values are positive samples. + virtual float classify(const cv::Mat &image) const = 0; }; /*! -- libgit2 0.21.4