Class FeatureEvaluator<T extends FeatureInput>
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,FeatureRelatedInitialization>
org.anchoranalysis.feature.bean.FeatureRelatedBean<FeatureEvaluator<T>>
org.anchoranalysis.image.feature.bean.evaluator.FeatureEvaluator<T>
- Type Parameters:
T- feature input-type
public class FeatureEvaluator<T extends FeatureInput> extends FeatureRelatedBean<FeatureEvaluator<T>>
Defines a feature and provides a means to calculate inputs for it, a session.
Optionally, an energy stack can be associated with these inputs.
-
Constructor Summary
Constructors Constructor Description FeatureEvaluator() -
Method Summary
Modifier and Type Method Description voidcheckMisconfigured(BeanInstanceMap defaultInstances)FeatureCalculatorSingle<T>createFeatureSession()Creates session for evaluatingfeatureoptionally adding an energy-stack.Optional<EnergyStack>energyStack()The specified energy stack.DictionaryProvidergetDictionary()Parameters to optionally associated withstackEnergy, and meaningless ifstackEnergyis not specified.Feature<T>getFeature()The single feature that will be calculated (possibly repeatedly) in the session.FeatureProvider<T>getFeatureProvider()The single feature that will be calculated (possibly repeatedly) in the sessionProvider<Stack>getStackEnergy()Optionally specifies an energy-stack to be associated with every calculation input.voidsetDictionary(DictionaryProvider dictionary)Parameters to optionally associated withstackEnergy, and meaningless ifstackEnergyis not specified.voidsetFeature(Feature<T> feature)The single feature that will be calculated (possibly repeatedly) in the session.voidsetFeatureProvider(FeatureProvider<T> featureProvider)The single feature that will be calculated (possibly repeatedly) in the sessionvoidsetStackEnergy(Provider<Stack> stackEnergy)Optionally specifies an energy-stack to be associated with every calculation input.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FeatureEvaluator
public FeatureEvaluator()
-
-
Method Details
-
checkMisconfigured
- Overrides:
checkMisconfiguredin classAnchorBean<FeatureEvaluator<T extends FeatureInput>>- Throws:
BeanMisconfiguredException
-
createFeatureSession
Creates session for evaluatingfeatureoptionally adding an energy-stack.- Returns:
- the calculator for a newly created session.
- Throws:
OperationFailedException- if the session creation fails
-
energyStack
The specified energy stack.- Returns:
- the energy stack if it is specified.
- Throws:
OperationFailedException- if the energy-stack is specified but cannot be created.
-
getFeature
The single feature that will be calculated (possibly repeatedly) in the session.Either this field must be set or
featureProvider, but not both. -
setFeature
The single feature that will be calculated (possibly repeatedly) in the session.Either this field must be set or
featureProvider, but not both. -
getFeatureProvider
The single feature that will be calculated (possibly repeatedly) in the sessionEither this field must be set or
feature, but not both. -
setFeatureProvider
The single feature that will be calculated (possibly repeatedly) in the sessionEither this field must be set or
feature, but not both. -
getStackEnergy
Optionally specifies an energy-stack to be associated with every calculation input. -
setStackEnergy
Optionally specifies an energy-stack to be associated with every calculation input. -
getDictionary
Parameters to optionally associated withstackEnergy, and meaningless ifstackEnergyis not specified. -
setDictionary
Parameters to optionally associated withstackEnergy, and meaningless ifstackEnergyis not specified.
-