Lines Matching refs:INPUT
16 /// Also, need some logarithmic-scale generation of input data. Right now it is done (in some tests)
18 /// within the same test case all the input array elements are of the same order.
37 test_array[INPUT].push_back(NULL);
157 if( fabs(power-1./3) <= DBL_EPSILON && test_mat[INPUT][0].depth() == CV_32F )
159 Mat a = test_mat[INPUT][0], b = test_mat[OUTPUT][0];
171 cvPow( test_array[INPUT][0], test_array[OUTPUT][0], power );
175 Mat& a = test_mat[INPUT][0];
215 const Mat& a = test_mat[INPUT][0];
379 test_array[INPUT].push_back(NULL);
425 int input_depth = test_mat[INPUT][0].depth();
451 test_mat[OUTPUT][0].at<Scalar>(0,0) = cvTrace(test_array[INPUT][0]);
457 Mat& mat = test_mat[INPUT][0];
486 test_mat[OUTPUT][0].at<Scalar>(0,0) = Scalar(cvDotProduct( test_array[INPUT][0], test_array[INPUT][1] ));
492 test_mat[REF_OUTPUT][0].at<Scalar>(0,0) = Scalar(cvtest::crossCorr( test_mat[INPUT][0], test_mat[INPUT][1] ));
525 types[INPUT][0] = types[INPUT][1] = types[OUTPUT][0] = types[REF_OUTPUT][0] = type;
534 sizes[INPUT][0] = sizes[INPUT][1] = sizes[OUTPUT][0] = sizes[REF_OUTPUT][0] = sz;
540 cvCrossProduct( test_array[INPUT][0], test_array[INPUT][1], test_array[OUTPUT][0] );
548 if( test_mat[INPUT][0].rows > 1 )
550 a.val[0] = cvGetReal2D( test_array[INPUT][0], 0, 0 );
551 a.val[1] = cvGetReal2D( test_array[INPUT][0], 1, 0 );
552 a.val[2] = cvGetReal2D( test_array[INPUT][0], 2, 0 );
554 b.val[0] = cvGetReal2D( test_array[INPUT][1], 0, 0 );
555 b.val[1] = cvGetReal2D( test_array[INPUT][1], 1, 0 );
556 b.val[2] = cvGetReal2D( test_array[INPUT][1], 2, 0 );
558 else if( test_mat[INPUT][0].cols > 1 )
560 a.val[0] = cvGetReal1D( test_array[INPUT][0], 0 );
561 a.val[1] = cvGetReal1D( test_array[INPUT][0], 1 );
562 a.val[2] = cvGetReal1D( test_array[INPUT][0], 2 );
564 b.val[0] = cvGetReal1D( test_array[INPUT][1], 0 );
565 b.val[1] = cvGetReal1D( test_array[INPUT][1], 1 );
566 b.val[2] = cvGetReal1D( test_array[INPUT][1], 2 );
570 a = cvGet1D( test_array[INPUT][0], 0 );
571 b = cvGet1D( test_array[INPUT][1], 0 );
628 sizeA = sizes[INPUT][0];
630 sizes[INPUT][0] = sizeA;
631 sizes[INPUT][2] = sizes[INPUT][3] = Size(1,1);
632 types[INPUT][2] = types[INPUT][3] &= ~CV_MAT_CN_MASK;
639 sizes[INPUT][1].height = sizes[INPUT][0].width;
640 sizes[OUTPUT][0].height = sizes[INPUT][0].height;
641 sizes[OUTPUT][0].width = sizes[INPUT][1].width;
644 sizes[INPUT][1].width = sizes[INPUT][0].width;
645 sizes[OUTPUT][0].height = sizes[INPUT][0].height;
646 sizes[OUTPUT][0].width = sizes[INPUT][1].height;
649 sizes[INPUT][1].height = sizes[INPUT][0].height;
650 sizes[OUTPUT][0].height = sizes[INPUT][0].width;
651 sizes[OUTPUT][0].width = sizes[INPUT][1].width;
654 sizes[INPUT][1].width = sizes[INPUT][0].height;
655 sizes[OUTPUT][0].height = sizes[INPUT][0].width;
656 sizes[OUTPUT][0].width = sizes[INPUT][1].height;
663 sizes[INPUT][4] = Size(0,0);
665 sizes[INPUT][4] = sizes[OUTPUT][0];
668 sizes[INPUT][4].width = sizes[OUTPUT][0].height;
669 sizes[INPUT][4].height = sizes[OUTPUT][0].width;
679 alpha = cvGetReal2D( test_array[INPUT][2], 0, 0 );
680 beta = cvGetReal2D( test_array[INPUT][3], 0, 0 );
695 cvGEMM( test_array[INPUT][0], test_array[INPUT][1], alpha,
696 test_array[INPUT][4], beta, test_array[OUTPUT][0], tabc_flag );
702 cvtest::gemm( test_mat[INPUT][0], test_mat[INPUT][1], alpha,
703 test_array[INPUT][4] ? test_mat[INPUT][4] : Mat(),
746 sizes[INPUT][1] = Size(0,0);
749 sizes[INPUT][1] = sizes[INPUT][0];
751 sizes[INPUT][1].height = 1;
753 sizes[INPUT][1].width = 1;
756 sizes[TEMP][0] = sizes[INPUT][0];
757 types[INPUT][0] = src_type;
758 types[OUTPUT][0] = types[REF_OUTPUT][0] = types[INPUT][1] = types[TEMP][0] = dst_type;
762 sizes[INPUT][0].height : sizes[INPUT][0].width;
776 cvMulTransposed( test_array[INPUT][0], test_array[OUTPUT][0],
777 order, test_array[INPUT][1] );
783 const Mat& src = test_mat[INPUT][0];
784 Mat delta = test_mat[INPUT][1];
835 mat_cols = CV_MAT_CN(types[INPUT][0]);
836 depth = CV_MAT_DEPTH(types[INPUT][0]);
841 types[INPUT][1] = mattype;
842 types[INPUT][2] = CV_MAKETYPE(mattype, dst_cn);
848 sizes[INPUT][2] = Size(0,0);
852 sizes[INPUT][2] = Size(1,1);
856 sizes[INPUT][2] = Size(dst_cn,1);
858 sizes[INPUT][2] = Size(1,dst_cn);
859 types[INPUT][2] &= ~CV_MAT_CN_MASK;
863 sizes[INPUT][1] = Size(mat_cols,dst_cn);
872 Mat& m = test_mat[INPUT][1];
887 int depth = test_mat[INPUT][0].depth();
893 CvMat _m = test_mat[INPUT][1], _shift = test_mat[INPUT][2];
894 cvTransform( test_array[INPUT][0], test_array[OUTPUT][0], &_m, _shift.data.ptr ? &_shift : 0);
900 Mat transmat = test_mat[INPUT][1];
901 Mat shift = test_mat[INPUT][2];
903 cvtest::transform( test_mat[INPUT][0], test_mat[REF_OUTPUT][0], transmat, shift );
933 cn = CV_MAT_CN(types[INPUT][0]) + 1;
934 depth = CV_MAT_DEPTH(types[INPUT][0]);
935 types[INPUT][0] = types[OUTPUT][0] = types[REF_OUTPUT][0] = CV_MAKETYPE(depth, cn);
938 types[INPUT][1] = mattype;
939 sizes[INPUT][1] = Size(cn + 1, cn + 1);
945 int depth = test_mat[INPUT][0].depth();
953 CvMat _m = test_mat[INPUT][1];
954 cvPerspectiveTransform( test_array[INPUT][0], test_array[OUTPUT][0], &_m );
1060 INPUT][1];
1061 cvTsPerspectiveTransform( test_array[INPUT][0], test_array[REF_OUTPUT][0], &transmat );
1094 sizes[INPUT][0].width = sizes[INPUT][1].width = 1;
1096 sizes[INPUT][0].height = sizes[INPUT][1].height = 1;
1098 sizes[TEMP][0] = sizes[TEMP][1] = sizes[INPUT][0];
1099 sizes[INPUT][2].width = sizes[INPUT][2].height = sizes[INPUT][0].width + sizes[INPUT][0].height - 1;
1100 sizes[TEMP][2] = sizes[INPUT][2];
1101 types[TEMP][0] = types[TEMP][1] = types[TEMP][2] = types[INPUT][0];
1110 cvtest::gemm( test_mat[INPUT][2], test_mat[INPUT][2], 1., Mat(), 0., test_mat[TEMP][2], GEMM_2_T );
1111 cvtest::copy( test_mat[TEMP][2], test_mat[INPUT][2] );
1121 cvRealScalar(cvMahalanobis(test_array[INPUT][0], test_array[INPUT][1], test_array[INPUT][2]));
1126 cvtest::add( test_mat[INPUT][0], 1., test_mat[INPUT][1], -1.,
1128 if( test_mat[INPUT][0].rows == 1 )
1129 cvtest::gemm( test_mat[TEMP][0], test_mat[INPUT][2], 1.,
1132 cvtest::gemm( test_mat[INPUT][2], test_mat[TEMP][0], 1.,
1183 len = sizes[INPUT][0].width;
1184 count = sizes[INPUT][0].height;
1186 sizes[INPUT][0] = Size(len, count);
1190 len = sizes[INPUT][0].height;
1191 count = sizes[INPUT][0].width;
1193 sizes[INPUT][0] = Size(count, len);
1199 if( CV_MAT_DEPTH(types[INPUT][0]) == CV_32S )
1200 types[INPUT][0] = (types[INPUT][0] & ~CV_MAT_DEPTH_MASK) | CV_32F;
1204 sizes[TEMP][0] = sizes[INPUT][0];
1208 CV_MAT_DEPTH(types[INPUT][0]) == CV_64F || (bits & 512) ? CV_64F : CV_32F;
1230 *((CvMat*)_hdr_data) = test_mat[INPUT][0];
1232 *((IplImage*)_hdr_data) = test_mat[INPUT][0];
1242 part = test_mat[INPUT][0].row(i);
1244 part = test_mat[INPUT][0].col(i);
1301 cvtest::add( test_mat[INPUT][0], 1, temp0, -1, Scalar::all(0), temp0, temp0.type());
1357 sizes[INPUT][0].width = sizes[INPUT][0].height;
1358 sizes[TEMP][0] = sizes[INPUT][0];
1372 return CV_MAT_DEPTH(cvGetElemType(test_array[INPUT][0])) == CV_32F ? 1e-2 : 1e-5;
1380 cvTsFloodWithZeros( test_mat[INPUT][0], ts->get_rng() );
1388 test_mat[OUTPUT][0].at<Scalar>(0,0) = cvRealScalar(cvDet(test_array[INPUT][0]));
1481 test_mat[INPUT][0].convertTo(test_mat[TEMP][0], test_mat[TEMP][0].type());
1521 int min_size = MIN( sizes[INPUT][0].width, sizes[INPUT][0].height );
1528 sizes[INPUT][0] = Size(min_size, min_size);
1536 sizes[INPUT][0] = Size(min_size, min_size);
1539 sizes[TEMP][0].width = sizes[INPUT][0].height;
1540 sizes[TEMP][0].height = sizes[INPUT][0].width;
1541 sizes[TEMP][1] = sizes[INPUT][0];
1542 types[TEMP][0] = types[INPUT][0];
1558 cvTsFloodWithZeros( test_mat[INPUT][0], ts->get_rng() );
1562 cvtest::gemm( test_mat[INPUT][0], test_mat[INPUT][0], 1.,
1564 cvtest::copy( test_mat[TEMP][0], test_mat[INPUT][0] );
1582 result = cvInvert(test_array[INPUT][0], test_array[TEMP][0], method);
1614 Mat& input = test_mat[INPUT][0];
1619 CvMat _input = input;
1621 double threshold = (input.depth() == CV_32F ? FLT_EPSILON : DBL_EPSILON)*1000;
1623 input, temp1, temp1.type() );
1634 if( input.rows >= input.cols )
1635 cvtest::gemm( temp0, input, 1., Mat(), 0., dst, 0 );
1637 cvtest::gemm( input, temp0, 1., Mat(), 0., dst, 0 );
1676 CvSize in_sz = sizes[INPUT][0];
1680 sizes[INPUT][0] = in_sz;
1681 int min_size = MIN( sizes[INPUT][0].width, sizes[INPUT][0].height );
1688 sizes[INPUT][0] = Size(min_size, min_size);
1696 sizes[INPUT][0] = Size(min_size, min_size);
1699 sizes[INPUT][1].height = sizes[INPUT][0].height;
1700 sizes[TEMP][0].width = sizes[INPUT][1].width;
1701 sizes[TEMP][0].height = sizes[INPUT][0].width;
1702 sizes[TEMP][1] = sizes[INPUT][0];
1703 types[TEMP][0] = types[INPUT][0];
1705 sizes[OUTPUT][0] = sizes[REF_OUTPUT][0] = Size(sizes[INPUT][1].width, min_size);
1715 cvTsGEMM( test_array[INPUT][0], test_array[INPUT][0], 1.,
1717 cvTsCopy( test_array[TEMP][0], test_array[INPUT][0] );
1739 result = cvSolve(test_array[INPUT][0], test_array[INPUT][1], test_array[TEMP][0], method);
1745 Mat& input = test_mat[INPUT][0];
1754 cvtest::convert(input, temp1, temp1.type());
1762 double threshold = (input.type() == CV_32F ? FLT_EPSILON : DBL_EPSILON)*1000;
1763 CvMat _input = input;
1773 Mat* pdst = input.rows <= input.cols ? &test_mat[OUTPUT][0] : &test_mat[INPUT][1];
1775 cvtest::gemm( input, test_mat[TEMP][0], 1., test_mat[INPUT][1], -1., *pdst, 0 );
1777 cvtest::gemm( input, *pdst, 1., Mat(), 0., dst, CV_GEMM_A_T );
1821 min_size = MIN( sizes[INPUT][0].width, sizes[INPUT][0].height );
1831 sizes[INPUT][0] = Size(min_size, min_size);
1833 m = sizes[INPUT][0].height;
1834 n = sizes[INPUT][0].width;
1839 sizes[TEMP][0] = sizes[INPUT][0];
1871 types[TEMP][0] = types[TEMP][1] = types[TEMP][2] = types[TEMP][3] = types[INPUT][0];
1872 types[OUTPUT][0] = types[OUTPUT][1] = types[OUTPUT][2] = types[INPUT][0];
1874 sizes[OUTPUT][0] = !have_u || !have_v ? Size(0,0) : sizes[INPUT][0];
1892 Mat& input = test_mat[INPUT][0];
1893 cvTsFloodWithZeros( input, ts->get_rng() );
1898 cvtest::gemm( input, input, 1., Mat(), 0., temp, CV_GEMM_B_T );
1899 cvtest::copy( temp, input );
1903 cvtest::copy( input, test_mat[OUTPUT][0] );
1918 int input_depth = CV_MAT_DEPTH(cvGetElemType( test_array[INPUT][0] ));
1926 CvArr* src = test_array[!(flags & CV_SVD_MODIFY_A) ? INPUT : OUTPUT][0];
1928 src = test_array[INPUT][0];
1935 Mat& input = test_mat[INPUT][0];
1936 int depth = input.depth();
1937 int i, m = input.rows, n = input.cols, min_size = MIN(m, n);
2006 cvtest::copy( test_mat[INPUT][0], test_mat[REF_OUTPUT][0] );
2050 min_size = MIN( sizes[INPUT][0].width, sizes[INPUT][0].height );
2059 sizes[INPUT][0] = Size(min_size, min_size);
2061 m = sizes[INPUT][0].height;
2062 n = sizes[INPUT][0].width;
2064 sizes[INPUT][1] = Size(0,0);
2068 sizes[INPUT][1].height = sizes[INPUT][0].height;
2069 sizes[INPUT][1].width = cvtest::randInt(rng) % 100 + 1;
2070 b_size = sizes[INPUT][1];
2076 sizes[TEMP][0] = sizes[INPUT][0];
2096 types[TEMP][0] = types[TEMP][1] = types[TEMP][2] = types[INPUT][0];
2097 types[OUTPUT][0] = types[REF_OUTPUT][0] = types[INPUT][0];
2107 Mat& input = test_mat[INPUT][0];
2108 cvTsFloodWithZeros( input, ts->get_rng() );
2113 cvtest::gemm( input, input, 1., Mat(), 0., temp, CV_GEMM_B_T );
2114 cvtest::copy( temp, input );
2117 CvMat _input = input;
2134 return CV_MAT_DEPTH(cvGetElemType(test_array[INPUT][0])) == CV_32F ? 1e-3 : 1e-7;
2141 test_array[INPUT][1], test_array[OUTPUT][0], flags );
2147 Mat& input = test_mat[INPUT][0];
2148 int i, m = input.rows, n = input.cols, min_size = MIN(m, n);
2149 bool is_float = input.type() == CV_32F;
2167 Mat b = test_mat[INPUT][1];
2174 test_mat[INPUT][1].convertTo(b, CV_64F);