pub fn norm_inf(src: &impl GMatTraitConst) -> Result<GScalar>
Expand description
Calculates the absolute infinite norm of a matrix.
This version of normInf calculates the absolute infinite 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\infty} &= \max(|-1|,|2|) = 2
\f}
and for
the calculation is
\f{align*}
| r(0.5) |{L\infty} &= \max(|0.5|,|0.5|) = 0.5.
\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.norminf”
§Parameters
- src: input matrix.
§See also
normL1, normL2