Lines Matching refs:class_count
1360 int class_count = class_labels->cols;
1372 cw->rows + cw->cols - 1 != class_count ||
1383 (class_count*(class_count-1)/2)*sizeof(df[0])));
1388 (class_count + 1)*sizeof(class_ranges[0])));
1393 class_ranges[class_count] = 0;
1396 if( class_ranges[class_count] <= 0 )
1403 for(i = 0; i < class_count; i++ )
1406 for( j = i+1; j< class_count; j++ )
1419 for( i = 0; i < class_count; i++ )
1421 for( j = i+1; j < class_count; j++, df++ )
1505 for( i = 0; i < class_count; i++ )
1507 for( j = i+1; j < class_count; j++, df++ )
1888 int class_count;
1894 class_count = class_labels ? class_labels->cols :
1898 class_count, 0, &row_sample ));
1902 buf_sz = sv_total*sizeof(buffer[0]) + (class_count+1)*sizeof(int);
1932 memset( vote, 0, class_count*sizeof(vote[0]));
1935 for( i = 0; i < class_count; i++ )
1937 for( j = i+1; j < class_count; j++, df++ )
1948 for( i = 1, k = 0; i < class_count; i++ )
2045 int i, var_count = get_var_count(), df_count, class_count;
2055 class_count = class_labels ? class_labels->cols :
2058 if( class_count )
2060 cvWriteInt( fs, "class_count", class_count );
2085 df_count = class_count > 1 ? class_count*(class_count-1)/2 : 1;
2098 if( class_count > 1 )
2204 int i, var_count, df_count, class_count;
2222 class_count = cvReadIntByName( fs, svm_node, "class_count", 0 );
2224 if( sv_total <= 0 || var_all <= 0 || var_count <= 0 || var_count > var_all || class_count < 0 )
2225 CV_ERROR( CV_StsParseError, "SVM model data is invalid, check sv_count, var_* and class_count tags" );
2231 if( class_count > 1 && (!class_labels ||
2232 !CV_IS_MAT(class_labels) || class_labels->cols != class_count))
2265 df_count = class_count > 1 ? class_count*(class_count-1)/2 : 1;
2298 if( class_count > 1 )
2332 int var_count, class_count;
2354 class_count = src->class_labels ? src->class_labels->cols :
2369 df_count = class_count > 1 ? class_count*(class_count-1)/2 : 1;
2386 if( class_count > 1 )