Class AssociateDescriptionSets2D<Desc>

java.lang.Object
boofcv.abst.feature.associate.BaseAssociateSets<Desc>
boofcv.abst.feature.associate.AssociateDescriptionSets2D<Desc>
All Implemented Interfaces:
Associate<Desc>

public class AssociateDescriptionSets2D<Desc>
extends BaseAssociateSets<Desc>
Feature set aware association algorithm that takes in account image location. It works by breaking sorting descriptors into their sets and then performing association independently. The matches are then combined together again into a single list.
  • Constructor Details

  • Method Details

    • initializeAssociator

      public void initializeAssociator​(int imageWidth, int imageHeight)
      Initializes association.
      See Also:
      AssociateDescription2D.initialize(int, int)
    • initializeSets

      public void initializeSets​(int numberOfSets)
      Override the default behavior which assumes there's a one-to-one match between index and set ID
    • newSetStruct

      protected BaseAssociateSets.SetStruct newSetStruct()
      Overrides:
      newSetStruct in class BaseAssociateSets<Desc>
    • clearSource

      public void clearSource()
      Description copied from class: BaseAssociateSets
      Removes all data for the source descriptors.
      Overrides:
      clearSource in class BaseAssociateSets<Desc>
    • clearDestination

      public void clearDestination()
      Description copied from class: BaseAssociateSets
      Removes all data for the destination descriptors.
      Overrides:
      clearDestination in class BaseAssociateSets<Desc>
    • addSource

      public void addSource​(Desc description, double pixelX, double pixelY, int set)
      Adds a new descriptor and its set to the list. The order that descriptors are added is important and saved.
    • addDestination

      public void addDestination​(Desc description, double pixelX, double pixelY, int set)
      Adds a new descriptor and its set to the list. The order that descriptors are added is important and saved.
    • 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.