Interface FeatureWrapper<E>

  • Type Parameters:
    E - element which is contained in features
    All Known Implementing Classes:
    AbstractFeatureWrapper, OpenCVFeatureWrapper

    public interface FeatureWrapper<E>

    Interface for providing/saving unique and prominent information.

    Since:
    1.0
    Author:
    Christoph Praschl
    • Method Detail

      • getFeatures

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

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

        void addFeature​(E feature)
        Method for adding a new feature.
        Parameters:
        feature - Feature which should be added.
      • removeFeature

        void removeFeature​(E feature)
        Method for removing a feature.
        Parameters:
        feature - Feature which should be removed.
      • getTransformedFeatures

        Collection<E> getTransformedFeatures​(double imageWidth,
                                             double imageHeight,
                                             double xOffset,
                                             double yOffset,
                                             double rotationalOffset)
        Method for transforming the contained feature points
        Parameters:
        imageHeight - The height of the image from which the features were extracted.
        imageWidth - The width of the image from which the features were extracted.
        xOffset - The offset on the x-axis
        yOffset - The offset on the y-axis
        rotationalOffset - The rotational offset.
        Returns:
        A collection of elements with features.