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