Show / Hide Table of Contents

Class LDA

Linear Discriminant Analysis

Inheritance
System.Object
DisposableObject
DisposableCvObject
LDA
Implements
ICvPtrHolder
Inherited Members
DisposableCvObject.ptr
DisposableCvObject.CvPtr
DisposableObject.DataHandle
DisposableObject.IsDisposed
DisposableObject.IsEnabledDispose
DisposableObject.AllocatedMemory
DisposableObject.AllocatedMemorySize
DisposableObject.Dispose()
DisposableObject.Dispose(Boolean)
DisposableObject.DisposeManaged()
DisposableObject.AllocGCHandle(Object)
DisposableObject.AllocMemory(Int32)
DisposableObject.NotifyMemoryPressure(Int64)
DisposableObject.ThrowIfDisposed()
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class LDA : DisposableCvObject, ICvPtrHolder

Constructors

| Improve this Doc View Source

LDA(InputArray, InputArray, Int32)

Initializes and performs a Discriminant Analysis with Fisher's Optimization Criterion on given data in src and corresponding labels in labels.If 0 (or less) number of components are given, they are automatically determined for given data in computation.

Declaration
public LDA(InputArray src, InputArray labels, int numComponents = 0)
Parameters
Type Name Description
InputArray src
InputArray labels
System.Int32 numComponents
| Improve this Doc View Source

LDA(Int32)

constructor

Declaration
public LDA(int numComponents = 0)
Parameters
Type Name Description
System.Int32 numComponents

Methods

| Improve this Doc View Source

Compute(InputArray, InputArray)

Compute the discriminants for data in src (row aligned) and labels.

Declaration
public void Compute(InputArray src, InputArray labels)
Parameters
Type Name Description
InputArray src
InputArray labels
| Improve this Doc View Source

DisposeUnmanaged()

Releases unmanaged resources

Declaration
protected override void DisposeUnmanaged()
Overrides
DisposableCvObject.DisposeUnmanaged()
| Improve this Doc View Source

Eigenvalues()

Returns the eigenvalues of this LDA.

Declaration
public Mat Eigenvalues()
Returns
Type Description
Mat
| Improve this Doc View Source

Eigenvectors()

Returns the eigenvectors of this LDA.

Declaration
public Mat Eigenvectors()
Returns
Type Description
Mat
| Improve this Doc View Source

Load(FileStorage)

Deserializes this object from a given cv::FileStorage.

Declaration
public void Load(FileStorage node)
Parameters
Type Name Description
FileStorage node
| Improve this Doc View Source

Load(String)

Deserializes this object from a given filename.

Declaration
public void Load(string fileName)
Parameters
Type Name Description
System.String fileName
| Improve this Doc View Source

Project(InputArray)

Projects samples into the LDA subspace. src may be one or more row aligned samples.

Declaration
public Mat Project(InputArray src)
Parameters
Type Name Description
InputArray src
Returns
Type Description
Mat
| Improve this Doc View Source

Reconstruct(InputArray)

Reconstructs projections from the LDA subspace. src may be one or more row aligned projections.

Declaration
public Mat Reconstruct(InputArray src)
Parameters
Type Name Description
InputArray src
Returns
Type Description
Mat
| Improve this Doc View Source

Save(FileStorage)

Serializes this object to a given cv::FileStorage.

Declaration
public void Save(FileStorage fs)
Parameters
Type Name Description
FileStorage fs
| Improve this Doc View Source

Save(String)

Serializes this object to a given filename.

Declaration
public void Save(string fileName)
Parameters
Type Name Description
System.String fileName
| Improve this Doc View Source

SubspaceProject(InputArray, InputArray, InputArray)

Declaration
public static Mat SubspaceProject(InputArray w, InputArray mean, InputArray src)
Parameters
Type Name Description
InputArray w
InputArray mean
InputArray src
Returns
Type Description
Mat
| Improve this Doc View Source

SubspaceReconstruct(InputArray, InputArray, InputArray)

Declaration
public static Mat SubspaceReconstruct(InputArray w, InputArray mean, InputArray src)
Parameters
Type Name Description
InputArray w
InputArray mean
InputArray src
Returns
Type Description
Mat

Implements

ICvPtrHolder
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX