ximgproc_segmentation_createGraphSegmentation
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
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;sigmaThe sigma parameter, used to smooth image
kThe k parameter of the algorythm
min_sizeThe 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.