From 4382bdc8594a70c8ecd30094137fb265194e31e2 Mon Sep 17 00:00:00 2001 From: berak Date: Sun, 15 Jul 2018 11:32:00 +0200 Subject: [PATCH] core: remove unused dataAsRow flag from LDA --- modules/core/include/opencv2/core.hpp | 1 - modules/core/src/lda.cpp | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/core/include/opencv2/core.hpp b/modules/core/include/opencv2/core.hpp index 216a8bcc92..fd304bee8d 100644 --- a/modules/core/include/opencv2/core.hpp +++ b/modules/core/include/opencv2/core.hpp @@ -2585,7 +2585,6 @@ public: static Mat subspaceReconstruct(InputArray W, InputArray mean, InputArray src); protected: - bool _dataAsRow; // unused, but needed for 3.0 ABI compatibility. int _num_components; Mat _eigenvectors; Mat _eigenvalues; diff --git a/modules/core/src/lda.cpp b/modules/core/src/lda.cpp index 5acdb24c62..6d43270a2a 100644 --- a/modules/core/src/lda.cpp +++ b/modules/core/src/lda.cpp @@ -996,9 +996,9 @@ void eigenNonSymmetric(InputArray _src, OutputArray _evals, OutputArray _evects) // Linear Discriminant Analysis implementation //------------------------------------------------------------------------------ -LDA::LDA(int num_components) : _dataAsRow(true), _num_components(num_components) { } +LDA::LDA(int num_components) : _num_components(num_components) { } -LDA::LDA(InputArrayOfArrays src, InputArray labels, int num_components) : _dataAsRow(true), _num_components(num_components) +LDA::LDA(InputArrayOfArrays src, InputArray labels, int num_components) : _num_components(num_components) { this->compute(src, labels); //! compute eigenvectors and eigenvalues }