@Namespace(value="cv") @NoOffset public static class opencv_features2d.DescriptorMatcher extends opencv_core.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.
| Modifier and Type | Field and Description |
|---|---|
static int |
BRUTEFORCE
enum cv::DescriptorMatcher::
|
static int |
BRUTEFORCE_HAMMING
enum cv::DescriptorMatcher::
|
static int |
BRUTEFORCE_HAMMINGLUT
enum cv::DescriptorMatcher::
|
static int |
BRUTEFORCE_L1
enum cv::DescriptorMatcher::
|
static int |
BRUTEFORCE_SL2
enum cv::DescriptorMatcher::
|
static int |
FLANNBASED
enum cv::DescriptorMatcher::
|
| Constructor and Description |
|---|
DescriptorMatcher(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.DescriptorMatcher |
create(org.bytedeco.javacpp.BytePointer descriptorMatcherType)
\brief Creates a descriptor matcher of a given type with the default parameters (using default
constructor).
|
static opencv_features2d.DescriptorMatcher |
create(int matcherType) |
static opencv_features2d.DescriptorMatcher |
create(String descriptorMatcherType) |
boolean |
empty()
\brief Returns true if there are no train descriptors in the both collections.
|
opencv_core.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(opencv_core.GpuMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
int k) |
void |
knnMatch(opencv_core.GpuMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
int k,
opencv_core.GpuMatVector masks,
boolean compactResult) |
void |
knnMatch(opencv_core.GpuMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
int k,
opencv_core.MatVector masks,
boolean compactResult) |
void |
knnMatch(opencv_core.GpuMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
int k,
opencv_core.UMatVector masks,
boolean compactResult) |
void |
knnMatch(opencv_core.GpuMat queryDescriptors,
opencv_core.GpuMat trainDescriptors,
opencv_core.DMatchVectorVector matches,
int k) |
void |
knnMatch(opencv_core.GpuMat queryDescriptors,
opencv_core.GpuMat trainDescriptors,
opencv_core.DMatchVectorVector matches,
int k,
opencv_core.GpuMat mask,
boolean compactResult) |
void |
knnMatch(opencv_core.Mat queryDescriptors,
opencv_core.DMatchVectorVector matches,
int k) |
void |
knnMatch(opencv_core.Mat queryDescriptors,
opencv_core.DMatchVectorVector matches,
int k,
opencv_core.GpuMatVector masks,
boolean compactResult) |
void |
knnMatch(opencv_core.Mat queryDescriptors,
opencv_core.DMatchVectorVector matches,
int k,
opencv_core.MatVector masks,
boolean compactResult)
\overload
|
void |
knnMatch(opencv_core.Mat queryDescriptors,
opencv_core.DMatchVectorVector matches,
int k,
opencv_core.UMatVector masks,
boolean compactResult) |
void |
knnMatch(opencv_core.Mat queryDescriptors,
opencv_core.Mat trainDescriptors,
opencv_core.DMatchVectorVector matches,
int k) |
void |
knnMatch(opencv_core.Mat queryDescriptors,
opencv_core.Mat trainDescriptors,
opencv_core.DMatchVectorVector matches,
int k,
opencv_core.Mat mask,
boolean compactResult)
\brief Finds the k best matches for each descriptor from a query set.
|
void |
knnMatch(opencv_core.UMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
int k) |
void |
knnMatch(opencv_core.UMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
int k,
opencv_core.GpuMatVector masks,
boolean compactResult) |
void |
knnMatch(opencv_core.UMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
int k,
opencv_core.MatVector masks,
boolean compactResult) |
void |
knnMatch(opencv_core.UMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
int k,
opencv_core.UMatVector masks,
boolean compactResult) |
void |
knnMatch(opencv_core.UMat queryDescriptors,
opencv_core.UMat trainDescriptors,
opencv_core.DMatchVectorVector matches,
int k) |
void |
knnMatch(opencv_core.UMat queryDescriptors,
opencv_core.UMat trainDescriptors,
opencv_core.DMatchVectorVector matches,
int k,
opencv_core.UMat mask,
boolean compactResult) |
void |
match(opencv_core.GpuMat queryDescriptors,
opencv_core.DMatchVector matches) |
void |
match(opencv_core.GpuMat queryDescriptors,
opencv_core.DMatchVector matches,
opencv_core.GpuMatVector masks) |
void |
match(opencv_core.GpuMat queryDescriptors,
opencv_core.DMatchVector matches,
opencv_core.MatVector masks) |
void |
match(opencv_core.GpuMat queryDescriptors,
opencv_core.DMatchVector matches,
opencv_core.UMatVector masks) |
void |
match(opencv_core.GpuMat queryDescriptors,
opencv_core.GpuMat trainDescriptors,
opencv_core.DMatchVector matches) |
void |
match(opencv_core.GpuMat queryDescriptors,
opencv_core.GpuMat trainDescriptors,
opencv_core.DMatchVector matches,
opencv_core.GpuMat mask) |
void |
match(opencv_core.Mat queryDescriptors,
opencv_core.DMatchVector matches) |
void |
match(opencv_core.Mat queryDescriptors,
opencv_core.DMatchVector matches,
opencv_core.GpuMatVector masks) |
void |
match(opencv_core.Mat queryDescriptors,
opencv_core.DMatchVector matches,
opencv_core.MatVector masks)
\overload
|
void |
match(opencv_core.Mat queryDescriptors,
opencv_core.DMatchVector matches,
opencv_core.UMatVector masks) |
void |
match(opencv_core.Mat queryDescriptors,
opencv_core.Mat trainDescriptors,
opencv_core.DMatchVector matches) |
void |
match(opencv_core.Mat queryDescriptors,
opencv_core.Mat trainDescriptors,
opencv_core.DMatchVector matches,
opencv_core.Mat mask)
\brief Finds the best match for each descriptor from a query set.
|
void |
match(opencv_core.UMat queryDescriptors,
opencv_core.DMatchVector matches) |
void |
match(opencv_core.UMat queryDescriptors,
opencv_core.DMatchVector matches,
opencv_core.GpuMatVector masks) |
void |
match(opencv_core.UMat queryDescriptors,
opencv_core.DMatchVector matches,
opencv_core.MatVector masks) |
void |
match(opencv_core.UMat queryDescriptors,
opencv_core.DMatchVector matches,
opencv_core.UMatVector masks) |
void |
match(opencv_core.UMat queryDescriptors,
opencv_core.UMat trainDescriptors,
opencv_core.DMatchVector matches) |
void |
match(opencv_core.UMat queryDescriptors,
opencv_core.UMat trainDescriptors,
opencv_core.DMatchVector matches,
opencv_core.UMat mask) |
void |
radiusMatch(opencv_core.GpuMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance) |
void |
radiusMatch(opencv_core.GpuMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance,
opencv_core.GpuMatVector masks,
boolean compactResult) |
void |
radiusMatch(opencv_core.GpuMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance,
opencv_core.MatVector masks,
boolean compactResult) |
void |
radiusMatch(opencv_core.GpuMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance,
opencv_core.UMatVector masks,
boolean compactResult) |
void |
radiusMatch(opencv_core.GpuMat queryDescriptors,
opencv_core.GpuMat trainDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance) |
void |
radiusMatch(opencv_core.GpuMat queryDescriptors,
opencv_core.GpuMat trainDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance,
opencv_core.GpuMat mask,
boolean compactResult) |
void |
radiusMatch(opencv_core.Mat queryDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance) |
void |
radiusMatch(opencv_core.Mat queryDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance,
opencv_core.GpuMatVector masks,
boolean compactResult) |
void |
radiusMatch(opencv_core.Mat queryDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance,
opencv_core.MatVector masks,
boolean compactResult)
\overload
|
void |
radiusMatch(opencv_core.Mat queryDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance,
opencv_core.UMatVector masks,
boolean compactResult) |
void |
radiusMatch(opencv_core.Mat queryDescriptors,
opencv_core.Mat trainDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance) |
void |
radiusMatch(opencv_core.Mat queryDescriptors,
opencv_core.Mat trainDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance,
opencv_core.Mat mask,
boolean compactResult)
\brief For each query descriptor, finds the training descriptors not farther than the specified distance.
|
void |
radiusMatch(opencv_core.UMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance) |
void |
radiusMatch(opencv_core.UMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance,
opencv_core.GpuMatVector masks,
boolean compactResult) |
void |
radiusMatch(opencv_core.UMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance,
opencv_core.MatVector masks,
boolean compactResult) |
void |
radiusMatch(opencv_core.UMat queryDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance,
opencv_core.UMatVector masks,
boolean compactResult) |
void |
radiusMatch(opencv_core.UMat queryDescriptors,
opencv_core.UMat trainDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance) |
void |
radiusMatch(opencv_core.UMat queryDescriptors,
opencv_core.UMat trainDescriptors,
opencv_core.DMatchVectorVector matches,
float maxDistance,
opencv_core.UMat mask,
boolean compactResult) |
void |
read(org.bytedeco.javacpp.BytePointer fileName) |
void |
read(opencv_core.FileNode arg0)
\brief Reads algorithm parameters from a file storage
|
void |
read(String fileName) |
void |
train()
\brief Trains a descriptor matcher
|
void |
write(org.bytedeco.javacpp.BytePointer fileName) |
void |
write(opencv_core.FileStorage arg0)
\brief Stores algorithm parameters in a file storage
|
void |
write(opencv_core.FileStorage fs,
org.bytedeco.javacpp.BytePointer name)
\brief simplified API for language bindings
\overload
|
void |
write(opencv_core.FileStorage fs,
String name) |
void |
write(String fileName) |
getDefaultName, position, 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 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(org.bytedeco.javacpp.Pointer p)
Pointer.Pointer(Pointer).public void add(@ByVal
opencv_core.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
opencv_core.UMatVector descriptors)
public void add(@ByVal
opencv_core.GpuMatVector descriptors)
@Const @ByRef public opencv_core.MatVector getTrainDescriptors()
public void clear()
clear in class opencv_core.Algorithm@Cast(value="bool") public boolean empty()
empty in class opencv_core.Algorithm@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
opencv_core.Mat queryDescriptors,
@ByVal
opencv_core.Mat trainDescriptors,
@ByRef
opencv_core.DMatchVector matches,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
opencv_core.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
opencv_core.Mat queryDescriptors,
@ByVal
opencv_core.Mat trainDescriptors,
@ByRef
opencv_core.DMatchVector matches)
public void match(@ByVal
opencv_core.UMat queryDescriptors,
@ByVal
opencv_core.UMat trainDescriptors,
@ByRef
opencv_core.DMatchVector matches,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
opencv_core.UMat mask)
public void match(@ByVal
opencv_core.UMat queryDescriptors,
@ByVal
opencv_core.UMat trainDescriptors,
@ByRef
opencv_core.DMatchVector matches)
public void match(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByVal
opencv_core.GpuMat trainDescriptors,
@ByRef
opencv_core.DMatchVector matches,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
opencv_core.GpuMat mask)
public void match(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByVal
opencv_core.GpuMat trainDescriptors,
@ByRef
opencv_core.DMatchVector matches)
public void knnMatch(@ByVal
opencv_core.Mat queryDescriptors,
@ByVal
opencv_core.Mat trainDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
opencv_core.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
opencv_core.Mat queryDescriptors,
@ByVal
opencv_core.Mat trainDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k)
public void knnMatch(@ByVal
opencv_core.UMat queryDescriptors,
@ByVal
opencv_core.UMat trainDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
opencv_core.UMat mask,
@Cast(value="bool")
boolean compactResult)
public void knnMatch(@ByVal
opencv_core.UMat queryDescriptors,
@ByVal
opencv_core.UMat trainDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k)
public void knnMatch(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByVal
opencv_core.GpuMat trainDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
opencv_core.GpuMat mask,
@Cast(value="bool")
boolean compactResult)
public void knnMatch(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByVal
opencv_core.GpuMat trainDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k)
public void radiusMatch(@ByVal
opencv_core.Mat queryDescriptors,
@ByVal
opencv_core.Mat trainDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
opencv_core.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
opencv_core.Mat queryDescriptors,
@ByVal
opencv_core.Mat trainDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance)
public void radiusMatch(@ByVal
opencv_core.UMat queryDescriptors,
@ByVal
opencv_core.UMat trainDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
opencv_core.UMat mask,
@Cast(value="bool")
boolean compactResult)
public void radiusMatch(@ByVal
opencv_core.UMat queryDescriptors,
@ByVal
opencv_core.UMat trainDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance)
public void radiusMatch(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByVal
opencv_core.GpuMat trainDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance,
@ByVal(nullValue="cv::InputArray(cv::noArray())")
opencv_core.GpuMat mask,
@Cast(value="bool")
boolean compactResult)
public void radiusMatch(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByVal
opencv_core.GpuMat trainDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance)
public void match(@ByVal
opencv_core.Mat queryDescriptors,
@ByRef
opencv_core.DMatchVector matches,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.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
opencv_core.Mat queryDescriptors,
@ByRef
opencv_core.DMatchVector matches)
public void match(@ByVal
opencv_core.Mat queryDescriptors,
@ByRef
opencv_core.DMatchVector matches,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.UMatVector masks)
public void match(@ByVal
opencv_core.Mat queryDescriptors,
@ByRef
opencv_core.DMatchVector matches,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.GpuMatVector masks)
public void match(@ByVal
opencv_core.UMat queryDescriptors,
@ByRef
opencv_core.DMatchVector matches,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.MatVector masks)
public void match(@ByVal
opencv_core.UMat queryDescriptors,
@ByRef
opencv_core.DMatchVector matches)
public void match(@ByVal
opencv_core.UMat queryDescriptors,
@ByRef
opencv_core.DMatchVector matches,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.UMatVector masks)
public void match(@ByVal
opencv_core.UMat queryDescriptors,
@ByRef
opencv_core.DMatchVector matches,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.GpuMatVector masks)
public void match(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByRef
opencv_core.DMatchVector matches,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.MatVector masks)
public void match(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByRef
opencv_core.DMatchVector matches)
public void match(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByRef
opencv_core.DMatchVector matches,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.UMatVector masks)
public void match(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByRef
opencv_core.DMatchVector matches,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.GpuMatVector masks)
public void knnMatch(@ByVal
opencv_core.Mat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.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
opencv_core.Mat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k)
public void knnMatch(@ByVal
opencv_core.Mat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.UMatVector masks,
@Cast(value="bool")
boolean compactResult)
public void knnMatch(@ByVal
opencv_core.Mat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.GpuMatVector masks,
@Cast(value="bool")
boolean compactResult)
public void knnMatch(@ByVal
opencv_core.UMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.MatVector masks,
@Cast(value="bool")
boolean compactResult)
public void knnMatch(@ByVal
opencv_core.UMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k)
public void knnMatch(@ByVal
opencv_core.UMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.UMatVector masks,
@Cast(value="bool")
boolean compactResult)
public void knnMatch(@ByVal
opencv_core.UMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.GpuMatVector masks,
@Cast(value="bool")
boolean compactResult)
public void knnMatch(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.MatVector masks,
@Cast(value="bool")
boolean compactResult)
public void knnMatch(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k)
public void knnMatch(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.UMatVector masks,
@Cast(value="bool")
boolean compactResult)
public void knnMatch(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
int k,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.GpuMatVector masks,
@Cast(value="bool")
boolean compactResult)
public void radiusMatch(@ByVal
opencv_core.Mat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.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
opencv_core.Mat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance)
public void radiusMatch(@ByVal
opencv_core.Mat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.UMatVector masks,
@Cast(value="bool")
boolean compactResult)
public void radiusMatch(@ByVal
opencv_core.Mat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.GpuMatVector masks,
@Cast(value="bool")
boolean compactResult)
public void radiusMatch(@ByVal
opencv_core.UMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.MatVector masks,
@Cast(value="bool")
boolean compactResult)
public void radiusMatch(@ByVal
opencv_core.UMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance)
public void radiusMatch(@ByVal
opencv_core.UMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.UMatVector masks,
@Cast(value="bool")
boolean compactResult)
public void radiusMatch(@ByVal
opencv_core.UMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.GpuMatVector masks,
@Cast(value="bool")
boolean compactResult)
public void radiusMatch(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.MatVector masks,
@Cast(value="bool")
boolean compactResult)
public void radiusMatch(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance)
public void radiusMatch(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.UMatVector masks,
@Cast(value="bool")
boolean compactResult)
public void radiusMatch(@ByVal
opencv_core.GpuMat queryDescriptors,
@ByRef
opencv_core.DMatchVectorVector matches,
float maxDistance,
@ByVal(nullValue="cv::InputArrayOfArrays(cv::noArray())")
opencv_core.GpuMatVector masks,
@Cast(value="bool")
boolean compactResult)
public void write(@opencv_core.Str org.bytedeco.javacpp.BytePointer fileName)
public void write(@opencv_core.Str String fileName)
public void read(@opencv_core.Str org.bytedeco.javacpp.BytePointer fileName)
public void read(@opencv_core.Str String fileName)
public void read(@Const @ByRef
opencv_core.FileNode arg0)
opencv_core.Algorithmread in class opencv_core.Algorithmpublic void write(@ByRef
opencv_core.FileStorage arg0)
opencv_core.Algorithmwrite in class opencv_core.Algorithm@opencv_core.Ptr public opencv_features2d.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 opencv_features2d.DescriptorMatcher clone()
@opencv_core.Ptr public static opencv_features2d.DescriptorMatcher create(@opencv_core.Str org.bytedeco.javacpp.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 opencv_features2d.DescriptorMatcher create(@opencv_core.Str String descriptorMatcherType)
@opencv_core.Ptr public static opencv_features2d.DescriptorMatcher create(int matcherType)
public void write(@opencv_core.Ptr opencv_core.FileStorage fs, @opencv_core.Str org.bytedeco.javacpp.BytePointer name)
opencv_core.Algorithmwrite in class opencv_core.Algorithmpublic void write(@opencv_core.Ptr opencv_core.FileStorage fs, @opencv_core.Str String name)
write in class opencv_core.AlgorithmCopyright © 2018. All rights reserved.