public class BOWKMeansTrainer extends BOWTrainer
nativeObj
Modifier | 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.
|
protected |
BOWKMeansTrainer(long addr) |
Modifier and Type | Method and Description |
---|---|
static BOWKMeansTrainer |
__fromPtr__(long addr) |
Mat |
cluster() |
Mat |
cluster(Mat descriptors)
Clusters train descriptors.
|
protected void |
finalize() |
add, clear, descriptorsCount, getDescriptors, getNativeObjAddr
protected BOWKMeansTrainer(long addr)
public BOWKMeansTrainer(int clusterCount, TermCriteria termcrit, int attempts, int flags)
clusterCount
- automatically generatedtermcrit
- automatically generatedattempts
- automatically generatedflags
- automatically generatedpublic BOWKMeansTrainer(int clusterCount, TermCriteria termcrit, int attempts)
clusterCount
- automatically generatedtermcrit
- automatically generatedattempts
- automatically generatedpublic BOWKMeansTrainer(int clusterCount, TermCriteria termcrit)
clusterCount
- automatically generatedtermcrit
- automatically generatedpublic BOWKMeansTrainer(int clusterCount)
clusterCount
- automatically generatedpublic static BOWKMeansTrainer __fromPtr__(long addr)
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.public Mat cluster()
cluster
in class BOWTrainer
protected void finalize() throws Throwable
finalize
in class BOWTrainer
Throwable
Copyright © 2020. All rights reserved.