Skip to content

Commit 43f1b72

Browse files
authored
Merge pull request opencv#10443 from alalek:backport_10435
(2.4 backport) Fixed opencv#10433
2 parents 97eae6b + 1f4b8c2 commit 43f1b72

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/core/src/matmul.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2994,6 +2994,7 @@ PCA& PCA::computeVar(InputArray _data, InputArray __mean, int flags, double reta
29942994
{
29952995
CV_Assert( _mean.size() == mean_sz );
29962996
_mean.convertTo(mean, ctype);
2997+
covar_flags |= CV_COVAR_USE_AVG;
29972998
}
29982999

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

0 commit comments

Comments
 (0)