Class FeatureListEvaluator<T extends FeatureInput>
Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<T,FeatureRelatedInitialization>
org.anchoranalysis.feature.bean.FeatureRelatedBean<FeatureListEvaluator<T>>
org.anchoranalysis.image.feature.bean.evaluator.FeatureListEvaluator<T>
- Type Parameters:
T- feature input-type
public class FeatureListEvaluator<T extends FeatureInput> extends FeatureRelatedBean<FeatureListEvaluator<T>>
Defines a list of features and provides a means to calculate inputs for it, a session.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors Constructor Description FeatureListEvaluator() -
Method Summary
Modifier and Type Method Description NamedFeatureCalculatorMulti<T>createFeatureSession(UnaryOperator<FeatureList<T>> addFeatures, SharedObjects sharedObjects)Creates session for evaluatingfeatures.List<FeatureProvider<T>>getFeatures()A list of providers, combined together to form a list of features, to be calculated in a session.voidsetFeatures(List<FeatureProvider<T>> features)A list of providers, combined together to form a list of features, to be calculated in a session.Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
FeatureListEvaluator
public FeatureListEvaluator()
-
-
Method Details
-
createFeatureSession
public NamedFeatureCalculatorMulti<T> createFeatureSession(UnaryOperator<FeatureList<T>> addFeatures, SharedObjects sharedObjects) throws OperationFailedExceptionCreates session for evaluatingfeatures.- Parameters:
addFeatures- a function to potentially add additional features to the listsharedObjects- shared objects to be used in feature initialization- Returns:
- the calculator for a newly created session
- Throws:
OperationFailedException- if the session creation fails
-
getFeatures
A list of providers, combined together to form a list of features, to be calculated in a session. -
setFeatures
A list of providers, combined together to form a list of features, to be calculated in a session.
-