Class ObjectCollectionProviderWithFeature

Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
ObjectCollectionProviderUnary
ObjectCollectionProviderWithFeature
All Implemented Interfaces:
Provider<ObjectCollection>
Direct Known Subclasses:
ObjectWithMaximumFeature, ObjectWithMaximumFeatureFromEachMatchedCollection, SortByFeature

public abstract class ObjectCollectionProviderWithFeature extends ObjectCollectionProviderUnary
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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected FeatureCalculatorSingle<FeatureInputSingleObject>
    Creates a feature calculation session for single objects.
    FeatureEvaluator<FeatureInputSingleObject>
    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

    Methods inherited from class java.lang.Object

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

    • ObjectCollectionProviderWithFeature

      public ObjectCollectionProviderWithFeature()
  • Method Details

    • createSession

      protected FeatureCalculatorSingle<FeatureInputSingleObject> createSession() throws ProvisionFailedException
      Creates a feature calculation session for single objects.
      Returns:
      a FeatureCalculatorSingle for FeatureInputSingleObject
      Throws:
      ProvisionFailedException - if the feature session creation fails
    • getFeatureEvaluator

      public FeatureEvaluator<FeatureInputSingleObject> getFeatureEvaluator()
      The feature evaluator used to calculate features for single objects.
    • setFeatureEvaluator

      public void setFeatureEvaluator(FeatureEvaluator<FeatureInputSingleObject> featureEvaluator)
      The feature evaluator used to calculate features for single objects.