From acace5582e90674d4c97417179da6cc2a2a5e3fb Mon Sep 17 00:00:00 2001 From: Josh Klontz Date: Thu, 14 Nov 2013 13:34:05 -0500 Subject: [PATCH] implemented ShowTrainingTransform --- openbr/plugins/gui.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/gui.cpp b/openbr/plugins/gui.cpp index c632be6..526a480 100644 --- a/openbr/plugins/gui.cpp +++ b/openbr/plugins/gui.cpp @@ -510,6 +510,30 @@ BR_REGISTER(Transform, ShowTransform) /*! * \ingroup transforms + * \brief Show the training data + * \author Josh Klontz \cite jklontz + */ +class ShowTrainingTransform : public Transform +{ + Q_OBJECT + Q_PROPERTY(br::Transform *show READ get_show WRITE set_show RESET reset_show STORED false) + BR_PROPERTY(br::Transform*, show, make("Show")) + + void train(const TemplateList &data) + { + TemplateList dst; + show->project(data, dst); + } + + void project(const Template &src, Template &dst) const + { + dst = src; + } +}; +BR_REGISTER(Transform, ShowTrainingTransform) + +/*! + * \ingroup transforms * \brief Manual selection of landmark locations * \author Scott Klum \cite sklum */ -- libgit2 0.21.4