Function opencv::core::trace

source ·
pub fn trace(mtx: &dyn ToInputArray) -> Result<Scalar>
Expand description

Returns the trace of a matrix.

The function cv::trace returns the sum of the diagonal elements of the matrix mtx . block formula

Parameters

  • mtx: input matrix.