Package boofcv.struct.kmeans
Class FactoryTupleCluster
java.lang.Object
boofcv.struct.kmeans.FactoryTupleCluster
Factory for creating classes related to clustering of
TupleDesc
data structures-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <TD extends TupleDesc<TD>>
PointDistance<TD>createDistance
(Class<TD> tuple) static <TD extends TupleDesc<TD>>
ComputeMeanClusters<TD>createMeanClusters
(int numElements, int minimumForThreads, Class<TD> type) static <TD extends TupleDesc<TD>>
StandardKMeans<TD>kmeans
(ConfigKMeans config, int minimumForThreads, int numElements, Class<TD> tupleType) Creates a K-means clistering algorithm
-
Constructor Details
-
FactoryTupleCluster
public FactoryTupleCluster()
-
-
Method Details
-
kmeans
public static <TD extends TupleDesc<TD>> StandardKMeans<TD> kmeans(ConfigKMeans config, int minimumForThreads, int numElements, Class<TD> tupleType) Creates a K-means clistering algorithm- Parameters:
config
- Configuration for K-Means clusteringminimumForThreads
- Performance tuning parameter. A single threaded variant is used if the number of descriptors is less than this number.numElements
- Number of elements in the tupletupleType
- Type of tuple- Returns:
- Clustering algorithm
-
createMeanClusters
public static <TD extends TupleDesc<TD>> ComputeMeanClusters<TD> createMeanClusters(int numElements, int minimumForThreads, Class<TD> type) -
createDistance
-