Skip to content

max

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

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

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

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

The function cv::max calculates the per-element maximum of two arrays:

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

or array and a scalar:

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

See: min, compare, inRange, minMaxLoc, MatrixExpressions

max(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.