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 newFeatureInputMarkCollection
instance. -
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, wait
Methods inherited from interface org.anchoranalysis.feature.input.FeatureInputWithResolution
getResolutionRequired
-
Constructor Details
-
FeatureInputMarkCollection
Creates a newFeatureInputMarkCollection
instance.- Parameters:
marks
- The collection of marks.dimensions
- Optional dimensions associated with the mark collection.
-
-
Method Details
-
getResolutionOptional
Description copied from interface:FeatureInputWithResolution
The resolution of the associated image, if it is available.- Specified by:
getResolutionOptional
in interfaceFeatureInputWithResolution
- Returns:
- the resolution, if it is available.
-
dimensions
Gets the optional dimensions associated with the mark collection.- Returns:
- an
Optional
containing theDimensions
if present, or empty if not available
-
getMarks
The collection of marks.
-