From 706efbacd4c5213cfe1ddfaabc3adc942ffe7b49 Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Sun, 14 Jun 2015 13:43:43 -0400 Subject: [PATCH] Added CheckPoints --- openbr/plugins/metadata/checkpoints.cpp | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+), 0 deletions(-) create mode 100644 openbr/plugins/metadata/checkpoints.cpp diff --git a/openbr/plugins/metadata/checkpoints.cpp b/openbr/plugins/metadata/checkpoints.cpp new file mode 100644 index 0000000..cb353de --- /dev/null +++ b/openbr/plugins/metadata/checkpoints.cpp @@ -0,0 +1,33 @@ +#include + +namespace br +{ + +/*! + * \ingroup transforms + * \brief Checks the points in a template for missing (-1,-1) values + * \author Scott Klum \cite sklum + */ +class CheckPointsTransform : public UntrainableMetadataTransform +{ + Q_OBJECT + + Q_PROPERTY(QList indices READ get_indices WRITE set_indices RESET reset_indices STORED false) + BR_PROPERTY(QList, indices, QList()) + + void projectMetadata(const File &src, File &dst) const + { + dst = src; + for (int i=0; i