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 |
protected long |
nativeObj |
Modifier | Constructor and Description |
---|---|
protected |
DescriptorMatcher(long addr) |
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() |
protected void |
finalize() |
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) |
protected final long nativeObj
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
protected DescriptorMatcher(long addr)
public boolean empty()
public boolean isMaskSupported()
public static DescriptorMatcher create(int matcherType)
public DescriptorMatcher clone(boolean emptyTrainData)
public DescriptorMatcher clone()
clone
in class java.lang.Object
public java.util.List<Mat> getTrainDescriptors()
public void clear()
public void knnMatch(Mat queryDescriptors, Mat trainDescriptors, java.util.List<MatOfDMatch> matches, int k, Mat mask, boolean compactResult)
public void knnMatch(Mat queryDescriptors, Mat trainDescriptors, 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, java.util.List<MatOfDMatch> matches, int k)
public void match(Mat queryDescriptors, Mat trainDescriptors, MatOfDMatch matches, Mat mask)
public void match(Mat queryDescriptors, Mat trainDescriptors, MatOfDMatch matches)
public void match(Mat queryDescriptors, MatOfDMatch matches, java.util.List<Mat> masks)
public void match(Mat queryDescriptors, MatOfDMatch matches)
public void radiusMatch(Mat queryDescriptors, Mat trainDescriptors, java.util.List<MatOfDMatch> matches, float maxDistance, Mat mask, boolean compactResult)
public void radiusMatch(Mat queryDescriptors, Mat trainDescriptors, 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, java.util.List<MatOfDMatch> matches, float maxDistance)
public void read(java.lang.String fileName)
public void train()
public void write(java.lang.String fileName)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable