T - The type of LocalFeaturepublic class ConsistentLocalFeatureMatcher2d<T extends LocalFeature<?,?> & Point2d> extends Object implements ModelFittingLocalFeatureMatcher<T>
| Modifier and Type | Field and Description |
|---|---|
protected List<Pair<T>> |
consistentMatches |
protected LocalFeatureMatcher<T> |
innerMatcher |
protected RobustModelFitting<Point2d,Point2d,?> |
modelfit |
| Constructor and Description |
|---|
ConsistentLocalFeatureMatcher2d(LocalFeatureMatcher<T> innerMatcher)
Default constructor
|
ConsistentLocalFeatureMatcher2d(LocalFeatureMatcher<T> innerMatcher,
RobustModelFitting<Point2d,Point2d,?> fit)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
findMatches(List<T> keys1)
Attempt to find matches between the model features from the database, and
given query features and learn the parameters of the underlying model
that links the two sets of features.
|
List<Pair<T>> |
getAllMatches() |
List<Pair<T>> |
getMatches()
Get the matches detected by the underlying algorithm
|
Model<Point2d,Point2d> |
getModel()
Get the model that has been learned.
|
void |
setFittingModel(RobustModelFitting<Point2d,Point2d,?> mf)
Set the object which robustly attempts to fit matches to the model
|
void |
setModelFeatures(List<T> modelkeys)
Set the features that represent the database to match queries against
|
protected LocalFeatureMatcher<T extends LocalFeature<?,?> & Point2d> innerMatcher
protected RobustModelFitting<Point2d,Point2d,?> modelfit
protected List<Pair<T extends LocalFeature<?,?> & Point2d>> consistentMatches
public ConsistentLocalFeatureMatcher2d(LocalFeatureMatcher<T> innerMatcher)
innerMatcher - the internal matcher for getting seed matchespublic ConsistentLocalFeatureMatcher2d(LocalFeatureMatcher<T> innerMatcher, RobustModelFitting<Point2d,Point2d,?> fit)
innerMatcher - the internal matcher for getting seed matchesfit - the points against which to test consistencypublic List<Pair<T>> getMatches()
LocalFeatureMatchergetMatches in interface LocalFeatureMatcher<T extends LocalFeature<?,?> & Point2d>public List<Pair<T>> getAllMatches()
public Model<Point2d,Point2d> getModel()
ModelFittingLocalFeatureMatchergetModel in interface ModelFittingLocalFeatureMatcher<T extends LocalFeature<?,?> & Point2d>public boolean findMatches(List<T> keys1)
ModelFittingLocalFeatureMatcherfindMatches in interface ModelFittingLocalFeatureMatcher<T extends LocalFeature<?,?> & Point2d>findMatches in interface LocalFeatureMatcher<T extends LocalFeature<?,?> & Point2d>keys1 - features from the querypublic void setFittingModel(RobustModelFitting<Point2d,Point2d,?> mf)
ModelFittingLocalFeatureMatchersetFittingModel in interface ModelFittingLocalFeatureMatcher<T extends LocalFeature<?,?> & Point2d>mf - fitting modelpublic void setModelFeatures(List<T> modelkeys)
LocalFeatureMatchersetModelFeatures in interface LocalFeatureMatcher<T extends LocalFeature<?,?> & Point2d>modelkeys - database of features