[−][src]Function opencv::core::determinant
pub fn determinant(mtx: &dyn ToInputArray) -> Result<f64>
Returns the determinant of a square floating-point matrix.
The function cv::determinant calculates and returns the determinant of the specified matrix. For small matrices ( mtx.cols=mtx.rows<=3 ), the direct method is used. For larger matrices, the function uses LU factorization with partial pivoting.
For symmetric positively-determined matrices, it is also possible to use eigen decomposition to calculate the determinant.
Parameters
- mtx: input matrix that must have CV_32FC1 or CV_64FC1 type and square size.
See also
trace, invert, solve, eigen, @ref MatrixExpressions