| KMeansFlags Enumeration |
Miscellaneous flags for cv::kmeans
Namespace:
OpenCvSharp
Assembly:
OpenCvSharp (in OpenCvSharp.dll) Version: 1.0.0
Syntax [FlagsAttribute]
public enum KMeansFlags
<FlagsAttribute>
Public Enumeration KMeansFlags
[FlagsAttribute]
public enum class KMeansFlags
[<FlagsAttribute>]
type KMeansFlags
Members
| Member name | Value | Description |
---|
| RandomCenters | 0 |
Select random initial centers in each attempt.
|
| PpCenters | 2 |
Use kmeans++ center initialization by Arthur and Vassilvitskii [Arthur2007].
|
| UseInitialLabels | 1 |
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.
|
See Also