public class AssociateThreeByPairs<Desc> extends java.lang.Object implements AssociateThreeDescription<Desc>
| Modifier and Type | Field and Description |
|---|---|
protected AssociateDescription<Desc> |
associator |
protected org.ddogleg.struct.FastQueue<Desc> |
featuresA |
protected org.ddogleg.struct.FastQueue<Desc> |
featuresB |
protected org.ddogleg.struct.FastQueue<Desc> |
featuresC |
protected org.ddogleg.struct.FastQueue<AssociatedTripleIndex> |
matches |
protected org.ddogleg.struct.GrowQueue_I32 |
srcToC |
protected org.ddogleg.struct.FastQueue<Desc> |
tmpA |
protected org.ddogleg.struct.FastQueue<Desc> |
tmpB |
| Constructor and Description |
|---|
AssociateThreeByPairs(AssociateDescription<Desc> associator,
java.lang.Class<Desc> type)
Specifies which algorithms to use internally
|
| 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<AssociatedTripleIndex> |
getMatches()
List of associated features.
|
MatchScoreType |
getScoreType()
Specifies the type of score which is returned.
|
boolean |
isEachFeatureAssociatedOnlyOnce()
If true then each feature is associated at most one time
|
void |
setFeaturesA(org.ddogleg.struct.FastQueue<Desc> features)
Specify descriptors in image A
|
void |
setFeaturesB(org.ddogleg.struct.FastQueue<Desc> features)
Specify descriptors in image C
|
void |
setFeaturesC(org.ddogleg.struct.FastQueue<Desc> features)
Specify descriptors in image B
|
void |
setMaxScoreThreshold(double score)
Associations are only considered if their score is less than or equal to the specified threshold.
|
protected AssociateDescription<Desc> associator
protected org.ddogleg.struct.FastQueue<Desc> featuresA
protected org.ddogleg.struct.FastQueue<Desc> featuresB
protected org.ddogleg.struct.FastQueue<Desc> featuresC
protected org.ddogleg.struct.FastQueue<Desc> tmpB
protected org.ddogleg.struct.FastQueue<Desc> tmpA
protected org.ddogleg.struct.FastQueue<AssociatedTripleIndex> matches
protected org.ddogleg.struct.GrowQueue_I32 srcToC
public AssociateThreeByPairs(AssociateDescription<Desc> associator, java.lang.Class<Desc> type)
associator - image to image associationtype - Type of descriptorpublic void setFeaturesA(org.ddogleg.struct.FastQueue<Desc> features)
AssociateThreeDescriptionsetFeaturesA in interface AssociateThreeDescription<Desc>features - feature descriptorspublic void setFeaturesB(org.ddogleg.struct.FastQueue<Desc> features)
AssociateThreeDescriptionsetFeaturesB in interface AssociateThreeDescription<Desc>features - feature descriptorspublic void setFeaturesC(org.ddogleg.struct.FastQueue<Desc> features)
AssociateThreeDescriptionsetFeaturesC in interface AssociateThreeDescription<Desc>features - feature descriptorspublic void associate()
AssociateThreeDescriptionassociate in interface AssociateThreeDescription<Desc>public org.ddogleg.struct.FastQueue<AssociatedTripleIndex> getMatches()
AssociateThreeDescriptiongetMatches in interface AssociateThreeDescription<Desc>public void setMaxScoreThreshold(double score)
AssociateThreeDescriptionsetMaxScoreThreshold in interface AssociateThreeDescription<Desc>score - The threshold.public MatchScoreType getScoreType()
AssociateThreeDescriptiongetScoreType in interface AssociateThreeDescription<Desc>public boolean isEachFeatureAssociatedOnlyOnce()
AssociateThreeDescriptionisEachFeatureAssociatedOnlyOnce in interface AssociateThreeDescription<Desc>