public class BOWKMeansTrainer extends BOWTrainer
| Constructor and Description |
|---|
BOWKMeansTrainer(int clusterCount)
The constructor.
|
BOWKMeansTrainer(int clusterCount,
TermCriteria termcrit)
The constructor.
|
BOWKMeansTrainer(int clusterCount,
TermCriteria termcrit,
int attempts)
The constructor.
|
BOWKMeansTrainer(int clusterCount,
TermCriteria termcrit,
int attempts,
int flags)
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static BOWKMeansTrainer |
__fromPtr__(long addr) |
Mat |
cluster() |
Mat |
cluster(Mat descriptors)
Clusters train descriptors.
|
add, clear, descriptorsCount, getDescriptors, getNativeObjAddrpublic BOWKMeansTrainer(int clusterCount)
clusterCount - automatically generatedpublic BOWKMeansTrainer(int clusterCount,
TermCriteria termcrit)
clusterCount - automatically generatedtermcrit - automatically generatedpublic BOWKMeansTrainer(int clusterCount,
TermCriteria termcrit,
int attempts)
clusterCount - automatically generatedtermcrit - automatically generatedattempts - automatically generatedpublic BOWKMeansTrainer(int clusterCount,
TermCriteria termcrit,
int attempts,
int flags)
clusterCount - automatically generatedtermcrit - automatically generatedattempts - automatically generatedflags - automatically generatedpublic static BOWKMeansTrainer __fromPtr__(long addr)
public Mat cluster()
cluster in class BOWTrainerpublic Mat cluster(Mat descriptors)
BOWTrainercluster in class BOWTrainerdescriptors - Descriptors to cluster. Each row of the descriptors matrix is a descriptor.
Descriptors are not added to the inner train descriptor set.
The vocabulary consists of cluster centers. So, this method returns the vocabulary. In the first
variant of the method, train descriptors stored in the object are clustered. In the second variant,
input descriptors are clustered.Generated on 2021-12-25 08:13:27 / OpenCV 4.5.5