Function opencv::core::reduce_arg_max
source · pub fn reduce_arg_max(
src: &dyn ToInputArray,
dst: &mut dyn ToOutputArray,
axis: i32,
last_index: bool
) -> 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
C++ default parameters
- last_index: false