Home | History | Annotate | Download | only in src

Lines Matching refs:cols

144         int size = MIN(mat->rows,mat->cols);
553 CV_ASSERT( CV_IS_MAT(matrix) && matrix->rows == matrix->cols );
938 int n = MIN(src->rows,src->cols);
939 if( method == CV_SVD_SYM && src->rows != src->cols )
944 CV_CALL( v = cvCreateMat( n, src->cols, src->type ));
1184 AtA = cvCreateMat( A->cols, A->cols, A->type );
1185 AtB = cvCreateMat( A->cols, 1, A->type );
1186 W = cvCreateMat( A->cols, 1, A->type );
1187 V = cvCreateMat( A->cols, A->cols, A->type );
1239 int n = MIN(src->rows,src->cols);
1241 if( method == CV_SVD_SYM && src->rows != src->cols )
1246 CV_CALL( v = cvCreateMat( n, src->cols, src->type ));
1621 in_count = data->cols;
1624 if( avg->cols != 1 || avg->rows != len )
1632 len = data->cols;
1636 if( avg->rows != 1 || avg->cols != len )
1638 "The mean (average) vector should be 1 x data->cols when CV_PCA_DATA_AS_ROW is used" );
1644 out_count = evals->cols + evals->rows - 1;
1646 if( (evals->cols != 1 && evals->rows != 1) || out_count > count )
1649 "no more than min(data->rows,data->cols) elements" );
1651 if( evects->cols != len || evects->rows != out_count )
1656 // "scrambled" way to compute PCA (when cols(A)>rows(A)):
1673 tmp_evals->cols = out_count;
1683 // CV_PCA_DATA_AS_ROW: cols(A)>rows(A). x=A'*y -> x'=y'*A
1684 // CV_PCA_DATA_AS_COL: rows(A)>cols(A). x=A''*y -> x'=y'*A'
1792 if( (avg->cols != 1 || avg->rows != data->rows) &&
1793 (avg->rows != 1 || avg->cols != data->cols) )
1795 "The mean (average) vector should be either 1 x data->cols or data->rows x 1" );
1797 if( avg->cols == 1 )
1800 in_count = data->cols;
1807 len = data->cols;
1814 if( evects->cols != len )
1818 if( result->cols > evects->rows )
1823 evects = cvGetRows( evects, &evectstub, 0, result->cols );
1925 if( (avg->cols != 1 || avg->rows != result->rows) &&
1926 (avg->rows != 1 || avg->cols != result->cols) )
1928 "The mean (average) vector should be either 1 x result->cols or result->rows x 1" );
1930 if( avg->cols == 1 )
1933 in_count = result->cols;
1938 len = result->cols;
1943 if( evects->cols != len )
1947 if( data->cols > evects->rows )
1952 evects = cvGetRows( evects, &evectstub, 0, data->cols );