Commit 229d39973e907920c0d6b8ec23f448da0c221ee4

Authored by Brendan Klare
1 parent fce80304

Continued debugging

Showing 1 changed file with 12 additions and 0 deletions
openbr/plugins/landmarks.cpp
... ... @@ -559,6 +559,7 @@ class TextureMapTransform : public UntrainableTransform
559 559 dst.m() = Mat::zeros(dstHeight, dstWidth, src.m().type());
560 560 static int SCNT = 0;
561 561 for (int i = 0; i < triIndices.size(); i++) {
  562 +qDebug() << i;
562 563 Point2f srcPoint1[3];
563 564 Point2f dstPoint1[3];
564 565 for (int j = 0; j < 3; j++) {
... ... @@ -615,6 +616,17 @@ Eigen::Map&lt;const Eigen::VectorXf&gt; M(dst.m().ptr&lt;float&gt;(), dst.m().rows*dst.m().c
615 616 writeEigen((MatrixXf)M, QString("Temp/img%1.bin").arg(SCNT++));
616 617 OpenCVUtils::saveImage(dst.m(), QString("Temp/img%1.jpg").arg(SCNT));
617 618 */
  619 + dst.file.clearPoints();
  620 + dst.file.clearRects();
  621 + dst.file.setPoints(dstPoints);
  622 + /*
  623 + qDebug() << "\nSRC=\n" <<srcPoints;
  624 + qDebug() << "DST=\n" <<dstPoints;
  625 + qDebug() << "file=\n" <<dst.file.points();
  626 + char a;
  627 + cin >> a;
  628 + */
  629 +
618 630 }
619 631 };
620 632  
... ...