Skip to content

findContoursLinkRuns1

Image processingfunctionOpenCV 5.0.0
import { findContoursLinkRuns1 } from '@banou/opencv-wasm'

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

ARGUMENTSimage, contours
FUNCTIONfindContoursLinkRuns1
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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.
findContoursLinkRuns1(image: Mat, contours: MatVector): void;
image

image argument (Mat).

contours

Output destination, filled by the native operation. contours argument (MatVector).

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.