Interface FeatureTableCalculator<T extends FeatureInput>
- Type Parameters:
T
- the type of feature input
- All Superinterfaces:
FeatureCalculatorMulti<T>
- All Known Implementing Classes:
PairsTableCalculator
,SingleTableCalculator
A feature-calculator with additional functions for encoding the output in a tabular format with
column names.
This interface extends FeatureCalculatorMulti to provide methods for initializing, duplicating, and naming features in a tabular structure.
- Author:
- Owen Feehan
-
Method Summary
Modifier and TypeMethodDescriptionCreates a list of names for each feature (columns of the table).Makes a copy of the feature-store for a new thread.void
start
(ImageInitialization initialization, Optional<EnergyStack> energyStack, Logger logger) Initializes a feature store that has the same structure as that previously created by createFeatures() from the same object.Methods inherited from interface org.anchoranalysis.feature.calculate.bound.FeatureCalculatorMulti
calculate, calculate, calculate, calculateSuppressErrors, sizeFeatures
-
Method Details
-
start
void start(ImageInitialization initialization, Optional<EnergyStack> energyStack, Logger logger) throws InitializeException Initializes a feature store that has the same structure as that previously created by createFeatures() from the same object.- Parameters:
initialization
- the image initialization contextenergyStack
- an optional energy stack for feature calculationlogger
- a logger for reporting initialization progress or errors- Throws:
InitializeException
- if initialization fails
-
duplicateForNewThread
FeatureTableCalculator<T> duplicateForNewThread()Makes a copy of the feature-store for a new thread.Deep-copies the features. Shallow-copies everything else.
- Returns:
- the copied feature-store
-
createFeatureNames
FeatureNameList createFeatureNames()Creates a list of names for each feature (columns of the table).- Returns:
- the list of feature names
-