pub fn norm_l1(src: &GMat) -> Result<GScalar>
Expand description
Calculates the absolute L1 norm of a matrix.
This version of normL1 calculates the absolute L1 norm of src.
As example for one array consider the function .
The
norm for the sample value
is calculated as follows
\f{align*}
| r(-1) |{L_1} &= |-1| + |2| = 3 \
\f}
and for
the calculation is
\f{align*}
| r(0.5) |{L_1} &= |0.5| + |0.5| = 1 \
\f}
Supported matrix data types are [CV_8UC1], [CV_8UC3], [CV_16UC1], [CV_16SC1], [CV_32FC1].
Note: Function textual ID is “org.opencv.core.matrixop.norml1”
Parameters
- src: input matrix.
See also
normL2, normInf