public class SubsetMatcher extends Object implements Matcher
Constructor and Description |
---|
SubsetMatcher(int subsetSize,
int numNeighbors)
Matches n out of m neighbor points, the effort increases exponentially(!)
For example
SubsetMatcher (4,4) is identical to calling SimpleMatcher (4) |
Modifier and Type | Method and Description |
---|---|
protected static int[][] |
computePD(int n,
int k,
int offset) |
protected static int[][] |
computePDRecursive(int tolerance,
int n,
int offset)
Computes recursively how to create different PointDescriptors of the same Point when some tolerance
is allowed, e.g.
|
ArrayList<ArrayList<PointMatch>> |
createCandidates(AbstractPointDescriptor<?,?> pd1,
AbstractPointDescriptor<?,?> pd2) |
int[][] |
getNeighbors() |
double |
getNormalizationFactor(ArrayList<PointMatch> matches,
Object fitResult)
Computes a normalization factor for the case that the different set of
PointMatch es are not comparable
(for example number of neighbors used is not constant) |
int |
getNumCombinations() |
int |
getNumMatchings() |
int |
getNumNeighbors() |
int |
getRequiredNumNeighbors() |
int |
getSubsetSize() |
public SubsetMatcher(int subsetSize, int numNeighbors)
SubsetMatcher
(4,4) is identical to calling SimpleMatcher
(4)subsetSize
- (n) - how many neighbors are matched in each trynumNeighbors
- (m) - out of how many neighbors to choosepublic int[][] getNeighbors()
public int getSubsetSize()
public int getNumNeighbors()
public int getNumCombinations()
public int getNumMatchings()
public int getRequiredNumNeighbors()
getRequiredNumNeighbors
in interface Matcher
Matcher
public ArrayList<ArrayList<PointMatch>> createCandidates(AbstractPointDescriptor<?,?> pd1, AbstractPointDescriptor<?,?> pd2)
createCandidates
in interface Matcher
ArrayList
of corresponding set of PointMatch
es which contain LinkedPoint
s linking to the actual Point
instance they are created frompublic double getNormalizationFactor(ArrayList<PointMatch> matches, Object fitResult)
Matcher
PointMatch
es are not comparable
(for example number of neighbors used is not constant)getNormalizationFactor
in interface Matcher
matches
- the set of PointMatch
esPointMatch
esprotected static int[][] computePD(int n, int k, int offset)
protected static int[][] computePDRecursive(int tolerance, int n, int offset)
tolerance
- - How many tolerance is accepted [0 ... m]n
- - initialized with the number of neighborsoffset
- - the starting position for the neighbors, usually 1Copyright © 2015–2021 Fiji. All rights reserved.