Class FeatureCalculatorFromProvider<T extends FeatureInputEnergy>

Object
FeatureCalculatorFromProvider<T>
Type Parameters:
T - feature-input-type extending FeatureInputEnergy

public class FeatureCalculatorFromProvider<T extends FeatureInputEnergy> extends Object
Calculates feature or feature values.

Optionally, an energy-stack is added from either provider or the input-stack.

  • Constructor Details

    • FeatureCalculatorFromProvider

      public FeatureCalculatorFromProvider(ProvidesStackInput stackInput, Optional<StackProvider> stackEnergy, InputOutputContext context) throws OperationFailedException
      Parameters:
      stackInput - provides the input stack
      stackEnergy - optional provider for the energy stack
      context - the input-output context
      Throws:
      OperationFailedException - if the initialization or energy stack creation fails
  • Method Details

    • calculatorSingleFromProvider

      public FeatureCalculatorSingle<T> calculatorSingleFromProvider(FeatureListProvider<T> provider, String providerName) throws OperationFailedException
      Calculates a single-feature that comes from a provider (but can reference the other features from the store).
      Parameters:
      provider - the feature list provider
      providerName - the name of the provider
      Returns:
      a FeatureCalculatorSingle for the specified feature
      Throws:
      OperationFailedException - if the feature calculation fails
    • calculatorForAll

      public FeatureCalculatorMulti<T> calculatorForAll(FeatureList<T> features) throws InitializeException
      Calculates all image-features in the feature-store.
      Parameters:
      features - the list of features to calculate
      Returns:
      a FeatureCalculatorMulti for the specified features
      Throws:
      InitializeException - if the calculator initialization fails
    • getEnergyStack

      public EnergyStack getEnergyStack()
      The energy stack used for feature calculations.