@Namespace(value="cv") @NoOffset public static class opencv_features2d.BOWKMeansTrainer extends opencv_features2d.BOWTrainer
| Constructor and Description |
|---|
BOWKMeansTrainer(int clusterCount) |
BOWKMeansTrainer(int clusterCount,
opencv_core.TermCriteria termcrit,
int attempts,
int flags)
\brief The constructor.
|
BOWKMeansTrainer(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
opencv_core.Mat |
cluster()
\overload
|
opencv_core.Mat |
cluster(opencv_core.Mat descriptors)
\brief Clusters train descriptors.
|
add, clear, descriptorsCount, getDescriptorsaddress, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic BOWKMeansTrainer(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public BOWKMeansTrainer(int clusterCount,
@Const @ByRef(nullValue="cv::TermCriteria()")
opencv_core.TermCriteria termcrit,
int attempts,
int flags)
cv::kmeanspublic BOWKMeansTrainer(int clusterCount)
@ByVal public opencv_core.Mat cluster()
opencv_features2d.BOWTrainercluster in class opencv_features2d.BOWTrainer@ByVal public opencv_core.Mat cluster(@Const @ByRef opencv_core.Mat descriptors)
opencv_features2d.BOWTrainercluster in class opencv_features2d.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.
Copyright © 2018. All rights reserved.