Documentation of 'boofcv.alg.feature.associate.BaseAssociateLocation2DFilter' Java class
BaseAssociateLocation2DFilter
boofcv.alg.feature.associate

Class BaseAssociateLocation2DFilter<D>

  • All Implemented Interfaces:
    Associate, AssociateDescription2D<D>
    Direct Known Subclasses:
    AssociateMaxDistanceNaive


    public abstract class BaseAssociateLocation2DFilter<D>
    extends java.lang.Object
    implements AssociateDescription2D<D>
    Base class for algorithms which consider all possible associations but perform a quick distance calculation to remove unlikely matches before computing the more expensive fit score between two descriptions. The maxDistance is the upper limit and features with a distance greater than maxDistance are rejected. Maximum error is exclusive and a match must have an error which is less than the max error. By default the max-distance and max error are set to Double.MAX_VALUE.
    • Method Detail

      • getMaxDistance

        public double getMaxDistance()
      • setMaxDistance

        public void setMaxDistance(double maxDistance)
      • associate

        public void associate()
        Description copied from interface: Associate
        Finds the best match for each item in the source list with an item in the destination list.
        Specified by:
        associate in interface Associate
      • getMatches

        public FastQueue<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
        Returns:
        List of associated features.
      • getUnassociatedSource

        public GrowQueue_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
        Returns:
        List of unassociated source features by index.
      • getUnassociatedDestination

        public GrowQueue_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
        Returns:
        List of unassociated destination features by index.
      • setThreshold

        public void setThreshold(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:
        setThreshold in interface Associate
        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
        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
        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
        Returns:
        true for unique destination association

DataMelt 3.0 © DataMelt by jWork.ORG

Ads help maintain this website.