Class AbstractPointDescriptor<P extends mpicbg.models.Point,F extends AbstractPointDescriptor<P,F>>
java.lang.Object
net.preibisch.mvrecon.process.pointcloud.pointdescriptor.AbstractPointDescriptor<P,F>
- Direct Known Subclasses:
LocalCoordinateSystemPointDescriptor,ModelPointDescriptor,SimplePointDescriptor,TranslationInvariantLocalCoordinateSystemPointDescriptor
public abstract class AbstractPointDescriptor<P extends mpicbg.models.Point,F extends AbstractPointDescriptor<P,F>>
extends Object
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAbstractPointDescriptor(P basisPoint, ArrayList<P> orderedNearestNeighboringPoints, SimilarityMeasure similarityMeasure, Matcher matcher) -
Method Summary
Modifier and TypeMethodDescriptiondoubledescriptorDistance(F pointDescriptor) Matches twoAbstractPointDescriptors of the same kind yielding a similarity value, the lower the better (0 means identical)abstract ObjectfitMatches(ArrayList<mpicbg.models.PointMatch> matches) Computes a fit between this thesePointMatches, this method is called by theMatcherThe basis point for this descriptorThe combination of descriptorpoints that yielded the best similarity in the last comparisongetDescriptorPoint(int index) Returns a certain nearest neighbor (relative to the basis point) of thisAbstractPointDescriptorlonggetId()Return the unique id of this descriptorintDimensionality of thePoints of thisAbstractPointDescriptorintThe number of neighbors used for this descriptorprotected voidResets the world coordinates of the descriptorPointsabstract booleanTells if the descriptormatching should reset the world coordinates after the matchingvoidsetSimilarityMeasure(SimilarityMeasure similarityMeasure) Sets theSimilarityMeasureobject that is used to compute how similar two descriptors aretoString()Overwrites the toString methodabstract booleanTells if the build up of the descriptor should use the world coordinates or rather the local coordinates
-
Field Details
-
index
-
-
Constructor Details
-
AbstractPointDescriptor
public AbstractPointDescriptor(P basisPoint, ArrayList<P> orderedNearestNeighboringPoints, SimilarityMeasure similarityMeasure, Matcher matcher) throws NoSuitablePointsException - Throws:
NoSuitablePointsException
-
-
Method Details
-
descriptorDistance
Matches twoAbstractPointDescriptors of the same kind yielding a similarity value, the lower the better (0 means identical)- Parameters:
pointDescriptor- - theAbstractPointDescriptorto match- Returns:
- similarity
-
getBestPointMatchSet
The combination of descriptorpoints that yielded the best similarity in the last comparison- Returns:
- - List of
PointMatches containing the original datasets
-
resetWorldCoordinates
protected void resetWorldCoordinates()Resets the world coordinates of the descriptorPoints -
fitMatches
Computes a fit between this thesePointMatches, this method is called by theMatcher- Parameters:
matches- - ThePoints to match- Returns:
- - a transformation
-
resetWorldCoordinatesAfterMatching
public abstract boolean resetWorldCoordinatesAfterMatching()Tells if the descriptormatching should reset the world coordinates after the matching- Returns:
- if reseting world coordinates
-
useWorldCoordinatesForDescriptorBuildUp
public abstract boolean useWorldCoordinatesForDescriptorBuildUp()Tells if the build up of the descriptor should use the world coordinates or rather the local coordinates- Returns:
- - true (world), false(local)
-
getSimilarityMeasure
- Returns:
- The
SimilarityMeasureobject that is used to compute how similar two descriptors are
-
setSimilarityMeasure
Sets theSimilarityMeasureobject that is used to compute how similar two descriptors are- Parameters:
similarityMeasure- - which similarity measure
-
getId
public long getId()Return the unique id of this descriptor- Returns:
- long id
-
getBasisPoint
The basis point for this descriptor- Returns:
- the
Pointinstance
-
getDescriptorPoint
Returns a certain nearest neighbor (relative to the basis point) of thisAbstractPointDescriptor- Parameters:
index- - the index (0 means first nearest neighbor)- Returns:
- the
Pointinstance
-
getOrderedNearestNeighboringPoints
-
numNeighbors
public int numNeighbors()The number of neighbors used for this descriptor- Returns:
- - int number
-
numDimensions
public int numDimensions()Dimensionality of thePoints of thisAbstractPointDescriptor- Returns:
- - int dimensions
-
toString
Overwrites the toString method
-