@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_features2d.class) public class DescriptorMatcher extends Algorithm
/** \brief Abstract base class for matching keypoint descriptors.
It has two groups of match methods: for matching descriptors of an image with another image or with an image set.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Modifier and Type | Field and Description |
---|---|
static int |
BRUTEFORCE
enum cv::DescriptorMatcher::MatcherType
|
static int |
BRUTEFORCE_HAMMING
enum cv::DescriptorMatcher::MatcherType
|
static int |
BRUTEFORCE_HAMMINGLUT
enum cv::DescriptorMatcher::MatcherType
|
static int |
BRUTEFORCE_L1
enum cv::DescriptorMatcher::MatcherType
|
static int |
BRUTEFORCE_SL2
enum cv::DescriptorMatcher::MatcherType
|
static int |
FLANNBASED
enum cv::DescriptorMatcher::MatcherType
|
Constructor and Description |
---|
DescriptorMatcher(Algorithm pointer)
Downcast constructor.
|
DescriptorMatcher(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) |
Algorithm |
asAlgorithm() |
static Algorithm |
asAlgorithm(DescriptorMatcher pointer) |
void |
clear()
\brief Clears the train descriptor collections.
|
DescriptorMatcher |
clone() |
DescriptorMatcher |
clone(boolean emptyTrainData)
\brief Clones the matcher.
|
static DescriptorMatcher |
create(BytePointer descriptorMatcherType)
\brief Creates a descriptor matcher of a given type with the default parameters (using default
constructor).
|
static DescriptorMatcher |
create(int matcherType) |
static DescriptorMatcher |
create(String descriptorMatcherType) |
boolean |
empty()
\brief Returns true if there are no train descriptors in the both collections.
|
MatVector |
getTrainDescriptors()
\brief Returns a constant link to the train descriptor collection trainDescCollection .
|
boolean |
isMaskSupported()
\brief Returns true if the descriptor matcher supports masking permissible matches.
|
void |
knnMatch(GpuMat queryDescriptors,
DMatchVectorVector matches,
int k) |
void |
knnMatch(GpuMat queryDescriptors,
DMatchVectorVector matches,
int k,
GpuMatVector masks,
boolean compactResult) |
void |
knnMatch(GpuMat queryDescriptors,
DMatchVectorVector matches,
int k,
MatVector masks,
boolean compactResult) |
void |
knnMatch(GpuMat queryDescriptors,
DMatchVectorVector matches,
int k,
UMatVector masks,
boolean compactResult) |
void |
knnMatch(GpuMat queryDescriptors,
GpuMat trainDescriptors,
DMatchVectorVector matches,
int k) |
void |
knnMatch(GpuMat queryDescriptors,
GpuMat trainDescriptors,
DMatchVectorVector matches,
int k,
GpuMat mask,
boolean compactResult) |
void |
knnMatch(Mat queryDescriptors,
DMatchVectorVector matches,
int k) |
void |
knnMatch(Mat queryDescriptors,
DMatchVectorVector matches,
int k,
GpuMatVector masks,
boolean compactResult) |
void |
knnMatch(Mat queryDescriptors,
DMatchVectorVector matches,
int k,
MatVector masks,
boolean compactResult)
\overload
|
void |
knnMatch(Mat queryDescriptors,
DMatchVectorVector matches,
int k,
UMatVector masks,
boolean compactResult) |
void |
knnMatch(Mat queryDescriptors,
Mat trainDescriptors,
DMatchVectorVector matches,
int k) |
void |
knnMatch(Mat queryDescriptors,
Mat trainDescriptors,
DMatchVectorVector matches,
int k,
Mat mask,
boolean compactResult)
\brief Finds the k best matches for each descriptor from a query set.
|
void |
knnMatch(UMat queryDescriptors,
DMatchVectorVector matches,
int k) |
void |
knnMatch(UMat queryDescriptors,
DMatchVectorVector matches,
int k,
GpuMatVector masks,
boolean compactResult) |
void |
knnMatch(UMat queryDescriptors,
DMatchVectorVector matches,
int k,
MatVector masks,
boolean compactResult) |
void |
knnMatch(UMat queryDescriptors,
DMatchVectorVector matches,
int k,
UMatVector masks,
boolean compactResult) |
void |
knnMatch(UMat queryDescriptors,
UMat trainDescriptors,
DMatchVectorVector matches,
int k) |
void |
knnMatch(UMat queryDescriptors,
UMat trainDescriptors,
DMatchVectorVector matches,
int k,
UMat mask,
boolean compactResult) |
void |
match(GpuMat queryDescriptors,
DMatchVector matches) |
void |
match(GpuMat queryDescriptors,
DMatchVector matches,
GpuMatVector masks) |
void |
match(GpuMat queryDescriptors,
DMatchVector matches,
MatVector masks) |
void |
match(GpuMat queryDescriptors,
DMatchVector matches,
UMatVector masks) |
void |
match(GpuMat queryDescriptors,
GpuMat trainDescriptors,
DMatchVector matches) |
void |
match(GpuMat queryDescriptors,
GpuMat trainDescriptors,
DMatchVector matches,
GpuMat mask) |
void |
match(Mat queryDescriptors,
DMatchVector matches) |
void |
match(Mat queryDescriptors,
DMatchVector matches,
GpuMatVector masks) |
void |
match(Mat queryDescriptors,
DMatchVector matches,
MatVector masks)
\overload
|
void |
match(Mat queryDescriptors,
DMatchVector matches,
UMatVector masks) |
void |
match(Mat queryDescriptors,
Mat trainDescriptors,
DMatchVector matches) |
void |
match(Mat queryDescriptors,
Mat trainDescriptors,
DMatchVector matches,
Mat mask)
\brief Finds the best match for each descriptor from a query set.
|
void |
match(UMat queryDescriptors,
DMatchVector matches) |
void |
match(UMat queryDescriptors,
DMatchVector matches,
GpuMatVector masks) |
void |
match(UMat queryDescriptors,
DMatchVector matches,
MatVector masks) |
void |
match(UMat queryDescriptors,
DMatchVector matches,
UMatVector masks) |
void |
match(UMat queryDescriptors,
UMat trainDescriptors,
DMatchVector matches) |
void |
match(UMat queryDescriptors,
UMat trainDescriptors,
DMatchVector matches,
UMat mask) |
void |
radiusMatch(GpuMat queryDescriptors,
DMatchVectorVector matches,
float maxDistance) |
void |
radiusMatch(GpuMat queryDescriptors,
DMatchVectorVector matches,
float maxDistance,
GpuMatVector masks,
boolean compactResult) |
void |
radiusMatch(GpuMat queryDescriptors,
DMatchVectorVector matches,
float maxDistance,
MatVector masks,
boolean compactResult) |
void |
radiusMatch(GpuMat queryDescriptors,
DMatchVectorVector matches,
float maxDistance,
UMatVector masks,
boolean compactResult) |
void |
radiusMatch(GpuMat queryDescriptors,
GpuMat trainDescriptors,
DMatchVectorVector matches,
float maxDistance) |
void |
radiusMatch(GpuMat queryDescriptors,
GpuMat trainDescriptors,
DMatchVectorVector matches,
float maxDistance,
GpuMat mask,
boolean compactResult) |
void |
radiusMatch(Mat queryDescriptors,
DMatchVectorVector matches,
float maxDistance) |
void |
radiusMatch(Mat queryDescriptors,
DMatchVectorVector matches,
float maxDistance,
GpuMatVector masks,
boolean compactResult) |
void |
radiusMatch(Mat queryDescriptors,
DMatchVectorVector matches,
float maxDistance,
MatVector masks,
boolean compactResult)
\overload
|
void |
radiusMatch(Mat queryDescriptors,
DMatchVectorVector matches,
float maxDistance,
UMatVector masks,
boolean compactResult) |
void |
radiusMatch(Mat queryDescriptors,
Mat trainDescriptors,
DMatchVectorVector matches,
float maxDistance) |
void |
radiusMatch(Mat queryDescriptors,
Mat trainDescriptors,
DMatchVectorVector matches,
float maxDistance,
Mat mask,
boolean compactResult)
\brief For each query descriptor, finds the training descriptors not farther than the specified distance.
|
void |
radiusMatch(UMat queryDescriptors,
DMatchVectorVector matches,
float maxDistance) |
void |
radiusMatch(UMat queryDescriptors,
DMatchVectorVector matches,
float maxDistance,
GpuMatVector masks,
boolean compactResult) |
void |
radiusMatch(UMat queryDescriptors,
DMatchVectorVector matches,
float maxDistance,
MatVector masks,
boolean compactResult) |
void |
radiusMatch(UMat queryDescriptors,
DMatchVectorVector matches,
float maxDistance,
UMatVector masks,
boolean compactResult) |
void |
radiusMatch(UMat queryDescriptors,
UMat trainDescriptors,
DMatchVectorVector matches,
float maxDistance) |
void |
radiusMatch(UMat queryDescriptors,
UMat trainDescriptors,
DMatchVectorVector matches,
float maxDistance,
UMat mask,
boolean compactResult) |
void |
read(BytePointer fileName) |
void |
read(FileNode arg0)
\brief Reads algorithm parameters from a file storage
|
void |
read(String fileName) |
void |
train()
\brief Trains a descriptor matcher
|
void |
write(BytePointer fileName) |
void |
write(FileStorage arg0)
\brief Stores algorithm parameters in a file storage
|
void |
write(FileStorage fs,
BytePointer name)
\overload
|
void |
write(FileStorage fs,
String name) |
void |
write(String fileName) |
getDefaultName, getPointer, position, save, save
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public static final int FLANNBASED
public static final int BRUTEFORCE
public static final int BRUTEFORCE_L1
public static final int BRUTEFORCE_HAMMING
public static final int BRUTEFORCE_HAMMINGLUT
public static final int BRUTEFORCE_SL2
public DescriptorMatcher(Pointer p)
Pointer(Pointer)
.public DescriptorMatcher(Algorithm pointer)
public Algorithm asAlgorithm()
asAlgorithm
in class Algorithm
@Namespace @Name(value="static_cast<cv::Algorithm*>") public static Algorithm asAlgorithm(DescriptorMatcher pointer)
public void add(@ByVal MatVector descriptors)
If the collection is not empty, the new descriptors are added to existing train descriptors.
descriptors
- Descriptors to add. Each descriptors[i] is a set of descriptors from the same
train image.public void add(@ByVal UMatVector descriptors)
public void add(@ByVal GpuMatVector descriptors)
@Const @ByRef public MatVector getTrainDescriptors()
public void clear()
@Cast(value="bool") public boolean empty()
@Cast(value="bool") public boolean isMaskSupported()
public void train()
Trains 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 ).
public void match(@ByVal Mat queryDescriptors, @ByVal Mat trainDescriptors, @ByRef DMatchVector matches, @ByVal(nullValue="cv::InputArray(cv::noArray())") Mat mask)
queryDescriptors
- Query set of descriptors.trainDescriptors
- Train set of descriptors. This set is not added to the train descriptors
collection stored in the class object.matches
- Matches. If a query descriptor is masked out in mask , no match is added for this
descriptor. So, matches size may be smaller than the query descriptors count.mask
- Mask specifying permissible matches between an input query and train matrices of
descriptors.
In the first variant of this method, the train descriptors are passed as an input argument. In the
second variant of the method, train descriptors collection that was set by DescriptorMatcher::add is
used. Optional mask (or masks) can be passed to specify which query and training descriptors can be
matched. Namely, queryDescriptors[i] can be matched with trainDescriptors[j] only if
mask.at\
public void match(@ByVal Mat queryDescriptors, @ByVal Mat trainDescriptors, @ByRef DMatchVector matches)
public void match(@ByVal UMat queryDescriptors, @ByVal UMat trainDescriptors, @ByRef DMatchVector matches, @ByVal(nullValue="cv::InputArray(cv::noArray())") UMat mask)
public void match(@ByVal UMat queryDescriptors, @ByVal UMat trainDescriptors, @ByRef DMatchVector matches)
public void match(@ByVal GpuMat queryDescriptors, @ByVal GpuMat trainDescriptors, @ByRef DMatchVector matches, @ByVal(nullValue="cv::InputArray(cv::noArray())") GpuMat mask)
public void match(@ByVal GpuMat queryDescriptors, @ByVal GpuMat trainDescriptors, @ByRef DMatchVector matches)
public void knnMatch(@ByVal Mat queryDescriptors, @ByVal Mat trainDescriptors, @ByRef DMatchVectorVector matches, int k, @ByVal(nullValue="cv::InputArray(cv::noArray())") Mat mask, @Cast(value="bool") boolean compactResult)
queryDescriptors
- Query set of descriptors.trainDescriptors
- Train set of descriptors. This set is not added to the train descriptors
collection stored in the class object.mask
- Mask specifying permissible matches between an input query and train matrices of
descriptors.matches
- Matches. Each matches[i] is k or less matches for the same query descriptor.k
- Count of best matches found per each query descriptor or less if a query descriptor has
less than k possible matches in total.compactResult
- Parameter used when the mask (or masks) is not empty. If compactResult is
false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
the matches vector does not contain matches for fully masked-out query descriptors.
These extended variants of DescriptorMatcher::match methods find several best matches for each query descriptor. The matches are returned in the distance increasing order. See DescriptorMatcher::match for the details about query and train descriptors.
public void knnMatch(@ByVal Mat queryDescriptors, @ByVal Mat trainDescriptors, @ByRef DMatchVectorVector matches, int k)
public void knnMatch(@ByVal UMat queryDescriptors, @ByVal UMat trainDescriptors, @ByRef DMatchVectorVector matches, int k, @ByVal(nullValue="cv::InputArray(cv::noArray())") UMat mask, @Cast(value="bool") boolean compactResult)
public void knnMatch(@ByVal UMat queryDescriptors, @ByVal UMat trainDescriptors, @ByRef DMatchVectorVector matches, int k)
public void knnMatch(@ByVal GpuMat queryDescriptors, @ByVal GpuMat trainDescriptors, @ByRef DMatchVectorVector matches, int k, @ByVal(nullValue="cv::InputArray(cv::noArray())") GpuMat mask, @Cast(value="bool") boolean compactResult)
public void knnMatch(@ByVal GpuMat queryDescriptors, @ByVal GpuMat trainDescriptors, @ByRef DMatchVectorVector matches, int k)
public void radiusMatch(@ByVal Mat queryDescriptors, @ByVal Mat trainDescriptors, @ByRef DMatchVectorVector matches, float maxDistance, @ByVal(nullValue="cv::InputArray(cv::noArray())") Mat mask, @Cast(value="bool") boolean compactResult)
queryDescriptors
- Query set of descriptors.trainDescriptors
- Train set of descriptors. This set is not added to the train descriptors
collection stored in the class object.matches
- Found matches.compactResult
- Parameter used when the mask (or masks) is not empty. If compactResult is
false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
the matches vector does not contain matches for fully masked-out query descriptors.maxDistance
- Threshold for the distance between matched descriptors. Distance means here
metric distance (e.g. Hamming distance), not the distance between coordinates (which is measured
in Pixels)!mask
- Mask specifying permissible matches between an input query and train matrices of
descriptors.
For each query descriptor, the methods find such training descriptors that the distance between the query descriptor and the training descriptor is equal or smaller than maxDistance. Found matches are returned in the distance increasing order.
public void radiusMatch(@ByVal Mat queryDescriptors, @ByVal Mat trainDescriptors, @ByRef DMatchVectorVector matches, float maxDistance)
public void radiusMatch(@ByVal UMat queryDescriptors, @ByVal UMat trainDescriptors, @ByRef DMatchVectorVector matches, float maxDistance, @ByVal(nullValue="cv::InputArray(cv::noArray())") UMat mask, @Cast(value="bool") boolean compactResult)
public void radiusMatch(@ByVal UMat queryDescriptors, @ByVal UMat trainDescriptors, @ByRef DMatchVectorVector matches, float maxDistance)
public void radiusMatch(@ByVal GpuMat queryDescriptors, @ByVal GpuMat trainDescriptors, @ByRef DMatchVectorVector matches, float maxDistance, @ByVal(nullValue="cv::InputArray(cv::noArray())") GpuMat mask, @Cast(value="bool") boolean compactResult)
public void radiusMatch(@ByVal GpuMat queryDescriptors, @ByVal GpuMat trainDescriptors, @ByRef DMatchVectorVector matches, float maxDistance)
public void match(@ByVal Mat queryDescriptors, @ByRef DMatchVector matches, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") MatVector masks)
queryDescriptors
- Query set of descriptors.matches
- Matches. If a query descriptor is masked out in mask , no match is added for this
descriptor. So, matches size may be smaller than the query descriptors count.masks
- Set of masks. Each masks[i] specifies permissible matches between the input query
descriptors and stored train descriptors from the i-th image trainDescCollection[i].public void match(@ByVal Mat queryDescriptors, @ByRef DMatchVector matches)
public void match(@ByVal Mat queryDescriptors, @ByRef DMatchVector matches, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") UMatVector masks)
public void match(@ByVal Mat queryDescriptors, @ByRef DMatchVector matches, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") GpuMatVector masks)
public void match(@ByVal UMat queryDescriptors, @ByRef DMatchVector matches, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") MatVector masks)
public void match(@ByVal UMat queryDescriptors, @ByRef DMatchVector matches)
public void match(@ByVal UMat queryDescriptors, @ByRef DMatchVector matches, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") UMatVector masks)
public void match(@ByVal UMat queryDescriptors, @ByRef DMatchVector matches, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") GpuMatVector masks)
public void match(@ByVal GpuMat queryDescriptors, @ByRef DMatchVector matches, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") MatVector masks)
public void match(@ByVal GpuMat queryDescriptors, @ByRef DMatchVector matches)
public void match(@ByVal GpuMat queryDescriptors, @ByRef DMatchVector matches, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") UMatVector masks)
public void match(@ByVal GpuMat queryDescriptors, @ByRef DMatchVector matches, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") GpuMatVector masks)
public void knnMatch(@ByVal Mat queryDescriptors, @ByRef DMatchVectorVector matches, int k, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") MatVector masks, @Cast(value="bool") boolean compactResult)
queryDescriptors
- Query set of descriptors.matches
- Matches. Each matches[i] is k or less matches for the same query descriptor.k
- Count of best matches found per each query descriptor or less if a query descriptor has
less than k possible matches in total.masks
- Set of masks. Each masks[i] specifies permissible matches between the input query
descriptors and stored train descriptors from the i-th image trainDescCollection[i].compactResult
- Parameter used when the mask (or masks) is not empty. If compactResult is
false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
the matches vector does not contain matches for fully masked-out query descriptors.public void knnMatch(@ByVal Mat queryDescriptors, @ByRef DMatchVectorVector matches, int k)
public void knnMatch(@ByVal Mat queryDescriptors, @ByRef DMatchVectorVector matches, int k, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") UMatVector masks, @Cast(value="bool") boolean compactResult)
public void knnMatch(@ByVal Mat queryDescriptors, @ByRef DMatchVectorVector matches, int k, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") GpuMatVector masks, @Cast(value="bool") boolean compactResult)
public void knnMatch(@ByVal UMat queryDescriptors, @ByRef DMatchVectorVector matches, int k, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") MatVector masks, @Cast(value="bool") boolean compactResult)
public void knnMatch(@ByVal UMat queryDescriptors, @ByRef DMatchVectorVector matches, int k)
public void knnMatch(@ByVal UMat queryDescriptors, @ByRef DMatchVectorVector matches, int k, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") UMatVector masks, @Cast(value="bool") boolean compactResult)
public void knnMatch(@ByVal UMat queryDescriptors, @ByRef DMatchVectorVector matches, int k, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") GpuMatVector masks, @Cast(value="bool") boolean compactResult)
public void knnMatch(@ByVal GpuMat queryDescriptors, @ByRef DMatchVectorVector matches, int k, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") MatVector masks, @Cast(value="bool") boolean compactResult)
public void knnMatch(@ByVal GpuMat queryDescriptors, @ByRef DMatchVectorVector matches, int k)
public void knnMatch(@ByVal GpuMat queryDescriptors, @ByRef DMatchVectorVector matches, int k, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") UMatVector masks, @Cast(value="bool") boolean compactResult)
public void knnMatch(@ByVal GpuMat queryDescriptors, @ByRef DMatchVectorVector matches, int k, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") GpuMatVector masks, @Cast(value="bool") boolean compactResult)
public void radiusMatch(@ByVal Mat queryDescriptors, @ByRef DMatchVectorVector matches, float maxDistance, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") MatVector masks, @Cast(value="bool") boolean compactResult)
queryDescriptors
- Query set of descriptors.matches
- Found matches.maxDistance
- Threshold for the distance between matched descriptors. Distance means here
metric distance (e.g. Hamming distance), not the distance between coordinates (which is measured
in Pixels)!masks
- Set of masks. Each masks[i] specifies permissible matches between the input query
descriptors and stored train descriptors from the i-th image trainDescCollection[i].compactResult
- Parameter used when the mask (or masks) is not empty. If compactResult is
false, the matches vector has the same size as queryDescriptors rows. If compactResult is true,
the matches vector does not contain matches for fully masked-out query descriptors.public void radiusMatch(@ByVal Mat queryDescriptors, @ByRef DMatchVectorVector matches, float maxDistance)
public void radiusMatch(@ByVal Mat queryDescriptors, @ByRef DMatchVectorVector matches, float maxDistance, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") UMatVector masks, @Cast(value="bool") boolean compactResult)
public void radiusMatch(@ByVal Mat queryDescriptors, @ByRef DMatchVectorVector matches, float maxDistance, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") GpuMatVector masks, @Cast(value="bool") boolean compactResult)
public void radiusMatch(@ByVal UMat queryDescriptors, @ByRef DMatchVectorVector matches, float maxDistance, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") MatVector masks, @Cast(value="bool") boolean compactResult)
public void radiusMatch(@ByVal UMat queryDescriptors, @ByRef DMatchVectorVector matches, float maxDistance)
public void radiusMatch(@ByVal UMat queryDescriptors, @ByRef DMatchVectorVector matches, float maxDistance, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") UMatVector masks, @Cast(value="bool") boolean compactResult)
public void radiusMatch(@ByVal UMat queryDescriptors, @ByRef DMatchVectorVector matches, float maxDistance, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") GpuMatVector masks, @Cast(value="bool") boolean compactResult)
public void radiusMatch(@ByVal GpuMat queryDescriptors, @ByRef DMatchVectorVector matches, float maxDistance, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") MatVector masks, @Cast(value="bool") boolean compactResult)
public void radiusMatch(@ByVal GpuMat queryDescriptors, @ByRef DMatchVectorVector matches, float maxDistance)
public void radiusMatch(@ByVal GpuMat queryDescriptors, @ByRef DMatchVectorVector matches, float maxDistance, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") UMatVector masks, @Cast(value="bool") boolean compactResult)
public void radiusMatch(@ByVal GpuMat queryDescriptors, @ByRef DMatchVectorVector matches, float maxDistance, @ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())") GpuMatVector masks, @Cast(value="bool") boolean compactResult)
public void write(@opencv_core.Str BytePointer fileName)
public void write(@opencv_core.Str String fileName)
public void read(@opencv_core.Str BytePointer fileName)
public void read(@opencv_core.Str String fileName)
public void read(@Const @ByRef FileNode arg0)
Algorithm
public void write(@ByRef FileStorage arg0)
Algorithm
@opencv_core.Ptr public DescriptorMatcher clone(@Cast(value="bool") boolean emptyTrainData)
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()
@opencv_core.Ptr public static DescriptorMatcher create(@opencv_core.Str BytePointer descriptorMatcherType)
descriptorMatcherType
- Descriptor matcher type. Now the following matcher types are
supported:
- BruteForce
(it uses L2 )
- BruteForce-L1
- BruteForce-Hamming
- BruteForce-Hamming(2)
- FlannBased
@opencv_core.Ptr public static DescriptorMatcher create(@opencv_core.Str String descriptorMatcherType)
@opencv_core.Ptr public static DescriptorMatcher create(@Cast(value="const cv::DescriptorMatcher::MatcherType") int matcherType)
public void write(@ByRef FileStorage fs, @opencv_core.Str BytePointer name)
Algorithm
public void write(@ByRef FileStorage fs, @opencv_core.Str String name)
Copyright © 2024. All rights reserved.