|
|
|
@ -1225,6 +1225,10 @@ CV_FitLineTest::CV_FitLineTest() |
|
|
|
|
max_noise = 0.05; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8) |
|
|
|
|
# pragma GCC diagnostic push |
|
|
|
|
# pragma GCC diagnostic ignored "-Warray-bounds" |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
void CV_FitLineTest::generate_point_set( void* pointsSet ) |
|
|
|
|
{ |
|
|
|
@ -1297,6 +1301,9 @@ void CV_FitLineTest::generate_point_set( void* pointsSet ) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8) |
|
|
|
|
# pragma GCC diagnostic pop |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
int CV_FitLineTest::prepare_test_case( int test_case_idx ) |
|
|
|
|
{ |
|
|
|
@ -1322,6 +1329,10 @@ void CV_FitLineTest::run_func() |
|
|
|
|
cv::fitLine(cv::cvarrToMat(points), (cv::Vec6f&)line[0], dist_type, 0, reps, aeps); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8) |
|
|
|
|
# pragma GCC diagnostic push |
|
|
|
|
# pragma GCC diagnostic ignored "-Warray-bounds" |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
int CV_FitLineTest::validate_test_results( int test_case_idx ) |
|
|
|
|
{ |
|
|
|
@ -1401,6 +1412,9 @@ _exit_: |
|
|
|
|
return code; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
#if (__GNUC__ == 4) && (__GNUC_MINOR__ == 8) |
|
|
|
|
# pragma GCC diagnostic pop |
|
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
/****************************************************************************************\
|
|
|
|
|
* ContourMoments Test * |
|
|
|
|