コード例 #1
0
 /// <summary>
 /// Create a new BOWKmeans trainer
 /// </summary>
 /// <param name="clusterCount">Number of clusters to split the set by.</param>
 /// <param name="termcrit">Specifies maximum number of iterations and/or accuracy (distance the centers move by between the subsequent iterations). Use empty termcrit for default.</param>
 /// <param name="attempts">The number of attempts. Use 3 for default</param>
 /// <param name="flags">Kmeans initialization flag. Use PPCenters for default.</param>
 public BOWKMeansTrainer(
     int clusterCount,
     MCvTermCriteria termcrit,
     int attempts = 3,
     CvEnum.KMeansInitType flags = KMeansInitType.PPCenters)
 {
     _ptr = Features2DInvoke.cveBOWKMeansTrainerCreate(clusterCount, ref termcrit, attempts, flags);
 }
コード例 #2
0
 internal static extern IntPtr cveBOWKMeansTrainerCreate(int clusterCount, ref MCvTermCriteria termcrit, int attempts, CvEnum.KMeansInitType flags);
コード例 #3
0
 /// <summary>
 /// Create a new BOWKmeans trainer
 /// </summary>
 /// <param name="clusterCount">Number of clusters to split the set by.</param>
 /// <param name="termcrit">Specifies maximum number of iterations and/or accuracy (distance the centers move by between the subsequent iterations). Use empty termcrit for default.</param>
 /// <param name="attempts">The number of attemps. Use 3 for default</param>
 /// <param name="flags">Kmeans initialization flag. Use PPCenters for default.</param>
 public BOWKMeansTrainer(int clusterCount, MCvTermCriteria termcrit, int attempts, CvEnum.KMeansInitType flags)
 {
     _ptr = CvInvoke.cveBOWKMeansTrainerCreate(clusterCount, ref termcrit, attempts, flags);
 }
コード例 #4
0
 internal extern static IntPtr CvBOWKMeansTrainerCreate(int clusterCount, MCvTermCriteria termcrit, int attempts, CvEnum.KMeansInitType flags);