Unverified Commit d8d4ea85 authored by Arthur Williams's avatar Arthur Williams Committed by GitHub

Fixed #10433

parent f3880c60
......@@ -239,6 +239,7 @@ PCA& PCA::operator()(InputArray _data, InputArray __mean, int flags, double reta
{
CV_Assert( _mean.size() == mean_sz );
_mean.convertTo(mean, ctype);
covar_flags |= CV_COVAR_USE_AVG;
}
calcCovarMatrix( data, covar, mean, covar_flags, ctype );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment