Class AbstractFeatureWrapper<E>

  • All Implemented Interfaces:
    FeatureWrapper<E>
    Direct Known Subclasses:
    OpenCVFeatureWrapper

    public abstract class AbstractFeatureWrapper<E>
    extends Object
    implements FeatureWrapper<E>

    Class for holding a features of unique and prominent information (for example of points).

    Since:
    1.0
    Author:
    Christoph Praschl
    • Constructor Detail

      • AbstractFeatureWrapper

        public AbstractFeatureWrapper​(Collection<E> features)
        Constructor for construction a FeatureWrapper of given Collection
        Parameters:
        features - collection which contains all features
    • Method Detail

      • getFeatures

        public Collection<E> getFeatures()
        Getter for the contained features which represents the features.
        Specified by:
        getFeatures in interface FeatureWrapper<E>
        Returns:
        The collections of unique and prominent information
      • setFeatures

        public void setFeatures​(Collection<E> collection)
        Setter for the contained features which represents the features.
        Specified by:
        setFeatures in interface FeatureWrapper<E>
        Parameters:
        collection - The collections of unique and prominent information
      • addFeature

        public void addFeature​(E feature)
        Method for adding a new feature.
        Specified by:
        addFeature in interface FeatureWrapper<E>
        Parameters:
        feature - Feature which should be added.
      • removeFeature

        public void removeFeature​(E feature)
        Method for removing a feature.
        Specified by:
        removeFeature in interface FeatureWrapper<E>
        Parameters:
        feature - Feature which should be removed.