public class DescriptorMatcher
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
BRUTEFORCE |
static int |
BRUTEFORCE_HAMMING |
static int |
BRUTEFORCE_HAMMINGLUT |
static int |
BRUTEFORCE_L1 |
static int |
BRUTEFORCE_SL2 |
static int |
FLANNBASED |
Modifier and Type | Method and Description |
---|---|
void |
add(java.util.List<Mat> descriptors) |
void |
clear() |
DescriptorMatcher |
clone() |
DescriptorMatcher |
clone(boolean emptyTrainData) |
static DescriptorMatcher |
create(int matcherType) |
boolean |
empty() |
java.util.List<Mat> |
getTrainDescriptors() |
boolean |
isMaskSupported() |
void |
knnMatch(Mat queryDescriptors,
java.util.List<MatOfDMatch> matches,
int k) |
void |
knnMatch(Mat queryDescriptors,
java.util.List<MatOfDMatch> matches,
int k,
java.util.List<Mat> masks,
boolean compactResult) |
void |
knnMatch(Mat queryDescriptors,
Mat trainDescriptors,
java.util.List<MatOfDMatch> matches,
int k) |
void |
knnMatch(Mat queryDescriptors,
Mat trainDescriptors,
java.util.List<MatOfDMatch> matches,
int k,
Mat mask,
boolean compactResult) |
void |
match(Mat queryDescriptors,
Mat trainDescriptors,
MatOfDMatch matches) |
void |
match(Mat queryDescriptors,
Mat trainDescriptors,
MatOfDMatch matches,
Mat mask) |
void |
match(Mat queryDescriptors,
MatOfDMatch matches) |
void |
match(Mat queryDescriptors,
MatOfDMatch matches,
java.util.List<Mat> masks) |
void |
radiusMatch(Mat queryDescriptors,
java.util.List<MatOfDMatch> matches,
float maxDistance) |
void |
radiusMatch(Mat queryDescriptors,
java.util.List<MatOfDMatch> matches,
float maxDistance,
java.util.List<Mat> masks,
boolean compactResult) |
void |
radiusMatch(Mat queryDescriptors,
Mat trainDescriptors,
java.util.List<MatOfDMatch> matches,
float maxDistance) |
void |
radiusMatch(Mat queryDescriptors,
Mat trainDescriptors,
java.util.List<MatOfDMatch> matches,
float maxDistance,
Mat mask,
boolean compactResult) |
void |
read(java.lang.String fileName) |
void |
train() |
void |
write(java.lang.String fileName) |
public static final int BRUTEFORCE
public static final int BRUTEFORCE_HAMMING
public static final int BRUTEFORCE_HAMMINGLUT
public static final int BRUTEFORCE_L1
public static final int BRUTEFORCE_SL2
public static final int FLANNBASED
public void add(java.util.List<Mat> descriptors)
public void clear()
public DescriptorMatcher clone()
clone
in class java.lang.Object
public DescriptorMatcher clone(boolean emptyTrainData)
public static DescriptorMatcher create(int matcherType)
public boolean empty()
public java.util.List<Mat> getTrainDescriptors()
public boolean isMaskSupported()
public void knnMatch(Mat queryDescriptors, java.util.List<MatOfDMatch> matches, int k)
public void knnMatch(Mat queryDescriptors, java.util.List<MatOfDMatch> matches, int k, java.util.List<Mat> masks, boolean compactResult)
public void knnMatch(Mat queryDescriptors, Mat trainDescriptors, java.util.List<MatOfDMatch> matches, int k)
public void knnMatch(Mat queryDescriptors, Mat trainDescriptors, java.util.List<MatOfDMatch> matches, int k, Mat mask, boolean compactResult)
public void match(Mat queryDescriptors, Mat trainDescriptors, MatOfDMatch matches)
public void match(Mat queryDescriptors, Mat trainDescriptors, MatOfDMatch matches, Mat mask)
public void match(Mat queryDescriptors, MatOfDMatch matches)
public void match(Mat queryDescriptors, MatOfDMatch matches, java.util.List<Mat> masks)
public void radiusMatch(Mat queryDescriptors, java.util.List<MatOfDMatch> matches, float maxDistance)
public void radiusMatch(Mat queryDescriptors, java.util.List<MatOfDMatch> matches, float maxDistance, java.util.List<Mat> masks, boolean compactResult)
public void radiusMatch(Mat queryDescriptors, Mat trainDescriptors, java.util.List<MatOfDMatch> matches, float maxDistance)
public void radiusMatch(Mat queryDescriptors, Mat trainDescriptors, java.util.List<MatOfDMatch> matches, float maxDistance, Mat mask, boolean compactResult)
public void read(java.lang.String fileName)
public void train()
public void write(java.lang.String fileName)