mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
yet another fix in mhi-global test (ticket #457)
This commit is contained in:
parent
de4f1aeb06
commit
4ca701d888
@ -551,8 +551,8 @@ void CV_MHIGlobalOrientTest::get_test_array_types_and_sizes( int test_case_idx,
|
|||||||
CV_MHIBaseTest::get_test_array_types_and_sizes( test_case_idx, sizes, types );
|
CV_MHIBaseTest::get_test_array_types_and_sizes( test_case_idx, sizes, types );
|
||||||
CvSize size = sizes[INPUT][0];
|
CvSize size = sizes[INPUT][0];
|
||||||
|
|
||||||
size.width = MAX( size.width, 8 );
|
size.width = MAX( size.width, 16 );
|
||||||
size.height = MAX( size.height, 8 );
|
size.height = MAX( size.height, 16 );
|
||||||
sizes[INPUT][0] = sizes[INPUT][1] = sizes[INPUT][2] = size;
|
sizes[INPUT][0] = sizes[INPUT][1] = sizes[INPUT][2] = size;
|
||||||
|
|
||||||
types[INPUT][1] = CV_8UC1; // mask
|
types[INPUT][1] = CV_8UC1; // mask
|
||||||
@ -607,6 +607,9 @@ void CV_MHIGlobalOrientTest::run_func()
|
|||||||
|
|
||||||
int CV_MHIGlobalOrientTest::validate_test_results( int test_case_idx )
|
int CV_MHIGlobalOrientTest::validate_test_results( int test_case_idx )
|
||||||
{
|
{
|
||||||
|
//printf("%d. rows=%d, cols=%d, nzmask=%d\n", test_case_idx, test_mat[INPUT][1].rows, test_mat[INPUT][1].cols,
|
||||||
|
// cvCountNonZero(test_array[INPUT][1]));
|
||||||
|
|
||||||
double ref_angle = cvTsCalcGlobalOrientation( &test_mat[INPUT][2], &test_mat[INPUT][1],
|
double ref_angle = cvTsCalcGlobalOrientation( &test_mat[INPUT][2], &test_mat[INPUT][1],
|
||||||
&test_mat[INPUT][0], timestamp, duration );
|
&test_mat[INPUT][0], timestamp, duration );
|
||||||
double err_level = get_success_error_level( test_case_idx, 0, 0 );
|
double err_level = get_success_error_level( test_case_idx, 0, 0 );
|
||||||
|
Loading…
Reference in New Issue
Block a user