KmeansFlags
import { KmeansFlags } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Native object: release it with using or delete(). Factories can return null; check before calling methods.
core_array
k-means flags
Constructors and members
static KMEANS_RANDOM_CENTERS
Select random initial centers in each attempt.
KMEANS_RANDOM_CENTERS: KmeansFlagsValue<0>,static KMEANS_PP_CENTERS
Use kmeans++ center initialization by Arthur and Vassilvitskii [Arthur2007].
KMEANS_PP_CENTERS: KmeansFlagsValue<2>,static KMEANS_USE_INITIAL_LABELS
During the first (and possibly the only) attempt, use the user-supplied labels instead of computing them from the initial centers. For the second and further attempts, use the random or semi-random centers. Use one of KMEANS_*_CENTERS flag to specify the exact method.
KMEANS_USE_INITIAL_LABELS: KmeansFlagsValue<1>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.