Class SVD
Singular Value Decomposition class
Implements
Inherited Members
Namespace: OpenCvSharp
Assembly: OpenCvSharp.dll
Syntax
public class SVD : DisposableCvObject, ICvPtrHolder
Constructors
| Improve this Doc View SourceSVD()
the default constructor
Declaration
public SVD()
SVD(InputArray, SVD.Flags)
the constructor that performs SVD
Declaration
public SVD(InputArray src, SVD.Flags flags = SVD.Flags.None)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | |
SVD.Flags | flags |
Methods
| Improve this Doc View SourceBackSubst(InputArray, InputArray, InputArray, InputArray, OutputArray)
performs back substitution
Declaration
public static void BackSubst(InputArray w, InputArray u, InputArray vt, InputArray rhs, OutputArray dst)
Parameters
Type | Name | Description |
---|---|---|
InputArray | w | |
InputArray | u | |
InputArray | vt | |
InputArray | rhs | |
OutputArray | dst |
BackSubst(InputArray, OutputArray)
performs back substitution, so that dst is the solution or pseudo-solution of m*dst = rhs, where m is the decomposed matrix
Declaration
public void BackSubst(InputArray rhs, OutputArray dst)
Parameters
Type | Name | Description |
---|---|---|
InputArray | rhs | |
OutputArray | dst |
Compute(InputArray, OutputArray, OutputArray, OutputArray, SVD.Flags)
decomposes matrix and stores the results to user-provided matrices
Declaration
public static void Compute(InputArray src, OutputArray w, OutputArray u, OutputArray vt, SVD.Flags flags = SVD.Flags.None)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | |
OutputArray | w | |
OutputArray | u | |
OutputArray | vt | |
SVD.Flags | flags |
Compute(InputArray, OutputArray, SVD.Flags)
computes singular values of a matrix
Declaration
public static void Compute(InputArray src, OutputArray w, SVD.Flags flags = SVD.Flags.None)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | |
OutputArray | w | |
SVD.Flags | flags |
DisposeUnmanaged()
Releases unmanaged resources
Declaration
protected override void DisposeUnmanaged()
Overrides
| Improve this Doc View SourceRun(InputArray, SVD.Flags)
the operator that performs SVD. The previously allocated SVD::u, SVD::w are SVD::vt are released.
Declaration
public SVD Run(InputArray src, SVD.Flags flags = SVD.Flags.None)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | |
SVD.Flags | flags |
Returns
Type | Description |
---|---|
SVD |
SolveZ(InputArray, OutputArray)
finds dst = arg min_{|dst|=1} |m*dst|
Declaration
public static void SolveZ(InputArray src, OutputArray dst)
Parameters
Type | Name | Description |
---|---|---|
InputArray | src | |
OutputArray | dst |
U()
eigenvalues of the covariation matrix
Declaration
public Mat U()
Returns
Type | Description |
---|---|
Mat |
Vt()
mean value subtracted before the projection and added after the back projection
Declaration
public Mat Vt()
Returns
Type | Description |
---|---|
Mat |
W()
eigenvalues of the covariation matrix
Declaration
public Mat W()
Returns
Type | Description |
---|---|
Mat |