diff --git a/modules/reg/samples/map_test.cpp b/modules/reg/samples/map_test.cpp index ddd58ca7e..4ce4d4fe3 100644 --- a/modules/reg/samples/map_test.cpp +++ b/modules/reg/samples/map_test.cpp @@ -38,10 +38,12 @@ #include #define _USE_MATH_DEFINES #include +#include #include // OpenCV window I/O #include // OpenCV image transformations #include #include +#include #include #ifdef COMPARE_FEATURES diff --git a/modules/tracking/test/test_trackerSRE.cpp b/modules/tracking/test/test_trackerSRE.cpp index a5fa5c7e2..73437f79f 100644 --- a/modules/tracking/test/test_trackerSRE.cpp +++ b/modules/tracking/test/test_trackerSRE.cpp @@ -343,32 +343,32 @@ void TrackerSRETest::checkDataTest() break; case 5: //corner shift top-left - bb.x = (int)round( bb.x - 0.1 * bb.width ); - bb.y = (int)round( bb.y - 0.1 * bb.height ); + bb.x = (int)cvRound( bb.x - 0.1 * bb.width ); + bb.y = (int)cvRound( bb.y - 0.1 * bb.height ); bb.width = xLimit - bb.x + 1; bb.height = yLimit - bb.y + 1; break; case 6: //corner shift top-right - xLimit = (int)round( xLimit + 0.1 * bb.width ); + xLimit = (int)cvRound( xLimit + 0.1 * bb.width ); - bb.y = (int)round( bb.y - 0.1 * bb.height ); + bb.y = (int)cvRound( bb.y - 0.1 * bb.height ); bb.width = xLimit - bb.x + 1; bb.height = yLimit - bb.y + 1; break; case 7: //corner shift bottom-left - bb.x = (int)round( bb.x - 0.1 * bb.width ); - yLimit = (int)round( yLimit + 0.1 * bb.height ); + bb.x = (int)cvRound( bb.x - 0.1 * bb.width ); + yLimit = (int)cvRound( yLimit + 0.1 * bb.height ); bb.width = xLimit - bb.x + 1; bb.height = yLimit - bb.y + 1; break; case 8: //corner shift bottom-right - xLimit = (int)round( xLimit + 0.1 * bb.width ); - yLimit = (int)round( yLimit + 0.1 * bb.height ); + xLimit = (int)cvRound( xLimit + 0.1 * bb.width ); + yLimit = (int)cvRound( yLimit + 0.1 * bb.height ); bb.width = xLimit - bb.x + 1; bb.height = yLimit - bb.y + 1; diff --git a/modules/xobjdetect/src/precomp.hpp b/modules/xobjdetect/src/precomp.hpp index 70b240951..38228cc69 100644 --- a/modules/xobjdetect/src/precomp.hpp +++ b/modules/xobjdetect/src/precomp.hpp @@ -48,7 +48,7 @@ the use of this software, even if advised of the possibility of such damage. #include #include -#include +#include #include #include