Skip to content

Commit 73c2a12

Browse files
authored
Merge pull request opencv#10435 from DabatoIsCool:master
2 parents 99a9c10 + d8d4ea8 commit 73c2a12

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/core/src/pca.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,7 @@ PCA& PCA::operator()(InputArray _data, InputArray __mean, int flags, double reta
239239
{
240240
CV_Assert( _mean.size() == mean_sz );
241241
_mean.convertTo(mean, ctype);
242+
covar_flags |= CV_COVAR_USE_AVG;
242243
}
243244

244245
calcCovarMatrix( data, covar, mean, covar_flags, ctype );

0 commit comments

Comments
 (0)