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