core: remove unused dataAsRow flag from LDA
This commit is contained in:
parent
80770aacd7
commit
4382bdc859
@ -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;
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user