Class AbstractFeatureWrapper<E>
- java.lang.Object
-
- science.aist.imaging.api.domain.wrapper.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
-
-
Field Summary
Fields Modifier and Type Field Description protected Collection<E>
features
-
Constructor Summary
Constructors Constructor Description AbstractFeatureWrapper(Collection<E> features)
Constructor for construction a FeatureWrapper of given Collection
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFeature(E feature)
Method for adding a new feature.Collection<E>
getFeatures()
Getter for the contained features which represents the features.void
removeFeature(E feature)
Method for removing a feature.void
setFeatures(Collection<E> collection)
Setter for the contained features which represents the features.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface science.aist.imaging.api.domain.wrapper.FeatureWrapper
getTransformedFeatures
-
-
-
-
Field Detail
-
features
protected Collection<E> features
-
-
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 interfaceFeatureWrapper<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 interfaceFeatureWrapper<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 interfaceFeatureWrapper<E>
- Parameters:
feature
- Feature which should be added.
-
removeFeature
public void removeFeature(E feature)
Method for removing a feature.- Specified by:
removeFeature
in interfaceFeatureWrapper<E>
- Parameters:
feature
- Feature which should be removed.
-
-