Home | History | Annotate | Download | only in src

Lines Matching full:rows

127     int dim = A->rows;
161 int amount = sample->rows;
221 int amount = sample->rows;
344 CV_ASSERT (center->rows == 1);
348 size = desired_matrix->rows;
377 int rows, cols;
384 rows = matrix->rows;
394 for( i = 1; i < rows; i++ )
402 for( i = 0; i < rows-1; i++, dst += step )
414 for( i = 1; i < rows; i++ )
422 for( i = 0; i < rows-1; i++, dst += step )
475 if( idx_arr->rows != 1 && idx_arr->cols != 1 )
478 idx_total = idx_arr->rows + idx_arr->cols - 1;
585 if( var_type->rows != 1 && var_type->cols != 1 )
591 tm_size = var_type->rows + var_type->cols - 1;
604 var_idx->rows != 1 && var_idx->cols != 1 || !CV_IS_MAT_CONT(var_idx->type) )
606 if( var_idx->rows + var_idx->cols - 1 > var_count )
609 var_count = var_idx->rows + var_idx->cols - 1;
646 if( responses->rows != 1 && responses->cols != 1 )
649 if( responses->rows + responses->cols - 1 != sample_count )
668 sample_idx->rows != 1 && sample_idx->cols != 1 || !CV_IS_MAT_CONT(sample_idx->type) )
670 if( sample_idx->rows + sample_idx->cols - 1 > sample_count )
673 sample_count = sample_idx->rows + sample_idx->cols - 1;
736 if( responses->rows != 1 && responses->cols != 1 )
739 if( responses->rows + responses->cols - 1 != sample_count )
752 sample_idx->rows != 1 && sample_idx->cols != 1 || !CV_IS_MAT_CONT(sample_idx->type) )
754 if( sample_idx->rows + sample_idx->cols - 1 > sample_count )
757 sample_count = sample_idx->rows + sample_idx->cols - 1;
858 var_count = var_idx ? var_idx->cols + var_idx->rows - 1 :
859 tflag == CV_ROW_SAMPLE ? train_data->cols : train_data->rows;
860 sample_count = sample_idx ? sample_idx->cols + sample_idx->rows - 1 :
861 tflag == CV_ROW_SAMPLE ? train_data->rows : train_data->cols;
942 *var_all = tflag == CV_ROW_SAMPLE ? train_data->cols : train_data->rows;
945 *sample_all = tflag == CV_ROW_SAMPLE ? train_data->rows : train_data->cols;
1111 if( classes->rows != 1 || CV_MAT_TYPE(classes->type) != CV_32SC1 )
1176 if( !(is_sparse && d == 1 || !is_sparse && d == 2 && (sample->rows == 1 || sample->cols == 1)) )
1189 if( comp_idx && (!CV_IS_MAT(comp_idx) || comp_idx->rows != 1 ||
1200 if( (prob->rows != 1 && prob->cols != 1) ||
1206 if( prob->rows + prob->cols - 1 != class_count )
1438 CV_ASSERT( sample_idx->rows == 1 && CV_MAT_TYPE(sample_idx->type) == CV_32SC1 );
1444 CV_ASSERT( comp_idx->rows == 1 && CV_MAT_TYPE(comp_idx->type) == CV_32SC1 );
1453 CV_ASSERT( labels->rows == 1 );
1455 if( dst_labels->rows != 1 && dst_labels->cols != 1 )
1458 if( dst_labels->rows + dst_labels->cols - 1 != samples_all )
1476 if( centers->rows != dst_centers->rows )
1477 CV_ERROR( CV_StsUnmatchedSizes, "Invalid number of rows in matrix of output centers" );
1486 for( i = 0; i < centers->rows; i++ )
1500 if( dst_probs->rows != samples_all )
1502 "Number of rows in output probability matrix is "
1505 CV_ASSERT( probs->rows == samples_selected );
1585 if( sample_idx->cols != 1 && sample_idx->rows != 1 )
1588 samples_selected = sample_idx->rows + sample_idx->cols - 1;
1602 if( predict_output->rows != 1 && predict_output->cols != 1 )
1605 if( predict_output->rows + predict_output->cols - 1 != samples_all )
1616 if( probs->rows != samples_all )
1618 "matrix of probabilities must have as many rows as the total number of samples" );
1830 samples = _responses->cols + _responses->rows - 1;
1904 nsamples = probs->rows;