Skip to content

Commit 622301c

Browse files
committed
Merge pull request opencv#5142 from StevenPuttemans:fix_4230
2 parents 784f77a + dd8589c commit 622301c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

modules/video/src/ecc.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -298,11 +298,7 @@ static void update_warping_matrix_ECC (Mat& map_matrix, const Mat& update, const
298298
}
299299
if (motionType == MOTION_EUCLIDEAN) {
300300
double new_theta = updatePtr[0];
301-
if (mapPtr[3]>0)
302-
new_theta += acos(mapPtr[0]);
303-
304-
if (mapPtr[3]<0)
305-
new_theta -= acos(mapPtr[0]);
301+
new_theta += asin(mapPtr[3]);
306302

307303
mapPtr[2] += updatePtr[1];
308304
mapPtr[5] += updatePtr[2];

0 commit comments

Comments
 (0)