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 Type
    Method
    Description
    ObjectCollection
    createFromObjects(ObjectCollection objects)
     
    ObjectMatcher
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • ObjectWithMaximumFeatureFromEachMatchedCollection

      public ObjectWithMaximumFeatureFromEachMatchedCollection()
  • Method Details

    • createFromObjects

      public ObjectCollection createFromObjects(ObjectCollection objects) throws ProvisionFailedException
      Specified by:
      createFromObjects in class ObjectCollectionProviderUnary
      Throws:
      ProvisionFailedException
    • getMatcher

      public ObjectMatcher getMatcher()
    • setMatcher

      public void setMatcher(ObjectMatcher matcher)