Class FeatureInputMarkCollection
Object
FeatureInputMarkCollection
- All Implemented Interfaces:
FeatureInput,FeatureInputWithResolution
Feature input that contains a collection of marks and optional dimensions.
This class implements FeatureInputWithResolution to provide resolution information if
available from the dimensions.
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureInputMarkCollection(MarkCollection marks, Optional<Dimensions> dimensions) Creates a newFeatureInputMarkCollectioninstance. -
Method Summary
Modifier and TypeMethodDescriptionGets the optional dimensions associated with the mark collection.getMarks()The collection of marks.The resolution of the associated image, if it is available.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.anchoranalysis.feature.input.FeatureInputWithResolution
getResolutionRequired
-
Constructor Details
-
FeatureInputMarkCollection
Creates a newFeatureInputMarkCollectioninstance.- Parameters:
marks- The collection of marks.dimensions- Optional dimensions associated with the mark collection.
-
-
Method Details
-
getResolutionOptional
Description copied from interface:FeatureInputWithResolutionThe resolution of the associated image, if it is available.- Specified by:
getResolutionOptionalin interfaceFeatureInputWithResolution- Returns:
- the resolution, if it is available.
-
dimensions
Gets the optional dimensions associated with the mark collection.- Returns:
- an
Optionalcontaining theDimensionsif present, or empty if not available
-
getMarks
The collection of marks.
-