opencv::core

Function reduce_arg_max_def

Source
pub fn reduce_arg_max_def(
    src: &impl ToInputArray,
    dst: &mut impl ToOutputArray,
    axis: i32,
) -> Result<()>
Expand description

Finds indices of max elements along provided axis

Note: - If input or output array is not continuous, this function will create an internal copy. - NaN handling is left unspecified, see patchNaNs(). - The returned index is always in bounds of input matrix.

§Parameters

  • src: input single-channel array.
  • dst: output array of type CV_32SC1 with the same dimensionality as src, except for axis being reduced - it should be set to 1.
  • lastIndex: whether to get the index of first or last occurrence of max.
  • axis: axis to reduce along.

§See also

reduceArgMin, minMaxLoc, min, max, compare, reduce

§Note

This alternative version of reduce_arg_max function uses the following default values for its arguments:

  • last_index: false