mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 15:53:03 +04:00
don't use constructors for C API structures
This commit is contained in:
@@ -96,7 +96,7 @@ void CV_ChessboardDetectorTimingTest::run( int start_from )
|
||||
{
|
||||
int count0 = -1;
|
||||
int count = 0;
|
||||
CvSize pattern_size;
|
||||
Size pattern_size;
|
||||
int result, result1 = 0;
|
||||
|
||||
const char* imgname = cvReadString((CvFileNode*)cvGetSeqElem(board_list->data.seq,idx*4), "dummy.txt");
|
||||
@@ -110,7 +110,7 @@ void CV_ChessboardDetectorTimingTest::run( int start_from )
|
||||
filename = cv::format("%s%s", filepath.c_str(), imgname );
|
||||
|
||||
cv::Mat img2 = cv::imread( filename );
|
||||
img = img2;
|
||||
img = cvIplImage(img2);
|
||||
|
||||
if( img2.empty() )
|
||||
{
|
||||
@@ -135,11 +135,11 @@ void CV_ChessboardDetectorTimingTest::run( int start_from )
|
||||
v = (CvPoint2D32f*)_v->data.fl;
|
||||
|
||||
int64 _time0 = cvGetTickCount();
|
||||
result = cvCheckChessboard(gray, pattern_size);
|
||||
result = cvCheckChessboard(gray, cvSize(pattern_size));
|
||||
int64 _time01 = cvGetTickCount();
|
||||
|
||||
OPENCV_CALL( result1 = cvFindChessboardCorners(
|
||||
gray, pattern_size, v, &count, 15 ));
|
||||
gray, cvSize(pattern_size), v, &count, 15 ));
|
||||
int64 _time1 = cvGetTickCount();
|
||||
|
||||
if( result != is_chessboard )
|
||||
|
||||
Reference in New Issue
Block a user