T - public class BasicTwoWayMatcher<T extends LocalFeature<?,?>> extends Object implements LocalFeatureMatcher<T>
| Modifier and Type | Field and Description |
|---|---|
protected List<Pair<T>> |
matches |
protected List<T> |
modelKeypoints |
| Constructor and Description |
|---|
BasicTwoWayMatcher() |
| Modifier and Type | Method and Description |
|---|---|
protected T |
findMatch(T query,
List<T> features)
This searches through the keypoints in klist for the closest match to key.
|
boolean |
findMatches(List<T> queryfeatures)
Attempt to find matches between the model features from the database, and
given query features.
|
List<Pair<T>> |
getMatches()
Get the matches detected by the underlying algorithm
|
void |
setModelFeatures(List<T> modelkeys)
Set the features that represent the database to match queries against
|
protected List<T extends LocalFeature<?,?>> modelKeypoints
protected List<Pair<T extends LocalFeature<?,?>>> matches
public BasicTwoWayMatcher()
public void setModelFeatures(List<T> modelkeys)
LocalFeatureMatchersetModelFeatures in interface LocalFeatureMatcher<T extends LocalFeature<?,?>>modelkeys - database of featuresprotected T findMatch(T query, List<T> features)
public boolean findMatches(List<T> queryfeatures)
LocalFeatureMatcherfindMatches in interface LocalFeatureMatcher<T extends LocalFeature<?,?>>queryfeatures - features from the querypublic List<Pair<T>> getMatches()
LocalFeatureMatchergetMatches in interface LocalFeatureMatcher<T extends LocalFeature<?,?>>