max
import { max } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSsrc1, src2, dst
FUNCTIONmax
RETURN TYPEvoid
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;src1first input array.
src2second input array of the same size and type as src1 .
dstOutput 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.