From e7625e5025f2840107089d5e8e8b4bb7c97e16d7 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Tue, 3 Dec 2013 21:22:36 -0500 Subject: [PATCH] Moved FilterOnMetadata --- openbr/plugins/meta.cpp | 36 ------------------------------------ openbr/plugins/template.cpp | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 36 deletions(-) diff --git a/openbr/plugins/meta.cpp b/openbr/plugins/meta.cpp index bbf6c68..c713c98 100644 --- a/openbr/plugins/meta.cpp +++ b/openbr/plugins/meta.cpp @@ -717,42 +717,6 @@ public: }; BR_REGISTER(Transform, DistributeTemplateTransform) -/*! - * \ingroup transforms - * \brief Filters a gallery based on the value of a metadata field. - * \author Brendan Klare \cite bklare - */ -class FilterOnMetadataTransform : public UntrainableMetaTransform -{ - Q_OBJECT - Q_PROPERTY(QString attributeName READ get_attributeName WRITE set_attributeName RESET reset_attributeName STORED false) - Q_PROPERTY(float threshold READ get_threshold WRITE set_threshold RESET reset_threshold STORED false) - Q_PROPERTY(bool isGreaterThan READ get_isGreaterThan WRITE set_isGreaterThan RESET reset_isGreaterThan STORED false) - BR_PROPERTY(QString, attributeName, "Confidence") - BR_PROPERTY(float, threshold, 0) - BR_PROPERTY(bool, isGreaterThan, true) - - void project(const TemplateList &src, TemplateList &dst) const - { - QList