Class FeatureCalculatorFromProvider<T extends org.anchoranalysis.feature.input.FeatureInputEnergy>

Object
org.anchoranalysis.plugin.image.task.feature.calculator.FeatureCalculatorFromProvider<T>
Type Parameters:
T - feature-input-type extending FeatureInputEnergy

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

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

  • Constructor Summary

    Constructors 
    Constructor Description
    FeatureCalculatorFromProvider​(org.anchoranalysis.image.io.stack.input.ProvidesStackInput stackInput, Optional<org.anchoranalysis.image.bean.provider.stack.StackProvider> stackEnergy, org.anchoranalysis.io.output.outputter.InputOutputContext context)
  • Method Summary

    Modifier and Type Method Description
    org.anchoranalysis.feature.calculate.bound.FeatureCalculatorMulti<T> calculatorForAll​(org.anchoranalysis.feature.bean.list.FeatureList<T> features)
    Calculates all image-features in the feature-store.
    org.anchoranalysis.feature.calculate.bound.FeatureCalculatorSingle<T> calculatorSingleFromProvider​(org.anchoranalysis.feature.bean.list.FeatureListProvider<T> provider, String providerName)
    Calculates a single-feature that comes from a provider (but can reference the other features from the store).
    org.anchoranalysis.feature.energy.EnergyStack getEnergyStack()
    The energy stack used for feature calculations.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FeatureCalculatorFromProvider

      public FeatureCalculatorFromProvider​(org.anchoranalysis.image.io.stack.input.ProvidesStackInput stackInput, Optional<org.anchoranalysis.image.bean.provider.stack.StackProvider> stackEnergy, org.anchoranalysis.io.output.outputter.InputOutputContext context) throws org.anchoranalysis.core.exception.OperationFailedException
      Parameters:
      stackInput - provides the input stack
      stackEnergy - optional provider for the energy stack
      context - the input-output context
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException - if the initialization or energy stack creation fails
  • Method Details

    • calculatorSingleFromProvider

      public org.anchoranalysis.feature.calculate.bound.FeatureCalculatorSingle<T> calculatorSingleFromProvider​(org.anchoranalysis.feature.bean.list.FeatureListProvider<T> provider, String providerName) throws org.anchoranalysis.core.exception.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:
      org.anchoranalysis.core.exception.OperationFailedException - if the feature calculation fails
    • calculatorForAll

      public org.anchoranalysis.feature.calculate.bound.FeatureCalculatorMulti<T> calculatorForAll​(org.anchoranalysis.feature.bean.list.FeatureList<T> features) throws org.anchoranalysis.core.exception.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:
      org.anchoranalysis.core.exception.InitializeException - if the calculator initialization fails
    • getEnergyStack

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