Lines Matching full:rows
144 int size = MIN(mat->rows,mat->cols);
553 CV_ASSERT( CV_IS_MAT(matrix) && matrix->rows == matrix->cols );
555 nrows = matrix->rows;
648 /* swap rows */ \
938 int n = MIN(src->rows,src->cols);
939 if( method == CV_SVD_SYM && src->rows != src->cols )
942 CV_CALL( u = cvCreateMat( n, src->rows, src->type ));
950 w->data.fl[w->rows-1]/w->data.fl[0] : 0;
953 w->data.db[w->rows-1]/w->data.db[0] : 0;
1239 int n = MIN(src->rows,src->cols);
1241 if( method == CV_SVD_SYM && src->rows != src->cols )
1244 CV_CALL( u = cvCreateMat( n, src->rows, src->type ));
1620 len = data->rows;
1624 if( avg->cols != 1 || avg->rows != len )
1626 "The mean (average) vector should be data->rows x 1 when CV_PCA_DATA_AS_COL is used" );
1633 in_count = data->rows;
1636 if( avg->rows != 1 || avg->cols != len )
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 )
1654 "and the same number of rows as the number of eigenvalues" );
1656 // "scrambled" way to compute PCA (when cols(A)>rows(A)):
1672 tmp_evects->rows = 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'
1734 if( tmp_evals->rows != evals->rows )
1735 cvReshape( tmp_evals, tmp_evals, 1, evals->rows );
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" );
1799 len = data->rows;
1808 in_count = data->rows;
1816 "Eigenvectors must be stored as rows and be of the same size as input vectors" );
1818 if( result->cols > evects->rows )
1821 "less than or equal to the number of eigenvectors (number of rows in eigenvectors matrix)" );
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" );
1932 len = result->rows;
1939 in_count = result->rows;
1945 "Eigenvectors must be stored as rows and be of the same size as the output vectors" );
1947 if( data->cols > evects->rows )
1950 "less than or equal to the number of eigenvectors (number of rows in eigenvectors matrix)" );