Lines Matching refs:sample_count
641 int sample_count = sample_all; in cvPreprocessOrderedResponses() local
649 if( responses->rows + responses->cols - 1 != sample_count ) in cvPreprocessOrderedResponses()
670 if( sample_idx->rows + sample_idx->cols - 1 > sample_count ) in cvPreprocessOrderedResponses()
673 sample_count = sample_idx->rows + sample_idx->cols - 1; in cvPreprocessOrderedResponses()
676 CV_CALL( out_responses = cvCreateMat( 1, sample_count, CV_32FC1 )); in cvPreprocessOrderedResponses()
682 for( i = 0; i < sample_count; i++ ) in cvPreprocessOrderedResponses()
692 for( i = 0; i < sample_count; i++ ) in cvPreprocessOrderedResponses()
731 int sample_count = sample_all; in cvPreprocessCategoricalResponses() local
739 if( responses->rows + responses->cols - 1 != sample_count ) in cvPreprocessCategoricalResponses()
754 if( sample_idx->rows + sample_idx->cols - 1 > sample_count ) in cvPreprocessCategoricalResponses()
757 sample_count = sample_idx->rows + sample_idx->cols - 1; in cvPreprocessCategoricalResponses()
760 CV_CALL( out_responses = cvCreateMat( 1, sample_count, CV_32SC1 )); in cvPreprocessCategoricalResponses()
765 CV_CALL( response_ptr = (int**)cvAlloc( sample_count*sizeof(response_ptr[0]))); in cvPreprocessCategoricalResponses()
771 for( i = 0; i < sample_count; i++ ) in cvPreprocessCategoricalResponses()
792 qsort( response_ptr, sample_count, sizeof(int*), icvCmpIntegersPtr ); in cvPreprocessCategoricalResponses()
795 for( i = 1; i < sample_count; i++ ) in cvPreprocessCategoricalResponses()
814 for( i = 0, prev_i = -1; i < sample_count; i++ ) in cvPreprocessCategoricalResponses()
850 int i, j, var_count, sample_count, s_step, v_step; in cvGetTrainSamples() local
860 sample_count = sample_idx ? sample_idx->cols + sample_idx->rows - 1 : in cvGetTrainSamples()
867 *_sample_count = sample_count; in cvGetTrainSamples()
871 CV_CALL( samples = (float**)cvAlloc(sample_count*sizeof(samples[0]) + in cvGetTrainSamples()
872 (copy_data ? 1 : 0)*var_count*sample_count*sizeof(samples[0][0])) ); in cvGetTrainSamples()
881 for( i = 0; i < sample_count; i++ ) in cvGetTrainSamples()
886 samples[0] = (float*)(samples + sample_count); in cvGetTrainSamples()
890 for( i = 0; i < sample_count; i++ ) in cvGetTrainSamples()
971 int sample_all = 0, sample_count = 0, var_all = 0, var_count = 0; in cvPrepareTrainData() local
1032 &var_count, &sample_count, always_copy_data )); in cvPrepareTrainData()
1050 *_sample_count = sample_count; in cvPrepareTrainData()
1106 int i, k = 0, sample_count; in cvSortSamplesByClasses() local
1114 sample_count = classes->cols; in cvSortSamplesByClasses()
1115 CV_CALL( pairs = (CvSampleResponsePair*)cvAlloc( (sample_count+1)*sizeof(pairs[0]))); in cvSortSamplesByClasses()
1117 for( i = 0; i < sample_count; i++ ) in cvSortSamplesByClasses()
1126 qsort( pairs, sample_count, sizeof(pairs[0]), icvCmpSampleResponsePairs ); in cvSortSamplesByClasses()
1127 pairs[sample_count].response = -1; in cvSortSamplesByClasses()
1130 for( i = 0; i < sample_count; i++ ) in cvSortSamplesByClasses()