1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-31 08:13:04 +04:00

Fixed mask handling in AffineFeature.

This commit is contained in:
Alexander Smorkalov
2023-05-17 11:02:01 +03:00
parent be84824530
commit ae8c90301f
2 changed files with 25 additions and 1 deletions
+3 -1
View File
@@ -243,7 +243,7 @@ private:
else
mask0 = mask;
pose = Matx23f(1,0,0,
0,1,0);
0,1,0);
if( phi == 0 )
image.copyTo(rotImage);
@@ -276,6 +276,8 @@ private:
}
if( phi != 0 || tilt != 1 )
warpAffine(mask0, warpedMask, pose, warpedImage.size(), INTER_NEAREST);
else
warpedMask = mask0;
}