diff --git a/openbr/core/bee.cpp b/openbr/core/bee.cpp index 1d2658c..fb840ca 100644 --- a/openbr/core/bee.cpp +++ b/openbr/core/bee.cpp @@ -96,7 +96,7 @@ void BEE::writeSigset(const QString &sigset, const br::FileList &files, bool ign if ((key == "Index") || (key == "Subject")) continue; metadata.append(key+"=\""+QtUtils::toString(file.value(key))+"\""); } - lines.append("\t"); + lines.append("\t("Subject") +"\">"); lines.append("\t\t"); lines.append("\t"); } diff --git a/openbr/plugins/draw.cpp b/openbr/plugins/draw.cpp index 7fb0051..01d816a 100644 --- a/openbr/plugins/draw.cpp +++ b/openbr/plugins/draw.cpp @@ -50,7 +50,7 @@ class DrawTransform : public UntrainableTransform dst.m() = inPlace ? src.m() : src.m().clone(); if (points) { - const QList pointsList = OpenCVUtils::toPoints(src.file.points()); + const QList pointsList = OpenCVUtils::toPoints(src.file.namedPoints() + src.file.points()); for (int i=0; i("Affine_0")); srcPoints[1] = OpenCVUtils::toPoint(src.file.get("Affine_1")); - - dst.file.set("Affine_0", OpenCVUtils::fromPoint(dstPoints[0])); - dst.file.set("Affine_1", OpenCVUtils::fromPoint(dstPoints[1])); if (!twoPoints) srcPoints[2] = OpenCVUtils::toPoint(src.file.get("Affine_2")); } else { const QList landmarks = OpenCVUtils::toPoints(src.file.points()); @@ -103,7 +100,6 @@ private: dst.file.set("Affine_0", OpenCVUtils::fromPoint(landmarks[0])); dst.file.set("Affine_1", OpenCVUtils::fromPoint(landmarks[1])); - if (!twoPoints) dst.file.set("Affine_2", OpenCVUtils::fromPoint(landmarks[2])); } }