提交 e4d4b07f 编写于 作者: V Vadim Pisarevsky 提交者: OpenCV Buildbot

Merge pull request #873 from prclibo:2.4

...@@ -2857,6 +2857,7 @@ PCA& PCA::operator()(InputArray _data, InputArray __mean, int flags, int maxComp ...@@ -2857,6 +2857,7 @@ PCA& PCA::operator()(InputArray _data, InputArray __mean, int flags, int maxComp
{ {
CV_Assert( _mean.size() == mean_sz ); CV_Assert( _mean.size() == mean_sz );
_mean.convertTo(mean, ctype); _mean.convertTo(mean, ctype);
covar_flags |= CV_COVAR_USE_AVG;
} }
calcCovarMatrix( data, covar, mean, covar_flags, ctype ); calcCovarMatrix( data, covar, mean, covar_flags, ctype );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册