Skip to content

exp

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

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

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

Calculates the exponent of every array element.

The function cv::exp calculates the exponent of every element of the input array:

\texttt{dst} [I] = e^{ src(I) }

The maximum relative error is about 7e-6 for single-precision input and less than 1e-10 for double-precision input. Currently, the function converts denormalized values to zeros on output. Special values (NaN, Inf) are not handled.

See: log, cartToPolar, polarToCart, phase, pow, sqrt, magnitude

exp(src: Mat, dst: Mat): void;
src

input array.

dst

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

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.