finiteMask
import { finiteMask } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSsrc, mask
FUNCTIONfiniteMask
RETURN TYPEvoid
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;srcInput matrix, should contain float or double elements of 1 to 4 channels
maskOutput 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.