diff --git a/openbr/plugins/regions.cpp b/openbr/plugins/regions.cpp index 1322248..dad3d91 100644 --- a/openbr/plugins/regions.cpp +++ b/openbr/plugins/regions.cpp @@ -242,19 +242,23 @@ class DupTransform : public UntrainableMetaTransform { Q_OBJECT Q_PROPERTY(int n READ get_n WRITE set_n RESET reset_n STORED false) + Q_PROPERTY(bool dupLandmarks READ get_dupLandmarks WRITE set_dupLandmarks RESET reset_dupLandmarks STORED false) BR_PROPERTY(int, n, 1) + BR_PROPERTY(bool, dupLandmarks, false) void project(const Template &src, Template &dst) const { - QList points = src.file.points(); - QList rects = src.file.rects(); - for (int i=0; i points = src.file.points(); + QList rects = src.file.rects(); + + for (int i=1; i