@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_features2d.class) public class BFMatcher extends DescriptorMatcher
For each descriptor in the first set, this matcher finds the closest descriptor in the second set by trying each one. This descriptor matcher supports masking permissible matches of descriptor sets.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
BRUTEFORCE, BRUTEFORCE_HAMMING, BRUTEFORCE_HAMMINGLUT, BRUTEFORCE_L1, BRUTEFORCE_SL2, FLANNBASED
Constructor and Description |
---|
BFMatcher() |
BFMatcher(int normType,
boolean crossCheck)
\brief Brute-force matcher constructor (obsolete).
|
BFMatcher(long size)
Native array allocator.
|
BFMatcher(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
DescriptorMatcher |
clone() |
DescriptorMatcher |
clone(boolean emptyTrainData)
\brief Clones the matcher.
|
static BFMatcher |
create() |
static BFMatcher |
create(int normType,
boolean crossCheck)
\brief Brute-force matcher create method.
|
boolean |
isMaskSupported()
\brief Returns true if the descriptor matcher supports masking permissible matches.
|
BFMatcher |
position(long position) |
add, add, add, clear, 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, read, train, write, write, write, write, write
getDefaultName, save, save
address, 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, zero
public BFMatcher(Pointer p)
Pointer.Pointer(Pointer)
.public BFMatcher(long size)
Pointer.position(long)
.public BFMatcher(int normType, @Cast(value="bool") boolean crossCheck)
public BFMatcher()
@Cast(value="bool") public boolean isMaskSupported()
DescriptorMatcher
isMaskSupported
in class DescriptorMatcher
@opencv_core.Ptr public static BFMatcher create(int normType, @Cast(value="bool") boolean crossCheck)
normType
- One of NORM_L1, NORM_L2, NORM_HAMMING, NORM_HAMMING2. L1 and L2 norms are
preferable choices for SIFT and SURF descriptors, NORM_HAMMING should be used with ORB, BRISK and
BRIEF, NORM_HAMMING2 should be used with ORB when WTA_K==3 or 4 (see ORB::ORB constructor
description).crossCheck
- If it is false, this is will be default BFMatcher behaviour when it finds the k
nearest neighbors for each query descriptor. If crossCheck==true, then the knnMatch() method with
k=1 will only return pairs (i,j) such that for i-th query descriptor the j-th descriptor in the
matcher's collection is the nearest and vice versa, i.e. the BFMatcher will only return consistent
pairs. Such technique usually produces best results with minimal number of outliers when there are
enough matches. This is alternative to the ratio test, used by D. Lowe in SIFT paper.@opencv_core.Ptr public static BFMatcher create()
@opencv_core.Ptr public DescriptorMatcher clone(@Cast(value="bool") boolean emptyTrainData)
DescriptorMatcher
clone
in class DescriptorMatcher
emptyTrainData
- 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 DescriptorMatcher
Copyright © 2020. All rights reserved.