Class ObjectCollectionProviderWithFeature
Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider,ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
ObjectCollectionProviderUnary
ObjectCollectionProviderWithFeature
- All Implemented Interfaces:
Provider<ObjectCollection>
- Direct Known Subclasses:
ObjectWithMaximumFeature
,ObjectWithMaximumFeatureFromEachMatchedCollection
,SortByFeature
An abstract base class for object collection providers that use a feature evaluator.
This class extends ObjectCollectionProviderUnary
and provides functionality for
creating object collections based on feature evaluation of single objects.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FeatureCalculatorSingle
<FeatureInputSingleObject> Creates a feature calculation session for single objects.The feature evaluator used to calculate features for single objects.void
setFeatureEvaluator
(FeatureEvaluator<FeatureInputSingleObject> featureEvaluator) The feature evaluator used to calculate features for single objects.Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
createFromObjects, get, getObjects, setObjects
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
ObjectCollectionProviderWithFeature
public ObjectCollectionProviderWithFeature()
-
-
Method Details
-
createSession
protected FeatureCalculatorSingle<FeatureInputSingleObject> createSession() throws ProvisionFailedExceptionCreates a feature calculation session for single objects.- Returns:
- a
FeatureCalculatorSingle
forFeatureInputSingleObject
- Throws:
ProvisionFailedException
- if the feature session creation fails
-
getFeatureEvaluator
The feature evaluator used to calculate features for single objects. -
setFeatureEvaluator
The feature evaluator used to calculate features for single objects.
-