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 Summary
Constructors Constructor Description CalculateFeaturesForObjects(CombineObjectsForFeatures<T> table, InitializationWithEnergyStack initialization, boolean suppressErrors, FeatureCalculationContext<org.anchoranalysis.image.feature.calculator.FeatureTableCalculator<T>> context)Creates a newCalculateFeaturesForObjects. -
Method Summary
Modifier and Type Method Description voidcalculateForObjects(org.anchoranalysis.image.bean.provider.ObjectCollectionProvider provider, LabelsForInput labelsForInput)Calculates features for objects provided by aObjectCollectionProvider.voidcalculateForObjects(org.anchoranalysis.image.voxel.object.ObjectCollection objects, org.anchoranalysis.feature.energy.EnergyStack energyStack, LabelsForInput labelsForInput)Calculates the feature-results forobjects, 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.OperationFailedExceptionCreates a newCalculateFeaturesForObjects.- Parameters:
table- combines objects for feature calculationinitialization- initialization with energy stacksuppressErrors- if true, errors are suppressed and loggedcontext- 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.OperationFailedExceptionCalculates features for objects provided by aObjectCollectionProvider.- Parameters:
provider- provides the object collectionlabelsForInput- 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.OperationFailedExceptionCalculates the feature-results forobjects, and stores the results.- Parameters:
objects- the objects to calculate features forenergyStack- the energy-stacklabelsForInput- 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
-