[−][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 .
Parameters
- mtx: input matrix.