public abstract class BaseAssociateLocation2DFilter<D> extends java.lang.Object implements AssociateDescription2D<D>
| Modifier and Type | Field and Description |
|---|---|
protected double |
maxDistance |
protected double |
maxError |
| Modifier | Constructor and Description |
|---|---|
protected |
BaseAssociateLocation2DFilter(ScoreAssociation<D> scoreAssociation,
boolean backwardsValidation,
double maxError)
Specifies score mechanism
|
| Modifier and Type | Method and Description |
|---|---|
void |
associate()
Finds the best match for each item in the source list with an item in the destination list.
|
protected abstract double |
computeDistanceToSource(georegression.struct.point.Point2D_F64 p) |
org.ddogleg.struct.FastQueue<AssociatedIndex> |
getMatches()
List of associated features.
|
double |
getMaxDistance() |
MatchScoreType |
getScoreType()
Specifies the type of score which is returned.
|
org.ddogleg.struct.GrowQueue_I32 |
getUnassociatedDestination()
Indexes of features in the destination set which are not associated.
|
org.ddogleg.struct.GrowQueue_I32 |
getUnassociatedSource()
Indexes of features in the source set which are not associated.
|
protected abstract void |
setActiveSource(georegression.struct.point.Point2D_F64 p) |
void |
setDestination(org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_F64> location,
org.ddogleg.struct.FastQueue<D> descriptions)
Provide the location and descriptions for destination features.
|
void |
setMaxDistance(double maxDistance) |
void |
setSource(org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_F64> location,
org.ddogleg.struct.FastQueue<D> descriptions)
Provide the location and descriptions for source features.
|
void |
setThreshold(double score)
Associations are only considered if their score is less than or equal to the specified threshold.
|
boolean |
uniqueDestination()
If at most one match is returned for each destination feature.
|
boolean |
uniqueSource()
If at most one match is returned for each source feature.
|
protected BaseAssociateLocation2DFilter(ScoreAssociation<D> scoreAssociation, boolean backwardsValidation, double maxError)
scoreAssociation - How features are scored.backwardsValidation - Require that matches are mutual in forward/backwards directionsmaxError - Maximum allowed association errorpublic double getMaxDistance()
public void setMaxDistance(double maxDistance)
public void setSource(org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_F64> location,
org.ddogleg.struct.FastQueue<D> descriptions)
AssociateDescription2DsetSource in interface AssociateDescription2D<D>location - Feature locations.descriptions - Feature descriptions.public void setDestination(org.ddogleg.struct.FastQueue<georegression.struct.point.Point2D_F64> location,
org.ddogleg.struct.FastQueue<D> descriptions)
AssociateDescription2DsetDestination in interface AssociateDescription2D<D>location - Feature locations.descriptions - Feature descriptions.protected abstract void setActiveSource(georegression.struct.point.Point2D_F64 p)
protected abstract double computeDistanceToSource(georegression.struct.point.Point2D_F64 p)
public void associate()
Associatepublic org.ddogleg.struct.FastQueue<AssociatedIndex> getMatches()
AssociategetMatches in interface Associatepublic org.ddogleg.struct.GrowQueue_I32 getUnassociatedSource()
AssociategetUnassociatedSource in interface Associatepublic org.ddogleg.struct.GrowQueue_I32 getUnassociatedDestination()
AssociategetUnassociatedDestination in interface Associatepublic void setThreshold(double score)
AssociatesetThreshold in interface Associatescore - The threshold.public MatchScoreType getScoreType()
AssociategetScoreType in interface Associatepublic boolean uniqueSource()
AssociateuniqueSource in interface Associatepublic boolean uniqueDestination()
AssociateuniqueDestination in interface Associate