enum cv::DecompTypes

Overview

matrix decomposition types Moreā€¦

#include <base.hpp>

enum DecompTypes
{
    DECOMP_LU       = 0,
    DECOMP_SVD      = 1,
    DECOMP_EIG      = 2,
    DECOMP_CHOLESKY = 3,
    DECOMP_QR       = 4,
    DECOMP_NORMAL   = 16,
};

Detailed Documentation

matrix decomposition types

Enum Values

DECOMP_LU

Gaussian elimination with the optimal pivot element chosen.

DECOMP_SVD

singular value decomposition (SVD) method; the system can be over-defined and/or the matrix src1 can be singular

DECOMP_EIG

eigenvalue decomposition; the matrix src1 must be symmetrical

DECOMP_CHOLESKY

Cholesky \(LL^T\) factorization; the matrix src1 must be symmetrical and positively defined

DECOMP_QR

QR factorization; the system can be over-defined and/or the matrix src1 can be singular

DECOMP_NORMAL

while all the previous flags are mutually exclusive, this flag can be used together with any of the previous; it means that the normal equations \(\texttt{src1}^T\cdot\texttt{src1}\cdot\texttt{dst}=\texttt{src1}^T\texttt{src2}\) are solved instead of the original system \(\texttt{src1}\cdot\texttt{dst}=\texttt{src2}\)