Class BaseAssociateSets<Desc>

java.lang.Object
boofcv.abst.feature.associate.BaseAssociateSets<Desc>
All Implemented Interfaces:
Associate<Desc>
Direct Known Subclasses:
AssociateDescriptionSets2D, BaseAssociateDescriptionSets

public abstract class BaseAssociateSets<Desc> extends Object implements Associate<Desc>
Base class for set aware feature association
  • Field Details

  • Constructor Details

    • BaseAssociateSets

      protected BaseAssociateSets(Associate<Desc> associator)
      Specifies the type of descriptor
  • Method Details

    • newSetStruct

      protected BaseAssociateSets<Desc>.SetStruct newSetStruct()
    • clearSource

      public void clearSource()
      Removes all data for the source descriptors.
    • clearDestination

      public void clearDestination()
      Removes all data for the destination descriptors.
    • saveSetAssociateResults

      protected void saveSetAssociateResults(BaseAssociateSets<Desc>.SetStruct set)
      After associating a set run association these processes and saves the results
    • getMatches

      public FastAccess<AssociatedIndex> getMatches()
      Description copied from interface: Associate
      List of associated features. Indexes refer to the index inside the input lists.
      Specified by:
      getMatches in interface Associate<Desc>
      Returns:
      List of associated features.
    • getUnassociatedSource

      public DogArray_I32 getUnassociatedSource()
      Description copied from interface: Associate
      Indexes of features in the source set which are not associated. WARNING: In some implementations the unassociated list is recomputed each time this function is invoked. In other implementations it was found virtually for free while the matches are found.
      Specified by:
      getUnassociatedSource in interface Associate<Desc>
      Returns:
      List of unassociated source features by index.
    • getUnassociatedDestination

      public DogArray_I32 getUnassociatedDestination()
      Description copied from interface: Associate
      Indexes of features in the destination set which are not associated. WARNING: In some implementations the unassociated list is recomputed each time this function is invoked. In other implementations it was found virtually for free while the matches are found.
      Specified by:
      getUnassociatedDestination in interface Associate<Desc>
      Returns:
      List of unassociated destination features by index.
    • setMaxScoreThreshold

      public void setMaxScoreThreshold(double score)
      Description copied from interface: Associate
      Associations are only considered if their score is less than or equal to the specified threshold. To remove any threshold test set this value to Double.MAX_VALUE
      Specified by:
      setMaxScoreThreshold in interface Associate<Desc>
      Parameters:
      score - The threshold.
    • getScoreType

      public MatchScoreType getScoreType()
      Description copied from interface: Associate
      Specifies the type of score which is returned.
      Specified by:
      getScoreType in interface Associate<Desc>
      Returns:
      Type of association score.
    • uniqueSource

      public boolean uniqueSource()
      Description copied from interface: Associate
      If at most one match is returned for each source feature.
      Specified by:
      uniqueSource in interface Associate<Desc>
      Returns:
      true for unique source association
    • uniqueDestination

      public boolean uniqueDestination()
      Description copied from interface: Associate
      If at most one match is returned for each destination feature.
      Specified by:
      uniqueDestination in interface Associate<Desc>
      Returns:
      true for unique destination association
    • getDescriptionType

      public Class<Desc> getDescriptionType()
      Description copied from interface: Associate
      Returns the type of object it can associate
      Specified by:
      getDescriptionType in interface Associate<Desc>