From 229d39973e907920c0d6b8ec23f448da0c221ee4 Mon Sep 17 00:00:00 2001 From: Brendan Klare Date: Wed, 9 Jul 2014 09:29:44 -0400 Subject: [PATCH] Continued debugging --- openbr/plugins/landmarks.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+), 0 deletions(-) diff --git a/openbr/plugins/landmarks.cpp b/openbr/plugins/landmarks.cpp index 29ba8ee..05c675f 100644 --- a/openbr/plugins/landmarks.cpp +++ b/openbr/plugins/landmarks.cpp @@ -559,6 +559,7 @@ class TextureMapTransform : public UntrainableTransform dst.m() = Mat::zeros(dstHeight, dstWidth, src.m().type()); static int SCNT = 0; for (int i = 0; i < triIndices.size(); i++) { +qDebug() << i; Point2f srcPoint1[3]; Point2f dstPoint1[3]; for (int j = 0; j < 3; j++) { @@ -615,6 +616,17 @@ Eigen::Map M(dst.m().ptr(), dst.m().rows*dst.m().c writeEigen((MatrixXf)M, QString("Temp/img%1.bin").arg(SCNT++)); OpenCVUtils::saveImage(dst.m(), QString("Temp/img%1.jpg").arg(SCNT)); */ + dst.file.clearPoints(); + dst.file.clearRects(); + dst.file.setPoints(dstPoints); + /* + qDebug() << "\nSRC=\n" <> a; + */ + } }; -- libgit2 0.21.4