gapi_kmeans1
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
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;datadata argument (GMat).
Kk argument (number).
criteriacriteria argument (TermCriteria).
attemptsattempts argument (number).
flagsflags 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.