Skip to content

sqrt

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

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

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

Calculates a square root of array elements.

The function cv::sqrt calculates a square root of each input array element. In case of multi-channel arrays, each channel is processed independently. The accuracy is approximately the same as of the built-in std::sqrt .

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

input floating-point 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.