@Namespace(value="cv") @NoOffset public static class opencv_features2d.BOWKMeansTrainer extends opencv_features2d.BOWTrainer
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
opencv_features2d.BOWKMeansTrainer(int clusterCount) |
opencv_features2d.BOWKMeansTrainer(int clusterCount,
opencv_core.TermCriteria termcrit,
int attempts,
int flags)
\brief The constructor.
|
opencv_features2d.BOWKMeansTrainer(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, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, hashCode, isNull, limit, limit, maxBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, position, position, put, setNull, sizeof, toString, totalBytes, withDeallocator, zeropublic opencv_features2d.BOWKMeansTrainer(Pointer p)
Pointer.Pointer(Pointer).public opencv_features2d.BOWKMeansTrainer(int clusterCount,
@Const@ByRef(nullValue="cv::TermCriteria()")
opencv_core.TermCriteria termcrit,
int attempts,
int flags)
cv::kmeanspublic opencv_features2d.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 © 2016. All rights reserved.