|
|
|
@ -477,8 +477,9 @@ class Core_DotProductTest : public Core_MatrixTest |
|
|
|
|
public: |
|
|
|
|
Core_DotProductTest(); |
|
|
|
|
protected: |
|
|
|
|
void run_func(); |
|
|
|
|
void prepare_to_validation( int test_case_idx ); |
|
|
|
|
void run_func() CV_OVERRIDE; |
|
|
|
|
void prepare_to_validation( int test_case_idx ) CV_OVERRIDE; |
|
|
|
|
double get_success_error_level( int test_case_idx, int i, int j ) CV_OVERRIDE; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -498,6 +499,15 @@ void Core_DotProductTest::prepare_to_validation( int ) |
|
|
|
|
test_mat[REF_OUTPUT][0].at<Scalar>(0,0) = Scalar(cvtest::crossCorr( test_mat[INPUT][0], test_mat[INPUT][1] )); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
double Core_DotProductTest::get_success_error_level( int test_case_idx, int i, int j ) |
|
|
|
|
{ |
|
|
|
|
#ifdef __riscv |
|
|
|
|
const int depth = test_mat[i][j].depth(); |
|
|
|
|
if (depth == CV_64F) |
|
|
|
|
return 1.7e-5; |
|
|
|
|
#endif |
|
|
|
|
return Core_MatrixTest::get_success_error_level( test_case_idx, i, j ); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
///////// crossproduct //////////
|
|
|
|
|
|
|
|
|
|