Class FeatureInputHistogram
Object
org.anchoranalysis.image.feature.input.FeatureInputHistogram
- All Implemented Interfaces:
FeatureInput,FeatureInputWithResolution
public class FeatureInputHistogram extends Object implements 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
Constructors Constructor Description FeatureInputHistogram(org.anchoranalysis.math.histogram.Histogram histogram, Optional<Resolution> resolution) -
Method Summary
Modifier and Type Method Description org.anchoranalysis.math.histogram.HistogramgetHistogram()The histogram associated with this feature input.Optional<Resolution>getResolutionOptional()Gets the optional resolution information.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
-
FeatureInputHistogram
public FeatureInputHistogram(org.anchoranalysis.math.histogram.Histogram histogram, Optional<Resolution> resolution)
-
-
Method Details
-
getResolutionOptional
Gets the optional resolution information.- Specified by:
getResolutionOptionalin interfaceFeatureInputWithResolution- Returns:
- An Optional containing the Resolution if available, or an empty Optional if not.
-
getHistogram
public org.anchoranalysis.math.histogram.Histogram getHistogram()The histogram associated with this feature input.
-