Commit 4dd805b7 authored by Andrey Pavlenko's avatar Andrey Pavlenko Committed by OpenCV Buildbot

Merge pull request #2206 from ilya-lavrenov:ocl_warn_fix

parents 06acf709 c8f2050c
...@@ -80,7 +80,7 @@ OCL_TEST_P( BRIEF, Accuracy ) ...@@ -80,7 +80,7 @@ OCL_TEST_P( BRIEF, Accuracy )
brief.compute( img, keypoints, descriptorsGold ); brief.compute( img, keypoints, descriptorsGold );
Mat kpMat( 2, int( keypoints.size() ), CV_32FC1 ); Mat kpMat( 2, int( keypoints.size() ), CV_32FC1 );
for ( size_t i = 0; i < keypoints.size( ); ++i ) for ( int i = 0, size = (int)keypoints.size( ); i < size; ++i )
{ {
kpMat.col( i ).row( 0 ) = int( keypoints[i].pt.x ); kpMat.col( i ).row( 0 ) = int( keypoints[i].pt.x );
kpMat.col( i ).row( 1 ) = int( keypoints[i].pt.y ); kpMat.col( i ).row( 1 ) = int( keypoints[i].pt.y );
...@@ -112,4 +112,4 @@ OCL_TEST_P( BRIEF, Accuracy ) ...@@ -112,4 +112,4 @@ OCL_TEST_P( BRIEF, Accuracy )
} }
INSTANTIATE_TEST_CASE_P( OCL_Features2D, BRIEF, testing::Values( 16, 32, 64 ) ); INSTANTIATE_TEST_CASE_P( OCL_Features2D, BRIEF, testing::Values( 16, 32, 64 ) );
#endif #endif
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment