Lines Matching refs:samples
57 CvMat* samples = (CvMat*)samples_arr;
65 if( !CV_IS_MAT( samples ))
66 CV_CALL( samples = cvGetMat( samples, &samples_stub ));
74 if( CV_MAT_DEPTH(samples->type) != CV_32F || CV_MAT_TYPE(labels->type) != CV_32SC1 )
76 "samples should be floating-point matrix, cluster_idx - integer vector" );
79 labels->rows + labels->cols - 1 != samples->rows )
81 "cluster_idx should be 1D vector of the same number of elements as samples' number of rows" );
86 sample_count = samples->rows;
91 dims = samples->cols*CV_MAT_CN(samples->type);
113 float* s = (float*)(samples->data.ptr + i*samples->step);
150 float* s = (float*)(samples->data.ptr + i*samples->step);
172 float* s = (float*)(samples->data.ptr + i*samples->step);