From a450d8a6b3197c5259ddc63814d40263749b8d4c Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Wed, 19 Oct 2016 11:56:19 -0600 Subject: [PATCH] Updated checkpoints --- openbr/plugins/metadata/checkpoints.cpp | 7 +++++++ 1 file changed, 7 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/metadata/checkpoints.cpp b/openbr/plugins/metadata/checkpoints.cpp index 4500490..3f03f61 100644 --- a/openbr/plugins/metadata/checkpoints.cpp +++ b/openbr/plugins/metadata/checkpoints.cpp @@ -14,11 +14,18 @@ class CheckPointsTransform : public UntrainableMetadataTransform Q_OBJECT Q_PROPERTY(QList indices READ get_indices WRITE set_indices RESET reset_indices STORED false) + Q_PROPERTY(int count READ get_count WRITE set_count RESET reset_count STORED false) BR_PROPERTY(QList, indices, QList()) + BR_PROPERTY(int, count, 0) void projectMetadata(const File &src, File &dst) const { dst = src; + + const QList points = src.points(); + if (count && points.size() < count) + dst.fte = true; + for (int i=0; i