enum cv::KmeansFlags
Overview
k-Means flags Moreā¦
#include <core.hpp> enum KmeansFlags { KMEANS_RANDOM_CENTERS = 0, KMEANS_PP_CENTERS = 2, KMEANS_USE_INITIAL_LABELS = 1, };
Detailed Documentation
k-Means flags
Enum Values
KMEANS_RANDOM_CENTERS
Select random initial centers in each attempt.
KMEANS_PP_CENTERS
Use kmeans++ center initialization by Arthur and Vassilvitskii [Arthur2007].
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.