@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_features2d.class) public class FlannBasedMatcher extends 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. :
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounterBRUTEFORCE, BRUTEFORCE_HAMMING, BRUTEFORCE_HAMMINGLUT, BRUTEFORCE_L1, BRUTEFORCE_SL2, FLANNBASED| Constructor and Description |
|---|
FlannBasedMatcher() |
FlannBasedMatcher(IndexParams indexParams,
SearchParams searchParams) |
FlannBasedMatcher(long size)
Native array allocator.
|
FlannBasedMatcher(Pointer p)
Pointer cast constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(GpuMatVector descriptors) |
void |
add(MatVector descriptors)
\brief Adds descriptors to train a CPU(trainDescCollectionis) or GPU(utrainDescCollectionis) descriptor
collection.
|
void |
add(UMatVector descriptors) |
void |
clear()
\brief Clears the train descriptor collections.
|
DescriptorMatcher |
clone() |
DescriptorMatcher |
clone(boolean emptyTrainData)
\brief Clones the matcher.
|
static FlannBasedMatcher |
create() |
boolean |
isMaskSupported()
\brief Returns true if the descriptor matcher supports masking permissible matches.
|
FlannBasedMatcher |
position(long position) |
void |
read(FileNode arg0)
\brief Reads algorithm parameters from a file storage
|
void |
train()
\brief Trains a descriptor matcher
|
void |
write(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, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic FlannBasedMatcher(Pointer p)
Pointer.Pointer(Pointer).public FlannBasedMatcher(long size)
Pointer.position(long).public FlannBasedMatcher(@opencv_core.Ptr IndexParams indexParams, @opencv_core.Ptr SearchParams searchParams)
public FlannBasedMatcher()
public FlannBasedMatcher position(long position)
public void add(@ByVal MatVector descriptors)
DescriptorMatcherIf the collection is not empty, the new descriptors are added to existing train descriptors.
add in class DescriptorMatcherdescriptors - Descriptors to add. Each descriptors[i] is a set of descriptors from the same
train image.public void add(@ByVal UMatVector descriptors)
add in class DescriptorMatcherpublic void add(@ByVal GpuMatVector descriptors)
add in class DescriptorMatcherpublic void clear()
DescriptorMatcherclear in class DescriptorMatcherpublic void read(@Const @ByRef FileNode arg0)
Algorithmread in class DescriptorMatcherpublic void write(@ByRef FileStorage arg0)
Algorithmwrite in class DescriptorMatcherpublic void train()
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 DescriptorMatcher@Cast(value="bool") public boolean isMaskSupported()
DescriptorMatcherisMaskSupported in class DescriptorMatcher@opencv_core.Ptr public static FlannBasedMatcher create()
@opencv_core.Ptr public DescriptorMatcher clone(@Cast(value="bool") boolean emptyTrainData)
DescriptorMatcherclone in class 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 DescriptorMatcher clone()
clone in class DescriptorMatcherCopyright © 2020. All rights reserved.