Table of Contents

Method ReduceArgMax

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

ReduceArgMax(InputArray, OutputArray, int, bool)

Finds indices of max elements along provided axis

public static void ReduceArgMax(InputArray src, OutputArray dst, int axis, bool lastIndex = false)

Parameters

src InputArray

Input single-channel array

dst OutputArray

Output array of type CV_32SC1 with the same dimensionality as src, except for axis being reduced - it should be set to 1.

axis int

Axis to reduce along

lastIndex bool

Whether to get the index of first or last occurrence of max