Class Shell

Object
org.anchoranalysis.bean.AnchorBean<B>
org.anchoranalysis.bean.initializable.InitializableBean<org.anchoranalysis.feature.bean.Feature<T>,​org.anchoranalysis.feature.initialization.FeatureInitialization>
org.anchoranalysis.feature.bean.Feature<org.anchoranalysis.image.feature.input.FeatureInputSingleObject>
org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
org.anchoranalysis.plugin.image.feature.bean.object.single.morphological.DerivedObject
org.anchoranalysis.plugin.image.feature.bean.object.single.morphological.Shell

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
    Shell()  
  • Method Summary

    Modifier and Type Method Description
    org.anchoranalysis.feature.calculate.cache.ChildCacheName cacheName()
    Provides a unique name for caching the derived object.
    protected org.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.image.voxel.object.ObjectMask,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject> createCachedCalculationForDerived​(org.anchoranalysis.feature.calculate.part.CalculationPartResolver<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> session)
    Creates a CalculationPart for deriving the object mask.
    MorphologicalIterations getIterations()
    The number of dilations and erosions to apply and whether to do so in the Z dimension.
    void setIterations​(MorphologicalIterations iterations)
    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

  • Method Details

    • createCachedCalculationForDerived

      protected org.anchoranalysis.feature.calculate.part.CalculationPart<org.anchoranalysis.image.voxel.object.ObjectMask,​org.anchoranalysis.image.feature.input.FeatureInputSingleObject> createCachedCalculationForDerived​(org.anchoranalysis.feature.calculate.part.CalculationPartResolver<org.anchoranalysis.image.feature.input.FeatureInputSingleObject> session) throws org.anchoranalysis.feature.calculate.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:
      org.anchoranalysis.feature.calculate.FeatureCalculationException - if the calculation fails
    • cacheName

      public org.anchoranalysis.feature.calculate.cache.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.