Skip to content

Commit d8d4ea8

Browse files
Fixed opencv#10433
1 parent f3880c6 commit d8d4ea8

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)