Skip to content

finiteMask

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

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

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

Generates a mask of finite float values, i.e. not NaNs nor Infs.

An element is set to to 255 (all 1-bits) if all channels are finite.

finiteMask(src: Mat, mask: Mat): void;
src

Input matrix, should contain float or double elements of 1 to 4 channels

mask

Output destination, filled by the native operation. Output matrix of the same size as input of type CV_8UC1

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.