D - Feature description type.public class AssociateGreedy<D>
extends java.lang.Object
Brute force greedy association for objects described by a TupleDesc_F64. An
object is associated with whichever object has the best fit score and every possible combination
is examined. If there are a large number of features this can be quite slow.
Optionally, backwards validation can be used to reduce the number of false associations. Backwards validation works by checking to see if two objects are mutually the best association for each other. First an association is found from src to dst, then the best fit in dst is associated with feature in src.
| Constructor and Description |
|---|
AssociateGreedy(ScoreAssociation<D> score,
boolean backwardsValidation)
Configure association
|
| Modifier and Type | Method and Description |
|---|---|
void |
associate(org.ddogleg.struct.FastQueue<D> src,
org.ddogleg.struct.FastQueue<D> dst)
Associates the two sets objects against each other by minimizing fit score.
|
double[] |
getFitQuality()
Quality of fit scores for each association.
|
int[] |
getPairs()
Returns a list of association pairs.
|
ScoreAssociation<D> |
getScore() |
boolean |
isBackwardsValidation() |
void |
setMaxFitError(double maxFitError) |
public AssociateGreedy(ScoreAssociation<D> score, boolean backwardsValidation)
score - Computes the association score.backwardsValidation - If true then backwards validation is performed.public void associate(org.ddogleg.struct.FastQueue<D> src, org.ddogleg.struct.FastQueue<D> dst)
src - Source list.dst - Destination list.public int[] getPairs()
public double[] getFitQuality()
public void setMaxFitError(double maxFitError)
public ScoreAssociation<D> getScore()
public boolean isBackwardsValidation()