/external/opencv3/modules/calib3d/test/ |
D | test_undistort.cpp | 115 Mat& _a0 = test_mat[INPUT][0]; in prepare_test_case() 130 const Mat& src = test_mat[INPUT][0]; in prepare_to_validation() 131 Mat& dst = test_mat[REF_OUTPUT][0]; in prepare_to_validation() 132 Mat& test_output = test_mat[OUTPUT][0]; in prepare_to_validation() 270 …int dist_size = test_mat[INPUT][2].cols > test_mat[INPUT][2].rows ? test_mat[INPUT][2].cols : test… in prepare_test_case() 273 vector<double> proj(test_mat[INPUT][4].cols * test_mat[INPUT][4].rows); in prepare_test_case() 277 Mat _distort(test_mat[INPUT][2].rows,test_mat[INPUT][2].cols,CV_64F,&dist[0]); in prepare_test_case() 278 Mat _proj(test_mat[INPUT][4].size(), CV_64F, &proj[0]); in prepare_test_case() 279 Mat _points(test_mat[INPUT][0].size(), CV_64FC2, &points[0]); in prepare_test_case() 318 if( test_mat[INPUT][4].cols != 4 ) in prepare_test_case() [all …]
|
D | test_fundam.cpp | 666 v2m_jac = test_mat[OUTPUT][1]; in run_func() 667 m2v_jac = test_mat[OUTPUT][3]; in run_func() 672 … CvMat _input = test_mat[INPUT][0], _output = test_mat[OUTPUT][0], _output2 = test_mat[OUTPUT][2]; in run_func() 678 cv::Mat v = test_mat[INPUT][0], M = test_mat[OUTPUT][0], v2 = test_mat[OUTPUT][2]; in run_func() 687 cv::Mat J1 = test_mat[OUTPUT][1], J2 = test_mat[OUTPUT][3]; in run_func() 714 const Mat& vec = test_mat[INPUT][0]; in prepare_to_validation() 715 Mat& m = test_mat[REF_OUTPUT][0]; in prepare_to_validation() 716 Mat& vec2 = test_mat[REF_OUTPUT][2]; in prepare_to_validation() 722 v2m_jac = &test_mat[REF_OUTPUT][1]; in prepare_to_validation() 723 m2v_jac = &test_mat[REF_OUTPUT][3]; in prepare_to_validation() [all …]
|
D | test_modelest.cpp | 211 test_mat[OUTPUT][0].at<uchar>(0) = checkSubsetResult; 212 …test_mat[REF_OUTPUT][0].at<uchar>(0) = test_case_idx < generalPositionsCount || usedPointsCount <=… 218 Mat input = test_mat[INPUT][0].clone();
|
D | test_cameracalibration.cpp | 190 v2m_jac = &test_mat[OUTPUT][1]; 191 m2v_jac = &test_mat[OUTPUT][3]; 194 cvProjectPoints2( &test_mat[INPUT][0], &test_mat[OUTPUT][0], v2m_jac ); 195 cvProjectPoints2( &test_mat[OUTPUT][0], &test_mat[OUTPUT][2], m2v_jac ); 201 const CvMat* vec = &test_mat[INPUT][0]; 202 CvMat* m = &test_mat[REF_OUTPUT][0]; 203 CvMat* vec2 = &test_mat[REF_OUTPUT][2]; 209 v2m_jac = &test_mat[REF_OUTPUT][1]; 210 m2v_jac = &test_mat[REF_OUTPUT][3]; 228 if( cvtest::norm(cvarrtomat(&test_mat[OUTPUT][3]), 0, CV_C) < 1000 ) [all …]
|
/external/opencv3/modules/video/test/ |
D | test_accum.cpp | 94 return test_mat[INPUT_OUTPUT][0].depth() < CV_64F || in get_success_error_level() 95 test_mat[INPUT][0].depth() == CV_32F ? FLT_EPSILON*100 : DBL_EPSILON*1000; in get_success_error_level() 118 const Mat& src = test_mat[INPUT][0]; in prepare_to_validation() 119 Mat& dst = test_mat[REF_INPUT_OUTPUT][0]; in prepare_to_validation() 120 const Mat& mask = test_array[MASK][0] ? test_mat[MASK][0] : Mat(); in prepare_to_validation() 151 const Mat& src = test_mat[INPUT][0]; in prepare_to_validation() 152 Mat& dst = test_mat[REF_INPUT_OUTPUT][0]; in prepare_to_validation() 153 const Mat& mask = test_array[MASK][0] ? test_mat[MASK][0] : Mat(); in prepare_to_validation() 189 const Mat& src1 = test_mat[INPUT][0]; in prepare_to_validation() 190 const Mat& src2 = test_mat[INPUT][1]; in prepare_to_validation() [all …]
|
/external/opencv3/modules/core/test/ |
D | test_math.cpp | 47 return test_mat[i][j].depth() == CV_32F ? FLT_EPSILON*128 : DBL_EPSILON*1024; in get_success_error_level() 129 int depth = test_mat[i][j].depth(); in get_success_error_level() 157 if( fabs(power-1./3) <= DBL_EPSILON && test_mat[INPUT][0].depth() == CV_32F ) in run_func() 159 Mat a = test_mat[INPUT][0], b = test_mat[OUTPUT][0]; in run_func() 175 Mat& a = test_mat[INPUT][0]; in run_func() 176 Mat& b = test_mat[OUTPUT][0]; in run_func() 215 const Mat& a = test_mat[INPUT][0]; in prepare_to_validation() 216 Mat& b = test_mat[REF_OUTPUT][0]; in prepare_to_validation() 425 int input_depth = test_mat[INPUT][0].depth(); in get_success_error_level() 451 test_mat[OUTPUT][0].at<Scalar>(0,0) = cvTrace(test_array[INPUT][0]); in run_func() [all …]
|
D | test_dxt.cpp | 651 int in_type = test_mat[INPUT][0].type(); in prepare_test_case() 652 int out_type = test_mat[OUTPUT][0].type(); in prepare_test_case() 655 cvtest::fixCCS( test_mat[INPUT][0], test_mat[OUTPUT][0].cols, flags ); in prepare_test_case() 658 cvtest::copy( test_mat[INPUT][test_case_idx & (int)spectrum_mode], in prepare_test_case() 659 temp_dst ? test_mat[TEMP][1] : in prepare_test_case() 660 in_type == out_type ? test_mat[OUTPUT][0] : in prepare_test_case() 661 test_mat[TEMP][0] ); in prepare_test_case() 686 Mat& dst = temp_dst ? test_mat[TEMP][1] : test_mat[OUTPUT][0]; in run_func() 687 const Mat& src = inplace ? dst : test_mat[INPUT][0]; in run_func() 698 Mat& src = test_mat[INPUT][0]; in prepare_to_validation() [all …]
|
D | test_io.cpp | 116 … Mat test_mat(cvtest::randInt(rng)%30+1, cvtest::randInt(rng)%30+1, CV_MAKETYPE(depth, cn)); in run() local 118 … rng0.fill(test_mat, CV_RAND_UNI, Scalar::all(ranges[depth][0]), Scalar::all(ranges[depth][1])); in run() 121 exp(test_mat, test_mat); in run() 122 Mat test_mat_scale(test_mat.size(), test_mat.type()); in run() 124 multiply(test_mat, test_mat_scale, test_mat); in run() 127 CvSeq* seq = cvCreateSeq(test_mat.type(), (int)sizeof(CvSeq), in run() 128 (int)test_mat.elemSize(), storage); in run() 129 cvSeqPushMulti(seq, test_mat.ptr(), test_mat.cols*test_mat.rows); in run() 173 fs << "test_mat" << test_mat; in run() 214 CvMat _test_mat = test_mat; in run() [all …]
|
/external/opencv3/modules/imgproc/test/ |
D | test_imgwarp.cpp | 125 Mat& img = test_mat[INPUT][0]; in prepare_test_case() 135 if( test_mat[INPUT_OUTPUT][0].cols >= img.cols && in prepare_test_case() 136 test_mat[INPUT_OUTPUT][0].rows >= img.rows ) in prepare_test_case() 269 int depth = test_mat[INPUT][0].depth(); in get_success_error_level() 276 CvMat _src = test_mat[INPUT][0], _dst = test_mat[REF_INPUT_OUTPUT][0]; in prepare_to_validation() 494 CvMat mtx = test_mat[INPUT][1]; in run_func() 501 int depth = test_mat[INPUT][0].depth(); in get_success_error_level() 510 const Mat& src = test_mat[INPUT][0]; in prepare_test_case() 511 const Mat& dst = test_mat[INPUT_OUTPUT][0]; in prepare_test_case() 512 Mat& mat = test_mat[INPUT][1]; in prepare_test_case() [all …]
|
D | test_filter.cpp | 158 if( inplace && test_mat[INPUT][0].type() == test_mat[OUTPUT][0].type()) in prepare_test_case() 159 cvtest::copy( test_mat[INPUT][0], test_mat[OUTPUT][0] ); in prepare_test_case() 214 return test_mat[INPUT][0].depth() < CV_32F || in get_success_error_level() 231 const uchar* src = test_mat[INPUT][1].ptr(); in prepare_test_case() 232 int srcstep = (int)test_mat[INPUT][1].step; in prepare_test_case() 257 Mat& src = test_mat[INPUT][0], &dst = test_mat[REF_OUTPUT][0]; in prepare_to_validation() 416 int depth = test_mat[INPUT][0].depth(); in get_success_error_level() 424 CvMat kernel = test_mat[INPUT][1]; in run_func() 432 cvtest::filter2D( test_mat[INPUT][0], test_mat[REF_OUTPUT][0], test_mat[REF_OUTPUT][0].type(), in prepare_to_validation() 433 test_mat[INPUT][1], anchor, 0, BORDER_REPLICATE ); in prepare_to_validation() [all …]
|
D | test_moments.cpp | 152 int depth = test_mat[INPUT][0].depth(); in get_success_error_level() 161 int cn = test_mat[INPUT][0].channels(); in prepare_test_case() 172 CvMoments* m = (CvMoments*)test_mat[OUTPUT][0].ptr<double>(); in run_func() 177 test_mat[INPUT][0].clone().copyTo(u); in run_func() 205 Mat& src = test_mat[INPUT][0]; in prepare_to_validation() 207 double* mdata = test_mat[REF_OUTPUT][0].ptr<double>(); in prepare_to_validation() 317 double* a = test_mat[REF_OUTPUT][0].ptr<double>(); in prepare_to_validation() 318 double* b = test_mat[OUTPUT][0].ptr<double>(); in prepare_to_validation() 395 cvGetHuMoments( test_mat[INPUT][0].ptr<CvMoments>(), in run_func() 396 test_mat[OUTPUT][0].ptr<CvHuMoments>() ); in run_func() [all …]
|
D | test_templmatch.cpp | 128 if( test_mat[INPUT][1].depth() == CV_8U || in get_success_error_level() 129 (method >= CV_TM_CCOEFF && test_mat[INPUT][1].cols*test_mat[INPUT][1].rows <= 2) ) in get_success_error_level() 312 CvMat _input = test_mat[INPUT][0], _templ = test_mat[INPUT][1]; in prepare_to_validation() 313 CvMat _output = test_mat[REF_OUTPUT][0]; in prepare_to_validation() 331 test_mat[REF_OUTPUT][0] += Scalar::all(delta); in prepare_to_validation() 332 test_mat[OUTPUT][0] += Scalar::all(delta); in prepare_to_validation()
|
D | test_canny.cpp | 110 Mat& src = test_mat[INPUT][0]; in prepare_test_case() 253 Mat src = test_mat[INPUT][0], dst = test_mat[REF_OUTPUT][0]; in prepare_to_validation() 263 double err = cvtest::norm(test_mat[OUTPUT][0], test_mat[REF_OUTPUT][0], CV_L1); in validate_test_results() 274 nz0 = cvRound(cvtest::norm(test_mat[REF_OUTPUT][0], CV_L1)/255); in validate_test_results()
|
D | test_color.cpp | 156 cvtest::copy( test_mat[INPUT][0], test_mat[OUTPUT][0] ); in prepare_test_case() 184 convert_forward( test_mat[INPUT][0], test_mat[REF_OUTPUT][0] ); in prepare_to_validation() 185 convert_backward( test_mat[INPUT][0], test_mat[REF_OUTPUT][0], in prepare_to_validation() 186 test_mat[REF_OUTPUT][1] ); in prepare_to_validation() 187 int depth = test_mat[REF_OUTPUT][0].depth(); in prepare_to_validation() 190 for( int y = 0; y < test_mat[REF_OUTPUT][0].rows; y++ ) in prepare_to_validation() 192 uchar* h0 = test_mat[REF_OUTPUT][0].ptr(y); in prepare_to_validation() 193 uchar* h = test_mat[OUTPUT][0].ptr(y); in prepare_to_validation() 195 for( int x = 0; x < test_mat[REF_OUTPUT][0].cols; x++, h0 += 3, h += 3 ) in prepare_to_validation() 464 int depth = test_mat[i][j].depth(); in get_success_error_level() [all …]
|
D | test_distancetransform.cpp | 112 Size sz = test_mat[INPUT][0].size(); in get_success_error_level() 134 Mat& mat = test_mat[INPUT][0]; in prepare_test_case() 279 CvMat _input = test_mat[INPUT][0], _output = test_mat[REF_OUTPUT][0]; in prepare_to_validation()
|
D | test_floodfill.cpp | 193 double* odata = test_mat[OUTPUT][0].ptr<double>(); in run_func() 516 double* comp = test_mat[REF_OUTPUT][0].ptr<double>(); in prepare_to_validation() 517 CvMat _input = test_mat[REF_INPUT_OUTPUT][0]; in prepare_to_validation() 518 CvMat _mask = test_mat[REF_INPUT_OUTPUT][1]; in prepare_to_validation()
|
D | test_thresh.cpp | 316 test_threshold( test_mat[INPUT][0], test_mat[REF_OUTPUT][0], in prepare_to_validation()
|
/external/opencv3/modules/ts/src/ |
D | ts_arrtest.cpp | 210 test_mat.resize(test_array.size()); in prepare_test_case() 214 test_mat[i].resize(sizei); in prepare_test_case() 218 test_mat[i][j] = cv::cvarrToMat(arr); in prepare_test_case() 219 if( !test_mat[i][j].empty() ) in prepare_test_case() 220 fill_array( test_case_idx, (int)i, (int)j, test_mat[i][j] ); in prepare_test_case() 257 cvtest::copy( test_mat[INPUT_OUTPUT][j], arr, Mat() ); in fill_array() 306 …code = cmpEps2(ts, test_mat[i0][j], test_mat[i1][j], err_level, element_wise_relative_error, arr_n… in validate_test_results() 317 const Mat& arr = test_mat[i0][i1]; in validate_test_results()
|
/external/opencv3/modules/ts/include/opencv2/ |
D | ts.hpp | 469 vector<vector<Mat> > test_mat; member in cvtest::ArrayTest
|