BOWKMeansTrainer Constructor |
http://www.emgu.com
Create a new BOWKmeans trainer
Namespace:
Emgu.CV.Features2D
Assembly:
Emgu.CV.World (in Emgu.CV.World.dll) Version: 4.0.1.3373 (4.0.1.3373)
Syntaxpublic BOWKMeansTrainer(
int clusterCount,
MCvTermCriteria termcrit,
int attempts = 3,
KMeansInitType flags = KMeansInitType.PPCenters
)
Public Sub New (
clusterCount As Integer,
termcrit As MCvTermCriteria,
Optional attempts As Integer = 3,
Optional flags As KMeansInitType = KMeansInitType.PPCenters
)
public:
BOWKMeansTrainer(
int clusterCount,
MCvTermCriteria termcrit,
int attempts = 3,
KMeansInitType flags = KMeansInitType::PPCenters
)
new :
clusterCount : int *
termcrit : MCvTermCriteria *
?attempts : int *
?flags : KMeansInitType
(* Defaults:
let _attempts = defaultArg attempts 3
let _flags = defaultArg flags KMeansInitType.PPCenters
*)
-> BOWKMeansTrainer
Parameters
- clusterCount
- Type: SystemInt32
Number of clusters to split the set by. - termcrit
- Type: Emgu.CV.StructureMCvTermCriteria
Specifies maximum number of iterations and/or accuracy (distance the centers move by between the subsequent iterations). Use empty termcrit for default. - attempts (Optional)
- Type: SystemInt32
The number of attempts. Use 3 for default - flags (Optional)
- Type: Emgu.CV.CvEnumKMeansInitType
Kmeans initialization flag. Use PPCenters for default.
See Also