Lines Matching refs:cols

160     int dim = sample->cols;
220 int dim = sample->cols;
277 int dim = data ? data->cols : 0;
345 CV_ASSERT (center->cols == desired_matrix->cols);
347 dim = desired_matrix->cols;
377 int rows, cols;
385 cols = matrix->cols;
405 for( j = i+1; j < cols; j++, src += step )
425 for( j = i+1; j < cols; j++, src += 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;
1114 sample_count = classes->cols;
1176 if( !(is_sparse && d == 1 || !is_sparse && d == 2 && (sample->rows == 1 || sample->cols == 1)) )
1193 dims_selected = comp_idx ? comp_idx->cols : dims_all;
1200 if( (prob->rows != 1 && prob->cols != 1) ||
1206 if( prob->rows + prob->cols - 1 != class_count )
1439 samples_selected = sample_idx->cols;
1445 dims_selected = comp_idx->cols;
1455 if( dst_labels->rows != 1 && dst_labels->cols != 1 )
1458 if( dst_labels->rows + dst_labels->cols - 1 != samples_all )
1462 CV_ASSERT( labels->cols == samples_selected );
1479 if( dst_centers->cols != dims_all )
1484 CV_ASSERT( centers->cols == dims_selected );
1497 if( probs->cols != dst_probs->cols )
1509 cvSize( probs->cols, 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 )
1771 new_n = new_response_map->cols;
1778 old_n = old_response_map->cols;
1830 samples = _responses->cols + _responses->rows - 1;
1903 nclusters = probs->cols;
1905 CV_ASSERT( nsamples == labels->cols );
1911 labels->data.i[i] = icvGetNumberOfCluster( probs->data.db + i*probs->cols,