fixed pca bug for fixed mean input

pull/873/head
Bo Li 12 years ago
parent 2aa5f1bfd1
commit 81779d8287
  1. 1
      modules/core/src/matmul.cpp

@ -2857,6 +2857,7 @@ PCA& PCA::operator()(InputArray _data, InputArray __mean, int flags, int maxComp
{
CV_Assert( _mean.size() == mean_sz );
_mean.convertTo(mean, ctype);
covar_flags |= CV_COVAR_USE_AVG;
}
calcCovarMatrix( data, covar, mean, covar_flags, ctype );

Loading…
Cancel
Save