public abstract class AbstractPointDescriptor<P extends Point,F extends AbstractPointDescriptor<P,F>> extends Object
Modifier and Type | Field and Description |
---|---|
protected static AtomicLong |
index |
Constructor and Description |
---|
AbstractPointDescriptor(P basisPoint,
ArrayList<P> orderedNearestNeighboringPoints,
SimilarityMeasure similarityMeasure,
Matcher matcher) |
Modifier and Type | Method and Description |
---|---|
double |
descriptorDistance(F pointDescriptor)
Matches two
AbstractPointDescriptor s of the same kind yielding a similarity value, the lower the better (0 means identical) |
abstract Object |
fitMatches(ArrayList<PointMatch> matches)
Computes a fit between this these
PointMatch es, this method is called by the Matcher |
P |
getBasisPoint()
The basis point for this descriptor
|
ArrayList<PointMatch> |
getBestPointMatchSet()
The combination of descriptorpoints that yielded the best similarity in the last comparison
|
Point |
getDescriptorPoint(int index)
Returns a certain nearest neighbor (relative to the basis point) of this
AbstractPointDescriptor |
long |
getId()
Return the unique id of this descriptor
|
ArrayList<P> |
getOrderedNearestNeighboringPoints()
The points forming the
AbstractPointDescriptor relative to the basis point |
SimilarityMeasure |
getSimilarityMeasure() |
int |
numDimensions()
Dimensionality of the
Point s of this AbstractPointDescriptor |
int |
numNeighbors()
The number of neighbors used for this descriptor
|
protected void |
resetWorldCoordinates()
Resets the world coordinates of the descriptorPoints
|
abstract boolean |
resetWorldCoordinatesAfterMatching()
Tells if the descriptormatching should reset the world coordinates after the matching
|
void |
setSimilarityMeasure(SimilarityMeasure similarityMeasure)
Sets the
SimilarityMeasure object that is used to compute how similar two descriptors are |
String |
toString()
Overwrites the toString method
|
abstract boolean |
useWorldCoordinatesForDescriptorBuildUp()
Tells if the build up of the descriptor should use the world coordinates or rather the local coordinates
|
protected static final AtomicLong index
public AbstractPointDescriptor(P basisPoint, ArrayList<P> orderedNearestNeighboringPoints, SimilarityMeasure similarityMeasure, Matcher matcher) throws NoSuitablePointsException
NoSuitablePointsException
public double descriptorDistance(F pointDescriptor)
AbstractPointDescriptor
s of the same kind yielding a similarity value, the lower the better (0 means identical)pointDescriptor
- - the AbstractPointDescriptor
to matchpublic ArrayList<PointMatch> getBestPointMatchSet()
PointMatch
es containing the original datasetsprotected void resetWorldCoordinates()
public abstract Object fitMatches(ArrayList<PointMatch> matches)
PointMatch
es, this method is called by the Matcher
matches
- - The Point
s to matchpublic abstract boolean resetWorldCoordinatesAfterMatching()
public abstract boolean useWorldCoordinatesForDescriptorBuildUp()
public SimilarityMeasure getSimilarityMeasure()
SimilarityMeasure
object that is used to compute how similar two descriptors arepublic void setSimilarityMeasure(SimilarityMeasure similarityMeasure)
SimilarityMeasure
object that is used to compute how similar two descriptors aresimilarityMeasure
- public long getId()
public P getBasisPoint()
Point
instancepublic Point getDescriptorPoint(int index)
AbstractPointDescriptor
index
- - the index (0 means first nearest neighbor)Point
instancepublic ArrayList<P> getOrderedNearestNeighboringPoints()
AbstractPointDescriptor
relative to the basis pointpublic int numNeighbors()
public int numDimensions()
Point
s of this AbstractPointDescriptor
Copyright © 2015–2021 Fiji. All rights reserved.