From a6f1411646b247c377865d319d572c2a71db4eca Mon Sep 17 00:00:00 2001 From: Scott Klum Date: Tue, 27 Jan 2015 12:06:30 -0500 Subject: [PATCH] Removed some old flip logic --- openbr/plugins/algorithms.cpp | 4 ++-- openbr/plugins/template.cpp | 7 ------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/openbr/plugins/algorithms.cpp b/openbr/plugins/algorithms.cpp index 238706d..ef69e8f 100644 --- a/openbr/plugins/algorithms.cpp +++ b/openbr/plugins/algorithms.cpp @@ -80,9 +80,9 @@ class AlgorithmsInitializer : public Initializer Globals->abbreviations.insert("ContrastEnhanced", "Open+Affine(256,256,0.37,0.45)+Cvt(Gray)+Blur(1.1)+Gamma(0.2)+DoG(1,2)+ContrastEq(0.1,10)"); Globals->abbreviations.insert("ColoredLBP", "Open+Affine(128,128,0.37,0.45)+Cvt(Gray)+Blur(1.1)+Gamma(0.2)+DoG(1,2)+ContrastEq(0.1,10)+LBP(1,2)+ColoredU2"); Globals->abbreviations.insert("FlipiBug","Flip+ReorderPoints([ 0, 1, 2, 3, 4, 5, 6, 7, 17,18,19,20,21,31,32,36,37,38,39,40,41,48,49,50,55,56,60,61,65], \ - [16,15,14,13,12,11,10, 9, 26,25,24,23,22,35,34,45,44,43,42,47,46,54,53,52,59,58,64,63,67],true)"); + [16,15,14,13,12,11,10, 9, 26,25,24,23,22,35,34,45,44,43,42,47,46,54,53,52,59,58,64,63,67])"); Globals->abbreviations.insert("FlipiBugNoJaw","Flip+ReorderPoints([0,1,2,3,4,14,15,19,20,21,22,23,24,31,32,33,38,39,43,44,48], \ - [9,8,7,6,5,18,17,28,27,26,25,30,29,37,36,35,42,41,47,46,50],true)"); + [9,8,7,6,5,18,17,28,27,26,25,30,29,37,36,35,42,41,47,46,50])"); // Transforms Globals->abbreviations.insert("FaceDetection", "Open+Cvt(Gray)+Cascade(FrontalFace)"); diff --git a/openbr/plugins/template.cpp b/openbr/plugins/template.cpp index 94441db..20e9467 100644 --- a/openbr/plugins/template.cpp +++ b/openbr/plugins/template.cpp @@ -222,18 +222,11 @@ class ReorderPointsTransform : public UntrainableMetadataTransform Q_PROPERTY(QList from READ get_from WRITE set_from RESET reset_from STORED false) Q_PROPERTY(QList to READ get_to WRITE set_to RESET reset_to STORED false) - Q_PROPERTY(bool flippedOnly READ get_flippedOnly WRITE set_flippedOnly RESET reset_flippedOnly STORED false) BR_PROPERTY(QList, from, QList()) BR_PROPERTY(QList, to, QList()) - BR_PROPERTY(bool, flippedOnly, false) void projectMetadata(const File &src, File &dst) const { - if (flippedOnly && !src.contains("Flipped")) { - dst = src; - return; - } - if (from.size() == to.size()) { QList points = src.points(); for (int i=0; i