fixed CvCascadeBoost::train

This commit is contained in:
Maria Dimashova 2011-11-16 07:15:42 +00:00
parent 1f3f4599cc
commit 44e05308d9

View File

@ -1016,6 +1016,8 @@ bool CvCascadeBoost::train( const CvFeatureEvaluator* _featureEvaluator,
cvSeqPush( weak, &tree );
update_weights( tree );
trim_weights();
if( cvCountNonZero(subsample_mask) == 0 )
break;
}
while( !isErrDesired() && (weak->total < params.weak_count) );