diff --git a/openbr/plugins/template.cpp b/openbr/plugins/template.cpp index 2cd7c61..fdffab5 100644 --- a/openbr/plugins/template.cpp +++ b/openbr/plugins/template.cpp @@ -52,39 +52,23 @@ BR_REGISTER(Transform, RemoveTemplatesTransform) /*! * \ingroup transforms - * \brief Filters a gallery based on the value of a metadata field. + * \brief Removes a metadata field from all templates * \author Brendan Klare \cite bklare */ -class FilterOnMetadataTransform : public UntrainableMetaTransform +class RemoveMetadataTransform : public UntrainableTransform { 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