Class FeatureInputHistogram
Object
FeatureInputHistogram
- All Implemented Interfaces:
FeatureInput
,FeatureInputWithResolution
A feature input that contains a histogram and optional resolution information.
This class implements FeatureInputWithResolution, allowing it to be used in feature calculations that require resolution information.
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureInputHistogram
(Histogram histogram, Optional<Resolution> resolution) Creates a newFeatureInputHistogram
instance. -
Method Summary
Modifier and TypeMethodDescriptionThe histogram associated with this feature input.Gets the optional resolution information.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
-
FeatureInputHistogram
Creates a newFeatureInputHistogram
instance.- Parameters:
histogram
- The histogram associated with this feature input.resolution
- Optional resolution information for the histogram.
-
-
Method Details
-
getResolutionOptional
Gets the optional resolution information.- Specified by:
getResolutionOptional
in interfaceFeatureInputWithResolution
- Returns:
- An Optional containing the Resolution if available, or an empty Optional if not.
-
getHistogram
The histogram associated with this feature input.
-