Home | History | Annotate | Download | only in test

Lines Matching refs:mat

57     void fill_array( int test_case_idx, int i, int j, Mat& arr );
116 void CV_ImgWarpBaseTest::fill_array( int test_case_idx, int i, int j, Mat& arr )
125 Mat& img = test_mat[INPUT][0];
193 cv::Mat src(1, cols*cn, CV_32F, &buffer[0]);
194 cv::Mat dst(1, cols*cn, depth, ptr);
341 static void test_remap( const Mat& src, Mat& dst, const Mat& mapx, const Mat& mapy,
342 Mat* mask=0, int interpolation=CV_INTER_LINEAR )
510 const Mat& src = test_mat[INPUT][0];
511 const Mat& dst = test_mat[INPUT_OUTPUT][0];
512 Mat& mat = test_mat[INPUT][1];
520 Mat tmp( 2, 3, mat.type(), buffer );
526 getRotationMatrix2D(center, angle, scale).convertTo(mat, mat.depth());
530 cv::multiply(tmp, mat, mat, 1.);
538 const Mat& src = test_mat[INPUT][0];
539 Mat& dst = test_mat[REF_INPUT_OUTPUT][0];
540 Mat& dst0 = test_mat[INPUT_OUTPUT][0];
541 Mat mapx(dst.size(), CV_32F), mapy(dst.size(), CV_32F);
543 Mat srcAb, dstAb( 2, 3, CV_64FC1, m );
548 Mat A = srcAb.colRange(0, 2);
549 Mat b = srcAb.col(2);
550 Mat invA = dstAb.colRange(0, 2);
551 Mat invAb = dstAb.col(2);
553 cv::gemm(invA, b, -1, Mat(), 0, invAb);
562 Mat mask( dst.size(), CV_8U );
623 Mat& mat = test_mat[INPUT][1];
640 Mat tmp( 1, 16, CV_32FC1, bufer );
652 cv::getPerspectiveTransform( s, d ).convertTo( mat, mat.depth() );
659 Mat& src = test_mat[INPUT][0];
660 Mat& dst = test_mat[REF_INPUT_OUTPUT][0];
661 Mat& dst0 = test_mat[INPUT_OUTPUT][0];
662 Mat mapx(dst.size(), CV_32F), mapy(dst.size(), CV_32F);
664 Mat srcM, dstM(3, 3, CV_64F, m);
688 Mat mask( dst.size(), CV_8U );
708 void fill_array( int test_case_idx, int i, int j, Mat& arr );
730 void CV_RemapTest::fill_array( int test_case_idx, int i, int j, Mat& arr )
755 const Mat& src = test_mat[INPUT][0];
757 Mat _a( 3, 3, CV_64F, a );
758 Mat _k( 4, 1, CV_64F, k );
783 Mat& dst = test_mat[REF_INPUT_OUTPUT][0];
784 Mat& dst0 = test_mat[INPUT_OUTPUT][0];
785 Mat mask( dst.size(), CV_8U );
806 void fill_array( int test_case_idx, int i, int j, Mat& arr );
810 cv::Mat input0;
811 cv::Mat input1;
812 cv::Mat input2;
813 cv::Mat input_new_cam;
814 cv::Mat input_output;
849 void CV_UndistortTest::fill_array( int test_case_idx, int i, int j, Mat& arr )
867 cv::undistort(input0,input_output,input1,cv::Mat());
889 const Mat& src = test_mat[INPUT][0];
894 Mat& _new_cam0 = test_mat[INPUT][3];
895 Mat _new_cam(test_mat[INPUT][3].rows,test_mat[INPUT][3].cols,CV_64F,new_cam);
896 Mat& _a0 = test_mat[INPUT][1];
897 Mat _a(3,3,CV_64F,a);
898 Mat& _k0 = test_mat[INPUT][2];
899 Mat _k(_k0.rows,_k0.cols, CV_MAKETYPE(CV_64F,_k0.channels()),k);
952 Mat& output = test_mat[INPUT_OUTPUT][0];
955 Mat& src = test_mat[INPUT][0];
956 Mat& dst = test_mat[REF_INPUT_OUTPUT][0];
957 Mat& dst0 = test_mat[INPUT_OUTPUT][0];
958 Mat mapx, mapy;
960 Mat mask( dst.size(), CV_8U );
978 void fill_array( int test_case_idx, int i, int j, Mat& arr );
1019 void CV_UndistortMapTest::fill_array( int test_case_idx, int i, int j, Mat& arr )
1047 const Mat& mapx = test_mat[OUTPUT][0];
1050 Mat& _a0 = test_mat[INPUT][0], &_k0 = test_mat[INPUT][1];
1051 Mat _a(3,3,CV_64F,a);
1052 Mat _k(_k0.rows,_k0.cols, CV_MAKETYPE(CV_64F,_k0.channels()),k);
1084 Mat mapx, mapy;
1093 Mat p[2] = {mapx, mapy};
1101 test_getQuadrangeSubPix( const Mat& src, Mat& dst, double* a )
1148 void fill_array( int test_case_idx, int i, int j, Mat& arr );
1193 void CV_GetRectSubPixTest::fill_array( int test_case_idx, int i, int j, Mat& arr )
1206 cv::Mat _out = cv::cvarrToMat(test_array[INPUT_OUTPUT][0]);
1229 Mat& src0 = test_mat[INPUT][0];
1230 Mat& dst0 = test_mat[REF_INPUT_OUTPUT][0];
1231 Mat src = src0, dst = dst0;
1321 const Mat& src = test_mat[INPUT][0];
1322 Mat& mat = test_mat[INPUT][1];
1330 Mat A( 2, 3, CV_64FC1, a );
1345 A.convertTo( mat, mat.depth() );
1353 Mat& src0 = test_mat[INPUT][0];
1354 Mat& dst0 = test_mat[REF_INPUT_OUTPUT][0];
1355 Mat src = src0, dst = dst0;
1358 Mat A( 2, 3, CV_64F, a );
1427 cv::Mat mat1 = Mat::zeros(3, 1, CV_32SC2);
1447 cv::Mat mat1 = Mat::zeros(2, 1, CV_32SC3);
1457 cv::Mat mat2 = Mat::zeros(2, 3, CV_32SC1);
1493 cv::Mat src(16, 16, CV_16UC1, input_data);
1494 cv::Mat expected(5, 5, CV_16UC1, expected_data);
1495 cv::Mat actual(expected.size(), expected.type());
1502 Mat diff;
1505 Mat one_channel_diff = diff; //.reshape(1);
1569 void resizeArea(const cv::Mat & src, cv::Mat & dst)
1613 cv::Mat src(size, size, type), dst_actual(size >> 1, size >> 1, type),
1643 Mat src(height, width, CV_8UC(cn)), dst;
1647 Mat rot = getRotationMatrix2D(Point2f(0.f, 0.f), 1, 1);
1650 Mat rot2 = Mat::eye(3, 3, rot.type());
1667 Mat trans = getAffineTransform(A_sample, B_sample);
1673 Mat src;
1677 Mat map_x, map_y, dst;