Class SimpleMatcher
java.lang.Object
net.preibisch.mvrecon.process.pointcloud.pointdescriptor.matcher.SimpleMatcher
- All Implemented Interfaces:
Matcher
- Direct Known Subclasses:
ModelPriorMatcher
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCandidates(AbstractPointDescriptor<?, ?> pd1, AbstractPointDescriptor<?, ?> pd2) doublegetNormalizationFactor(ArrayList<mpicbg.models.PointMatch> matches, Object fitResult) Computes a normalization factor for the case that the different set ofPointMatches are not comparable (for example number of neighbors used is not constant)int
-
Constructor Details
-
SimpleMatcher
public SimpleMatcher(int numNeighbors)
-
-
Method Details
-
createCandidates
public ArrayList<ArrayList<mpicbg.models.PointMatch>> createCandidates(AbstractPointDescriptor<?, ?> pd1, AbstractPointDescriptor<?, ?> pd2) - Specified by:
createCandidatesin interfaceMatcher- Parameters:
pd1- - pointdescriptor 1pd2- - pointdescriptor 2- Returns:
- An
ArrayListof corresponding set ofPointMatches which containLinkedPoints linking to the actualPointinstance they are created from
-
getRequiredNumNeighbors
public int getRequiredNumNeighbors()- Specified by:
getRequiredNumNeighborsin interfaceMatcher- Returns:
- The number of nearest neighbors required for this
Matcher
-
getNormalizationFactor
Description copied from interface:MatcherComputes a normalization factor for the case that the different set ofPointMatches are not comparable (for example number of neighbors used is not constant)- Specified by:
getNormalizationFactorin interfaceMatcher- Parameters:
matches- the set ofPointMatchesfitResult- - potential data needed to compute it- Returns:
- The normalization factor for a certain set of
PointMatches
-