@Namespace(value="cv") @NoOffset public static class opencv_features2d.FlannBasedMatcher extends opencv_features2d.DescriptorMatcher
This matcher trains cv::flann::Index on a train descriptor collection and calls its nearest search methods to find the best matches. So, this matcher may be faster when matching a large train collection than the brute force matcher. FlannBasedMatcher does not support masking permissible matches of descriptor sets because flann::Index does not support this. :
BRUTEFORCE, BRUTEFORCE_HAMMING, BRUTEFORCE_HAMMINGLUT, BRUTEFORCE_L1, BRUTEFORCE_SL2, FLANNBASED| Constructor and Description |
|---|
FlannBasedMatcher() |
FlannBasedMatcher(long size)
Native array allocator.
|
FlannBasedMatcher(opencv_flann.IndexParams indexParams,
opencv_flann.SearchParams searchParams) |
FlannBasedMatcher(org.bytedeco.javacpp.Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(opencv_core.GpuMatVector descriptors) |
void |
add(opencv_core.MatVector descriptors)
\brief Adds descriptors to train a CPU(trainDescCollectionis) or GPU(utrainDescCollectionis) descriptor
collection.
|
void |
add(opencv_core.UMatVector descriptors) |
void |
clear()
\brief Clears the train descriptor collections.
|
opencv_features2d.DescriptorMatcher |
clone() |
opencv_features2d.DescriptorMatcher |
clone(boolean emptyTrainData)
\brief Clones the matcher.
|
static opencv_features2d.FlannBasedMatcher |
create() |
boolean |
isMaskSupported()
\brief Returns true if the descriptor matcher supports masking permissible matches.
|
opencv_features2d.FlannBasedMatcher |
position(long position) |
void |
read(opencv_core.FileNode arg0)
\brief Reads algorithm parameters from a file storage
|
void |
train()
\brief Trains a descriptor matcher
|
void |
write(opencv_core.FileStorage arg0)
\brief Stores algorithm parameters in a file storage
|
create, create, create, empty, getTrainDescriptors, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, knnMatch, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, match, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, radiusMatch, read, read, write, write, write, writegetDefaultName, save, saveaddress, 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, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic FlannBasedMatcher(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public FlannBasedMatcher(long size)
Pointer.position(long).public FlannBasedMatcher(@opencv_core.Ptr opencv_flann.IndexParams indexParams, @opencv_core.Ptr opencv_flann.SearchParams searchParams)
public FlannBasedMatcher()
public opencv_features2d.FlannBasedMatcher position(long position)
position in class opencv_core.Algorithmpublic void add(@ByVal
opencv_core.MatVector descriptors)
opencv_features2d.DescriptorMatcherIf the collection is not empty, the new descriptors are added to existing train descriptors.
add in class opencv_features2d.DescriptorMatcherdescriptors - Descriptors to add. Each descriptors[i] is a set of descriptors from the same
train image.public void add(@ByVal
opencv_core.UMatVector descriptors)
add in class opencv_features2d.DescriptorMatcherpublic void add(@ByVal
opencv_core.GpuMatVector descriptors)
add in class opencv_features2d.DescriptorMatcherpublic void clear()
opencv_features2d.DescriptorMatcherclear in class opencv_features2d.DescriptorMatcherpublic void read(@Const @ByRef
opencv_core.FileNode arg0)
opencv_core.Algorithmread in class opencv_features2d.DescriptorMatcherpublic void write(@ByRef
opencv_core.FileStorage arg0)
opencv_core.Algorithmwrite in class opencv_features2d.DescriptorMatcherpublic void train()
opencv_features2d.DescriptorMatcherTrains a descriptor matcher (for example, the flann index). In all methods to match, the method train() is run every time before matching. Some descriptor matchers (for example, BruteForceMatcher) have an empty implementation of this method. Other matchers really train their inner structures (for example, FlannBasedMatcher trains flann::Index ).
train in class opencv_features2d.DescriptorMatcher@Cast(value="bool") public boolean isMaskSupported()
opencv_features2d.DescriptorMatcherisMaskSupported in class opencv_features2d.DescriptorMatcher@opencv_core.Ptr public static opencv_features2d.FlannBasedMatcher create()
@opencv_core.Ptr public opencv_features2d.DescriptorMatcher clone(@Cast(value="bool") boolean emptyTrainData)
opencv_features2d.DescriptorMatcherclone in class opencv_features2d.DescriptorMatcheremptyTrainData - If emptyTrainData is false, the method creates a deep copy of the object,
that is, copies both parameters and train data. If emptyTrainData is true, the method creates an
object copy with the current parameters but with empty train data.@opencv_core.Ptr public opencv_features2d.DescriptorMatcher clone()
clone in class opencv_features2d.DescriptorMatcherCopyright © 2018. All rights reserved.