reduceArgMin
import { reduceArgMin } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;srcinput single-channel array.
dstOutput 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.
axisaxis to reduce along.
lastIndexwhether 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.