Class OpenCVFeatureWrapper
- java.lang.Object
-
- science.aist.imaging.api.domain.wrapper.AbstractFeatureWrapper<org.opencv.core.KeyPoint>
-
- science.aist.imaging.opencv.imageprocessing.wrapper.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
-
-
Field Summary
-
Fields inherited from class science.aist.imaging.api.domain.wrapper.AbstractFeatureWrapper
features
-
-
Constructor Summary
Constructors Constructor Description OpenCVFeatureWrapper(Collection<org.opencv.core.KeyPoint> collection)
Constructor for construction a FeatureWrapper of given Collection
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<org.opencv.core.KeyPoint>
getTransformedFeatures(double imageWidth, double imageHeight, double xOffset, double yOffset, double rotationalOffset)
Method for transforming the contained feature points-
Methods inherited from class science.aist.imaging.api.domain.wrapper.AbstractFeatureWrapper
addFeature, getFeatures, removeFeature, setFeatures
-
-
-
-
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-axisyOffset
- The offset on the y-axisrotationalOffset
- The rotational offset.- Returns:
- A collection of elements with features.
-
-