GrabCutModes
import { GrabCutModes } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods.
GrabCut algorithm flags
Constructors and members
static GC_INIT_WITH_RECT
The function initializes the state using the provided mask. Note that GC_INIT_WITH_RECT
GC_INIT_WITH_RECT: GrabCutModesValue<0>,static GC_INIT_WITH_MASK
The function initializes the state using the provided mask. Note that GC_INIT_WITH_RECT and GC_INIT_WITH_MASK can be combined. Then, all the pixels outside of the ROI are automatically initialized with GC_BGD .
GC_INIT_WITH_MASK: GrabCutModesValue<1>,static GC_EVAL
The value means that the algorithm should just resume.
GC_EVAL: GrabCutModesValue<2>,static GC_EVAL_FREEZE_MODEL
The value means that the algorithm should just run the grabCut algorithm (a single iteration) with the fixed model
GC_EVAL_FREEZE_MODEL: GrabCutModesValue<3>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.