Class Erode

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.Erode

public class Erode
extends DerivedObject
A feature that erodes an object mask and then calculates another feature on the eroded object.
  • Constructor Summary

    Constructors 
    Constructor Description
    Erode()  
  • Method Summary

    Modifier and Type Method Description
    org.anchoranalysis.feature.calculate.cache.ChildCacheName cacheName()
    Provides a unique name for caching the eroded 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 eroding the object mask.
    int getIterations()
    The number of iterations to perform the erosion operation.
    boolean isDo3D()
    If true, performs 3D erosion; if false, performs 2D erosion on each z-slice separately.
    void setDo3D​(boolean do3D)
    If true, performs 3D erosion; if false, performs 2D erosion on each z-slice separately.
    void setIterations​(int iterations)
    The number of iterations to perform the erosion operation.

    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)
      Creates a CalculationPart for eroding the object mask.
      Specified by:
      createCachedCalculationForDerived in class DerivedObject
      Parameters:
      session - the CalculationPartResolver for resolving calculation parts
      Returns:
      a CalculationPart that erodes an ObjectMask
    • cacheName

      public org.anchoranalysis.feature.calculate.cache.ChildCacheName cacheName()
      Provides a unique name for caching the eroded object.
      Specified by:
      cacheName in class DerivedObject
      Returns:
      a ChildCacheName for caching the eroded object
    • getIterations

      public int getIterations()
      The number of iterations to perform the erosion operation.
    • setIterations

      public void setIterations​(int iterations)
      The number of iterations to perform the erosion operation.
    • isDo3D

      public boolean isDo3D()
      If true, performs 3D erosion; if false, performs 2D erosion on each z-slice separately.
    • setDo3D

      public void setDo3D​(boolean do3D)
      If true, performs 3D erosion; if false, performs 2D erosion on each z-slice separately.