Class CalculateFeaturesForObjects<T extends org.anchoranalysis.feature.input.FeatureInput>

Object
org.anchoranalysis.plugin.image.task.feature.calculator.CalculateFeaturesForObjects<T>
Type Parameters:
T - the type of feature input

public class CalculateFeaturesForObjects<T extends org.anchoranalysis.feature.input.FeatureInput>
extends Object
Calculates features for objects and stores the results.
  • Constructor Details

    • CalculateFeaturesForObjects

      public CalculateFeaturesForObjects​(CombineObjectsForFeatures<T> table, InitializationWithEnergyStack initialization, boolean suppressErrors, FeatureCalculationContext<org.anchoranalysis.image.feature.calculator.FeatureTableCalculator<T>> context) throws org.anchoranalysis.core.exception.OperationFailedException
      Parameters:
      table - combines objects for feature calculation
      initialization - initialization with energy stack
      suppressErrors - if true, errors are suppressed and logged
      context - context for feature calculation
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException - if the calculator cannot be started
  • Method Details

    • calculateForObjects

      public void calculateForObjects​(org.anchoranalysis.image.bean.provider.ObjectCollectionProvider provider, LabelsForInput labelsForInput) throws org.anchoranalysis.core.exception.OperationFailedException
      Calculates features for objects provided by a ObjectCollectionProvider.
      Parameters:
      provider - provides the object collection
      labelsForInput - how to assign labels to the input
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException - if the operation fails
    • calculateForObjects

      public void calculateForObjects​(org.anchoranalysis.image.voxel.object.ObjectCollection objects, org.anchoranalysis.feature.energy.EnergyStack energyStack, LabelsForInput labelsForInput) throws org.anchoranalysis.core.exception.OperationFailedException
      Calculates the feature-results for objects, and stores the results.
      Parameters:
      objects - the objects to calculate features for
      energyStack - the energy-stack
      labelsForInput - how to assign labels to the input
      Throws:
      org.anchoranalysis.core.exception.OperationFailedException - if the operation cannot be completed, but not if a particular feature calculation fails