T - Type of Keypoint being matchedpublic class MultipleMatchesMatcher<T extends Keypoint> extends Object implements LocalFeatureMatcher<T>
LocalFeatureMatcher that only matches points that
are self similar with other points.
Target points that match have a distance less than a threshold
to the query point. The number of points less than the threshold
must be greater than the limit to be counted as matches.| Constructor and Description |
|---|
MultipleMatchesMatcher(int count,
double thresh)
Construct with the given minimum number of similar features
and threshold for defining similarity.
|
| 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.
|
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
|
public MultipleMatchesMatcher(int count, double thresh)
count - number of matches with a distance less than thresh to be counted.thresh - the threshold.public void setModelFeatures(List<T> modelkeys)
LocalFeatureMatchersetModelFeatures in interface LocalFeatureMatcher<T extends Keypoint>modelkeys - database of featurespublic boolean findMatches(List<T> keys1)
LocalFeatureMatcherfindMatches in interface LocalFeatureMatcher<T extends Keypoint>keys1 - features from the querypublic List<Pair<T>> getMatches()
LocalFeatureMatchergetMatches in interface LocalFeatureMatcher<T extends Keypoint>