public class WrapAssociateGreedy<T> extends java.lang.Object implements AssociateDescription<T>
AssociateGreedy.| Constructor and Description |
|---|
WrapAssociateGreedy(AssociateGreedy<T> alg) |
| 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.
|
org.ddogleg.struct.FastQueue<AssociatedIndex> |
getMatches()
List of associated features.
|
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.
|
void |
setDestination(org.ddogleg.struct.FastQueue<T> listDst)
Sets the list of destination features
NOTE: A reference to the input list might be saved internally until the next call to this function.
|
void |
setSource(org.ddogleg.struct.FastQueue<T> listSrc)
Sets the list of 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.
|
public WrapAssociateGreedy(AssociateGreedy<T> alg)
alg - public void setSource(org.ddogleg.struct.FastQueue<T> listSrc)
AssociateDescriptionsetSource in interface AssociateDescription<T>listSrc - List of featurespublic void setDestination(org.ddogleg.struct.FastQueue<T> listDst)
AssociateDescriptionsetDestination in interface AssociateDescription<T>listDst - List of featurespublic org.ddogleg.struct.FastQueue<AssociatedIndex> getMatches()
AssociategetMatches in interface Associatepublic void associate()
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