Class FeatureCalculatorFromProvider<T extends FeatureInputEnergy>
Object
FeatureCalculatorFromProvider<T>
- Type Parameters:
T
- feature-input-type extendingFeatureInputEnergy
Calculates feature or feature values.
Optionally, an energy-stack is added from either provider or the input-stack.
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureCalculatorFromProvider
(ProvidesStackInput stackInput, Optional<StackProvider> stackEnergy, InputOutputContext context) Creates a newFeatureCalculatorFromProvider
. -
Method Summary
Modifier and TypeMethodDescriptioncalculatorForAll
(FeatureList<T> features) Calculates all image-features in the feature-store.calculatorSingleFromProvider
(FeatureListProvider<T> provider, String providerName) Calculates a single-feature that comes from a provider (but can reference the other features from the store).The energy stack used for feature calculations.
-
Constructor Details
-
FeatureCalculatorFromProvider
public FeatureCalculatorFromProvider(ProvidesStackInput stackInput, Optional<StackProvider> stackEnergy, InputOutputContext context) throws OperationFailedException Creates a newFeatureCalculatorFromProvider
.- Parameters:
stackInput
- provides the input stackstackEnergy
- optional provider for the energy stackcontext
- 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 providerproviderName
- 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
The energy stack used for feature calculations.
-