Skip to content

min

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

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

ARGUMENTSsrc1, src2, dst
FUNCTIONmin
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Calculates per-element minimum of two arrays or an array and a scalar.

The function cv::min calculates the per-element minimum of two arrays:

\texttt{dst} (I)= \min ( \texttt{src1} (I), \texttt{src2} (I))

or array and a scalar:

\texttt{dst} (I)= \min ( \texttt{src1} (I), \texttt{value} )

See: max, compare, inRange, minMaxLoc

min(src1: Mat, src2: Mat, dst: Mat): void;
src1

first input array.

src2

second input array of the same size and type as src1.

dst

Output destination, filled by the native operation. output array of the same size and type as src1.

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.