Skip to content

reduceArgMin

Core and matricesfunctionOpenCV 5.0.0
import { reduceArgMin } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSsrc, dst, axis, lastIndex
FUNCTIONreduceArgMin
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Finds indices of min 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.

See: reduceArgMax, minMaxLoc, min, max, compare, reduce

reduceArgMin(src: Mat, dst: Mat, axis: number, lastIndex: boolean): void;
2 available overloads
reduceArgMin(src: Mat, dst: Mat, axis: number): void;
reduceArgMin(src: Mat, dst: Mat, axis: number, lastIndex: boolean): void;
src

input single-channel array.

dst

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

axis

axis to reduce along.

lastIndex

whether to get the index of first or last occurrence of min.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.