diff --git a/openbr/plugins/register.cpp b/openbr/plugins/register.cpp index 926a6dc..dd88b06 100644 --- a/openbr/plugins/register.cpp +++ b/openbr/plugins/register.cpp @@ -72,6 +72,7 @@ class AffineTransform : public UntrainableTransform (src.file.contains("Affine_2") || twoPoints)) { srcPoints[0] = OpenCVUtils::toPoint(src.file.get("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"));