RetrievalModes
import { RetrievalModes } 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.
mode of the contour retrieval algorithm
Constructors and members
static RETR_EXTERNAL
retrieves only the extreme outer contours. It sets hierarchy[i][2]=hierarchy[i][3]=-1 for
all the contours.
RETR_EXTERNAL: RetrievalModesValue<0>,static RETR_LIST
retrieves all of the contours without establishing any hierarchical relationships.
RETR_LIST: RetrievalModesValue<1>,static RETR_CCOMP
retrieves all of the contours and organizes them into a two-level hierarchy. At the top level, there are external boundaries of the components. At the second level, there are boundaries of the holes. If there is another contour inside a hole of a connected component, it is still put at the top level.
RETR_CCOMP: RetrievalModesValue<2>,static RETR_TREE
retrieves all of the contours and reconstructs a full hierarchy of nested contours.
RETR_TREE: RetrievalModesValue<3>,static RETR_FLOODFILL
retr floodfill constant (4), defined by OpenCV for cv.
RETR_FLOODFILL: RetrievalModesValue<4>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.