Class FeatureInputHistogram

Object
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 Details

    • FeatureInputHistogram

      public FeatureInputHistogram(Histogram histogram, Optional<Resolution> resolution)
      Creates a new FeatureInputHistogram instance.
      Parameters:
      histogram - The histogram associated with this feature input.
      resolution - Optional resolution information for the histogram.
  • Method Details

    • getResolutionOptional

      public Optional<Resolution> getResolutionOptional()
      Gets the optional resolution information.
      Specified by:
      getResolutionOptional in interface FeatureInputWithResolution
      Returns:
      An Optional containing the Resolution if available, or an empty Optional if not.
    • getHistogram

      public Histogram getHistogram()
      The histogram associated with this feature input.