T
- public class VotingKeypointMatcher<T extends Keypoint> extends FastBasicKeypointMatcher<T> implements LocalFeatureMatcher<T>
Modifier and Type | Field and Description |
---|---|
protected int |
minVote |
protected float |
singularityDistance |
modelKeypointsKNN
matches, modelKeypoints, thresh
Constructor and Description |
---|
VotingKeypointMatcher(int threshold) |
VotingKeypointMatcher(int threshold,
int neighbours,
int minVote,
float singularityDistance) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkSingularity() |
protected float |
euclideanSqr(Keypoint k1,
Keypoint k2) |
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.
|
protected List<T> |
findModelNeighbours(T kp) |
List<Pair<T>> |
getAllMatches() |
protected float[] |
getCentroid() |
List<Pair<T>> |
getMatches()
Get the matches detected by the underlying algorithm
|
protected int |
vote(Pair<T> match) |
setModelFeatures
checkForMatch, setThreshold
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setModelFeatures
protected int minVote
protected float singularityDistance
public VotingKeypointMatcher(int threshold)
threshold
- threshold for determining matching keypointspublic VotingKeypointMatcher(int threshold, int neighbours, int minVote, float singularityDistance)
threshold
- threshold for determining matching keypointsneighbours
- number of neighbours within which to check for local supportminVote
- singularityDistance
- public List<Pair<T>> getMatches()
LocalFeatureMatcher
getMatches
in interface LocalFeatureMatcher<T extends Keypoint>
getMatches
in class BasicMatcher<T extends Keypoint>
public List<Pair<T>> getAllMatches()
public boolean findMatches(List<T> keys1)
FastBasicKeypointMatcher
findMatches
in interface LocalFeatureMatcher<T extends Keypoint>
findMatches
in class FastBasicKeypointMatcher<T extends Keypoint>
keys1
- features from the queryprotected float[] getCentroid()
protected boolean checkSingularity()
protected float euclideanSqr(Keypoint k1, Keypoint k2)
protected List<T> findModelNeighbours(T kp)