add xml serialization

This commit is contained in:
marina.kolpakova
2012-12-12 14:20:42 +04:00
parent 69304611db
commit c0f68ec400
4 changed files with 123 additions and 3 deletions

View File

@@ -1580,8 +1580,11 @@ bool CvCascadeBoost::isErrDesired()
for( int i = 0; i < sCount; i++ )
if( ((CvCascadeBoostTrainData*)data)->featureEvaluator->getCls( i ) == 1.0F )
eval[numPos++] = predict( i, true );
icvSortFlt( &eval[0], numPos, 0 );
int thresholdIdx = (int)((1.0F - minHitRate) * numPos);
threshold = eval[ thresholdIdx ];
numPosTrue = numPos - thresholdIdx;
for( int i = thresholdIdx - 1; i >= 0; i--)