Interface AssociateDescription<Desc>

Type Parameters:
Desc - Feature description type.
All Superinterfaces:
Associate<Desc>
All Known Implementing Classes:
AssociateDescriptionAbstract, AssociateNearestNeighbor, AssociateNearestNeighbor_MT, AssociateNearestNeighbor_ST, EnforceUniqueByScore.Describe, WrapAssociateGreedy

public interface AssociateDescription<Desc> extends Associate<Desc>

Generalized interface for associating features. Finds matches for each feature in the source list to one in the destination list. There is only one match found for each member of source, but multiple matches can be found for destination. If the best match has an error which is too high then a member of source might not be matched.

DESIGN NOTE: FastAccess is used instead of List because in the association micro benchmark it produced results that were about 20% faster consistently. Which is surprising since one would think descriptor comparisons would dominate.

  • Method Details

    • setSource

      void setSource(FastAccess<Desc> listSrc)
      Sets the list of source features. NOTE: A reference to the input list might be saved internally until the next call to this function.
      Parameters:
      listSrc - List of features
    • setDestination

      void setDestination(FastAccess<Desc> 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.
      Parameters:
      listDst - List of features