[][src]Function opencv::core::trace

pub fn trace(mtx: &dyn ToInputArray) -> Result<Scalar>

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.