Skip to content

ximgproc_segmentation_createGraphSegmentation

Extended image processingfunctionOpenCV 5.0.0
import { ximgproc_segmentation_createGraphSegmentation } from '@banou/opencv-wasm'

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

ARGUMENTSsigma, k, min_size
FUNCTIONximgproc_segmentation_createGraphSegmentation
RETURN TYPEximgproc_segmentation_GraphSegmentation | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Creates a graph based segmentor

ximgproc_segmentation_createGraphSegmentation(sigma: number, k: number, min_size: number): ximgproc_segmentation_GraphSegmentation | null;
4 available overloads
ximgproc_segmentation_createGraphSegmentation(): ximgproc_segmentation_GraphSegmentation | null;
ximgproc_segmentation_createGraphSegmentation(sigma: number): ximgproc_segmentation_GraphSegmentation | null;
ximgproc_segmentation_createGraphSegmentation(sigma: number, k: number): ximgproc_segmentation_GraphSegmentation | null;
ximgproc_segmentation_createGraphSegmentation(sigma: number, k: number, min_size: number): ximgproc_segmentation_GraphSegmentation | null;
sigma

The sigma parameter, used to smooth image

k

The k parameter of the algorythm

min_size

The minimum size of segments

Returns

The ximgproc_segmentation_GraphSegmentation | null result.

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.