Function opencv::cudaarithm::min_max[][src]

pub fn min_max(
    src: &dyn ToInputArray,
    min_val: &mut f64,
    max_val: &mut f64,
    mask: &dyn ToInputArray
) -> Result<()>
Expand description

Finds global minimum and maximum matrix elements and returns their values.

Parameters

  • src: Single-channel source image.
  • minVal: Pointer to the returned minimum value. Use NULL if not required.
  • maxVal: Pointer to the returned maximum value. Use NULL if not required.
  • mask: Optional mask to select a sub-matrix.

The function does not work with CV_64F images on GPUs with the compute capability < 1.3.

See also

minMaxLoc

C++ default parameters

  • mask: noArray()