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, getNativeObjAddr
public 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 BOWTrainer
public Mat cluster(Mat descriptors)
BOWTrainer
cluster
in class BOWTrainer
descriptors
- 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 2019-12-20 14:24:32 / OpenCV 4.2.0