fix plausability check, #issue 4429

pull/4167/head
berak 10 years ago
parent e379ea6ed6
commit b29e473c21
  1. 2
      modules/ml/src/nbayes.cpp

@ -313,7 +313,7 @@ public:
CV_Error( CV_StsBadArg,
"The input samples must be 32f matrix with the number of columns = nallvars" );
if( samples.rows > 1 && _results.needed() )
if( (samples.rows > 1) && (! _results.needed()) )
CV_Error( CV_StsNullPtr,
"When the number of input samples is >1, the output vector of results must be passed" );

Loading…
Cancel
Save