Skip to main content

Function: findContours()

findContours(options): Promise<SvgResult>

Defined in: safeWasmWrappers.js:236

Parameters​

options​

FindContoursOptions

The input options.

Returns​

Promise<SvgResult>

Generated SVG.

Description​

Convert an input image and its labeled regions into an SVG.

Async​

findContours

Throws​

If the WASM function fails or input labels are invalid.

Example​

const { svg } = await findContours({ pixels, labels, width, height });

Variation​

Converts labeled (from a clustering algorithm, e.g. K-Means) image into an SVG.

Since​

0.0.0