1
0
mirror of https://github.com/opencv/opencv_contrib.git synced 2025-10-20 04:25:42 +08:00

Extract imgcodecs module from highgui

This commit is contained in:
vbystricky
2014-07-07 12:11:53 +04:00
parent 3bf743e683
commit 54d71a24ec
3 changed files with 10 additions and 10 deletions

View File

@@ -42,7 +42,7 @@
//M*/ //M*/
#include "test_precomp.hpp" #include "test_precomp.hpp"
#include <opencv2/highgui.hpp> #include <opencv2/imgcodecs.hpp>
#include <opencv2/core.hpp> #include <opencv2/core.hpp>
#include "opencv2/reg/mapaffine.hpp" #include "opencv2/reg/mapaffine.hpp"

View File

@@ -343,32 +343,32 @@ void TrackerSRETest::checkDataTest()
break; break;
case 5: case 5:
//corner shift top-left //corner shift top-left
bb.x = (int)round( bb.x - 0.1 * bb.width ); bb.x = (int)cvRound( bb.x - 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.width = xLimit - bb.x + 1;
bb.height = yLimit - bb.y + 1; bb.height = yLimit - bb.y + 1;
break; break;
case 6: case 6:
//corner shift top-right //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.width = xLimit - bb.x + 1;
bb.height = yLimit - bb.y + 1; bb.height = yLimit - bb.y + 1;
break; break;
case 7: case 7:
//corner shift bottom-left //corner shift bottom-left
bb.x = (int)round( bb.x - 0.1 * bb.width ); bb.x = (int)cvRound( bb.x - 0.1 * bb.width );
yLimit = (int)round( yLimit + 0.1 * bb.height ); yLimit = (int)cvRound( yLimit + 0.1 * bb.height );
bb.width = xLimit - bb.x + 1; bb.width = xLimit - bb.x + 1;
bb.height = yLimit - bb.y + 1; bb.height = yLimit - bb.y + 1;
break; break;
case 8: case 8:
//corner shift bottom-right //corner shift bottom-right
xLimit = (int)round( xLimit + 0.1 * bb.width ); xLimit = (int)cvRound( xLimit + 0.1 * bb.width );
yLimit = (int)round( yLimit + 0.1 * bb.height ); yLimit = (int)cvRound( yLimit + 0.1 * bb.height );
bb.width = xLimit - bb.x + 1; bb.width = xLimit - bb.x + 1;
bb.height = yLimit - bb.y + 1; bb.height = yLimit - bb.y + 1;

View File

@@ -48,7 +48,7 @@ the use of this software, even if advised of the possibility of such damage.
#include <opencv2/imgproc.hpp> #include <opencv2/imgproc.hpp>
#include <opencv2/imgproc/types_c.h> #include <opencv2/imgproc/types_c.h>
#include <opencv2/highgui.hpp> #include <opencv2/imgcodecs.hpp>
#include <algorithm> #include <algorithm>
#include <cmath> #include <cmath>