Skip to content

gapi_kmeans1

gapifunctionOpenCV 5.0.0
import { gapi_kmeans1 } from '@banou/opencv-wasm'

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

ARGUMENTSdata, K, criteria, attempts
FUNCTIONgapi_kmeans1
RETURN TYPEtuple_GOpaque_double_and_GMat_and_GMat
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Note: - Function textual ID is "org.opencv.core.kmeansNDNoInit"

  • #KMEANS_USE_INITIAL_LABELS flag must not be set while using this overload.
gapi_kmeans1(data: GMat, K: number, criteria: TermCriteria, attempts: number, flags: number): tuple_GOpaque_double_and_GMat_and_GMat;
data

data argument (GMat).

K

k argument (number).

criteria

criteria argument (TermCriteria).

attempts

attempts argument (number).

flags

flags argument (number).

Returns

The tuple_GOpaque_double_and_GMat_and_GMat 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.