T - The type of keypointpublic class LocalConsistentKeypointMatcher<T extends Keypoint> extends FastBasicKeypointMatcher<T> implements ModelFittingLocalFeatureMatcher<T>
modelKeypointsKNNmatches, modelKeypoints, thresh| Constructor and Description |
|---|
LocalConsistentKeypointMatcher(int threshold)
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
findMatches(List<T> keys1)
Given a pair of images and their keypoints, pick the first keypoint from
one image and find its closest match in the second set of keypoints.
|
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> map)
Set the features that represent the database to match queries against
|
checkForMatch, setThresholdpublic LocalConsistentKeypointMatcher(int threshold)
threshold - threshold for determining matching keypointspublic List<Pair<T>> getMatches()
LocalFeatureMatchergetMatches in interface LocalFeatureMatcher<T extends Keypoint>getMatches in class BasicMatcher<T extends Keypoint>public List<Pair<T>> getAllMatches()
public Model<Point2d,Point2d> getModel()
ModelFittingLocalFeatureMatchergetModel in interface ModelFittingLocalFeatureMatcher<T extends Keypoint>public boolean findMatches(List<T> keys1)
FastBasicKeypointMatcherfindMatches in interface ModelFittingLocalFeatureMatcher<T extends Keypoint>findMatches in interface LocalFeatureMatcher<T extends Keypoint>findMatches in class FastBasicKeypointMatcher<T extends Keypoint>keys1 - features from the querypublic void setFittingModel(RobustModelFitting<Point2d,Point2d,?> mf)
ModelFittingLocalFeatureMatchersetFittingModel in interface ModelFittingLocalFeatureMatcher<T extends Keypoint>mf - fitting modelpublic void setModelFeatures(List<T> map)
LocalFeatureMatchersetModelFeatures in interface LocalFeatureMatcher<T extends Keypoint>setModelFeatures in class FastBasicKeypointMatcher<T extends Keypoint>map - database of features