Class ObjectWithMaximumFeatureFromEachMatchedCollection
Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider,ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
ObjectCollectionProviderUnary
ObjectCollectionProviderWithFeature
ObjectWithMaximumFeatureFromEachMatchedCollection
- All Implemented Interfaces:
Provider<ObjectCollection>
public class ObjectWithMaximumFeatureFromEachMatchedCollection
extends ObjectCollectionProviderWithFeature
Finds the object with the maximum feature among a group of matches for each object.
Specifically, for each object in the upstream collection, matches are found, and the object from those matches with the highest feature value is selected for inclusion in the newly created collection.
If every object has at least one match, the newly created collection will have as many elements as the upstream collection.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateFromObjects
(ObjectCollection objects) Creates aObjectCollection
given the entity provided by the delegate.void
setMatcher
(ObjectMatcher matcher) Methods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.feature.ObjectCollectionProviderWithFeature
createSession, getFeatureEvaluator, setFeatureEvaluator
Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
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
-
ObjectWithMaximumFeatureFromEachMatchedCollection
public ObjectWithMaximumFeatureFromEachMatchedCollection()
-
-
Method Details
-
createFromObjects
Description copied from class:ObjectCollectionProviderUnary
Creates aObjectCollection
given the entity provided by the delegate.- Specified by:
createFromObjects
in classObjectCollectionProviderUnary
- Parameters:
objects
- the entity provided by the delegate.- Returns:
- the created
ObjectCollection
that is returned by the provider. - Throws:
ProvisionFailedException
- if the provider cannot complete successfully.
-
getMatcher
-
setMatcher
-