org.opencv.features2d
Class DescriptorMatcher
java.lang.Object
org.opencv.features2d.DescriptorMatcher
public class DescriptorMatcher
- extends java.lang.Object
Method Summary |
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BRUTEFORCE
public static final int BRUTEFORCE
- See Also:
- Constant Field Values
BRUTEFORCE_HAMMING
public static final int BRUTEFORCE_HAMMING
- See Also:
- Constant Field Values
BRUTEFORCE_HAMMINGLUT
public static final int BRUTEFORCE_HAMMINGLUT
- See Also:
- Constant Field Values
BRUTEFORCE_L1
public static final int BRUTEFORCE_L1
- See Also:
- Constant Field Values
BRUTEFORCE_SL2
public static final int BRUTEFORCE_SL2
- See Also:
- Constant Field Values
FLANNBASED
public static final int FLANNBASED
- See Also:
- Constant Field Values
add
public void add(java.util.List<Mat> descriptors)
clear
public void clear()
clone
public DescriptorMatcher clone()
- Overrides:
clone
in class java.lang.Object
clone
public DescriptorMatcher clone(boolean emptyTrainData)
create
public static DescriptorMatcher create(int matcherType)
empty
public boolean empty()
getTrainDescriptors
public java.util.List<Mat> getTrainDescriptors()
isMaskSupported
public boolean isMaskSupported()
knnMatch
public void knnMatch(Mat queryDescriptors,
java.util.List<MatOfDMatch> matches,
int k)
knnMatch
public void knnMatch(Mat queryDescriptors,
java.util.List<MatOfDMatch> matches,
int k,
java.util.List<Mat> masks,
boolean compactResult)
knnMatch
public void knnMatch(Mat queryDescriptors,
Mat trainDescriptors,
java.util.List<MatOfDMatch> matches,
int k)
knnMatch
public void knnMatch(Mat queryDescriptors,
Mat trainDescriptors,
java.util.List<MatOfDMatch> matches,
int k,
Mat mask,
boolean compactResult)
match
public void match(Mat queryDescriptors,
Mat trainDescriptors,
MatOfDMatch matches)
match
public void match(Mat queryDescriptors,
Mat trainDescriptors,
MatOfDMatch matches,
Mat mask)
match
public void match(Mat queryDescriptors,
MatOfDMatch matches)
match
public void match(Mat queryDescriptors,
MatOfDMatch matches,
java.util.List<Mat> masks)
radiusMatch
public void radiusMatch(Mat queryDescriptors,
java.util.List<MatOfDMatch> matches,
float maxDistance)
radiusMatch
public void radiusMatch(Mat queryDescriptors,
java.util.List<MatOfDMatch> matches,
float maxDistance,
java.util.List<Mat> masks,
boolean compactResult)
radiusMatch
public void radiusMatch(Mat queryDescriptors,
Mat trainDescriptors,
java.util.List<MatOfDMatch> matches,
float maxDistance)
radiusMatch
public void radiusMatch(Mat queryDescriptors,
Mat trainDescriptors,
java.util.List<MatOfDMatch> matches,
float maxDistance,
Mat mask,
boolean compactResult)
read
public void read(java.lang.String fileName)
train
public void train()
write
public void write(java.lang.String fileName)