Class Shell

Object
AnchorBean<Feature<FeatureInputSingleObject>>
InitializableBean<Feature<FeatureInputSingleObject>, FeatureInitialization>
Feature<FeatureInputSingleObject>
FeatureSingleObject

public class Shell extends DerivedObject
Creates a shell around an ObjectMask by applying morphological operations.

The shell is created by performing a series of dilations and erosions on the input object, as specified by the MorphologicalIterations parameter.

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ChildCacheName
    Provides a unique name for caching the derived object.
    protected CalculationPart<ObjectMask, FeatureInputSingleObject>
    createCachedCalculationForDerived(CalculationPartResolver<FeatureInputSingleObject> session)
    Creates a CalculationPart for deriving the object mask.
    The number of dilations and erosions to apply and whether to do so in the Z dimension.
    void
    The number of dilations and erosions to apply and whether to do so in the Z dimension.

    Methods inherited from class org.anchoranalysis.plugin.image.feature.bean.object.single.morphological.DerivedObject

    calculate, getEmptyValue, getItem, setEmptyValue, setItem

    Methods inherited from class org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject

    inputType

    Methods inherited from class org.anchoranalysis.feature.bean.Feature

    assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toString

    Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean

    getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized

    Methods inherited from class org.anchoranalysis.bean.AnchorBean

    checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise

    Methods inherited from class java.lang.Object

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

    • Shell

      public Shell()
  • Method Details

    • createCachedCalculationForDerived

      protected CalculationPart<ObjectMask, FeatureInputSingleObject> createCachedCalculationForDerived(CalculationPartResolver<FeatureInputSingleObject> session) throws FeatureCalculationException
      Description copied from class: DerivedObject
      Creates a CalculationPart for deriving the object mask.
      Specified by:
      createCachedCalculationForDerived in class DerivedObject
      Parameters:
      session - the CalculationPartResolver for resolving calculation parts
      Returns:
      a CalculationPart that derives an ObjectMask
      Throws:
      FeatureCalculationException - if the calculation fails
    • cacheName

      public ChildCacheName cacheName()
      Description copied from class: DerivedObject
      Provides a unique name for caching the derived object.
      Specified by:
      cacheName in class DerivedObject
      Returns:
      a ChildCacheName for caching the derived object
    • getIterations

      public MorphologicalIterations getIterations()
      The number of dilations and erosions to apply and whether to do so in the Z dimension.
    • setIterations

      public void setIterations(MorphologicalIterations iterations)
      The number of dilations and erosions to apply and whether to do so in the Z dimension.