findContoursLinkRuns
import { findContoursLinkRuns } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSimage, contours, hierarchy
FUNCTIONfindContoursLinkRuns
RETURN TYPEvoid
Find contours using link runs algorithm
This function implements an algorithm different from cv::findContours:
- doesn't allocate temporary image internally, thus it has reduced memory consumption
- supports CV_8UC1 images only
- outputs 2-level hierarhy only (RETR_CCOMP mode)
- doesn't support approximation change other than CHAIN_APPROX_SIMPLE In all other aspects this function is compatible with cv::findContours.
findContoursLinkRuns(image: Mat, contours: MatVector, hierarchy: Mat): void;imageimage argument (Mat).
contoursOutput destination, filled by the native operation. contours argument (MatVector).
hierarchyOutput destination, filled by the native operation. hierarchy argument (Mat).
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.