Class OpenCVFeatureWrapper

  • All Implemented Interfaces:
    FeatureWrapper<org.opencv.core.KeyPoint>

    public class OpenCVFeatureWrapper
    extends AbstractFeatureWrapper<org.opencv.core.KeyPoint>

    Implementation of the FeatureWrapper Interface for opencv

    Since:
    1.0
    Author:
    Christoph Praschl
    • Constructor Detail

      • OpenCVFeatureWrapper

        public OpenCVFeatureWrapper​(Collection<org.opencv.core.KeyPoint> collection)
        Constructor for construction a FeatureWrapper of given Collection
        Parameters:
        collection - features which contains all features
    • Method Detail

      • getTransformedFeatures

        public Collection<org.opencv.core.KeyPoint> 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.