diff --git a/openbr/openbr_plugin.h b/openbr/openbr_plugin.h index e5e09c2..da9b8d0 100644 --- a/openbr/openbr_plugin.h +++ b/openbr/openbr_plugin.h @@ -1376,6 +1376,28 @@ private: { (void) targetGallery; (void) queryGallery; (void) output; return false; } }; +class BR_EXPORT Representation : public Object +{ + Q_OBJECT + +public: + virtual ~Representation() {} + + virtual cv::Mat init(cv::Mat &image) const; + virtual QList evaluate(const cv::Mat &image, const QList &indices) const; +}; + +class BR_EXPORT Classifier : public Object +{ + Q_OBJECT + +public: + virtual ~Classifier() {} + + virtual void train(const QList &images, const QList &labels); + virtual float classify(const QList &image) const; +}; + /*! * \brief Returns \c true if the algorithm is a classifier, \c false otherwise. *