Merge pull request #2748 from jet47:fix-bug-3690

pull/2745/merge
Roman Donchenko 11 years ago committed by OpenCV Buildbot
commit 83b7fe1b82
  1. 2
      modules/ml/src/tree.cpp

@ -1434,8 +1434,6 @@ void CvDTreeTrainData::read_params( CvFileStorage* fs, CvFileNode* node )
var_type->data.i[var_count] = cat_var_count;
ord_var_count = ~ord_var_count;
if( cat_var_count != cat_var_count || ord_var_count != ord_var_count )
CV_ERROR( CV_StsParseError, "var_type is inconsistent with cat_var_count and ord_var_count" );
//////
if( cat_var_count > 0 || is_classifier )

Loading…
Cancel
Save