Function opencv::gapi::max

source ·
pub fn max(src1: &GMat, src2: &GMat) -> Result<GMat>
Expand description

Calculates per-element maximum of two matrices.

The function max calculates the per-element maximum of two matrices of the same size, number of channels and depth: block formula where I is a multi-dimensional index of matrix elements. In case of multi-channel matrices, each channel is processed independently. Output matrix must be of the same size and depth as src1.

Supported matrix data types are [CV_8UC1], [CV_8UC3], [CV_16UC1], [CV_16SC1], [CV_32FC1].

Note: Function textual ID is “org.opencv.core.matrixop.max”

Parameters

  • src1: first input matrix.
  • src2: second input matrix of the same size and depth as src1.

See also

min, compare, cmpEQ, cmpGT, cmpGE