Commit 7abaef47e76e083486aa8a38d1b70d08317c5951

Authored by Josh Klontz
1 parent 5ebf2011

RegisterAffine no longer overwrites input metadata

openbr/plugins/imgproc/affine.cpp
... ... @@ -101,19 +101,12 @@ private:
101 101 srcPoints[0] = landmarks[0];
102 102 srcPoints[1] = landmarks[1];
103 103 if (!twoPoints) srcPoints[2] = landmarks[2];
104   -
105   - dst.file.set("Affine_0", OpenCVUtils::fromPoint(landmarks[0]));
106   - dst.file.set("Affine_1", OpenCVUtils::fromPoint(landmarks[1]));
107   - if (!twoPoints) dst.file.set("Affine_2", OpenCVUtils::fromPoint(landmarks[2]));
108 104 }
109 105 }
110 106 if (twoPoints) srcPoints[2] = getThirdAffinePoint(srcPoints[0], srcPoints[1]);
111 107  
112 108 Mat affineTransform = getAffineTransform(srcPoints, dstPoints);
113 109 warpAffine(src, dst, affineTransform, Size(width, height), method);
114   - dst.file.set("Affine_0", OpenCVUtils::fromPoint(dstPoints[0]));
115   - dst.file.set("Affine_1", OpenCVUtils::fromPoint(dstPoints[1]));
116   - if (!twoPoints) dst.file.set("Affine_2", OpenCVUtils::fromPoint(dstPoints[2]));
117 110  
118 111 if (warpPoints) {
119 112 QList<QPointF> points = src.file.points();
... ...