opencv::gapi

Function min

source
pub fn min(
    src1: &impl GMatTraitConst,
    src2: &impl GMatTraitConst,
) -> Result<GMat>
Expand description

Calculates per-element minimum of two matrices.

The function min calculates the per-element minimum 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 input matrix data types are [CV_8UC1], [CV_8UC3], [CV_16UC1], [CV_16SC1], [CV_32FC1].

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

§Parameters

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

§See also

max, cmpEQ, cmpLT, cmpLE