Class Erode

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

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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ChildCacheName
    Provides a unique name for caching the eroded object.
    protected CalculationPart<ObjectMask, FeatureInputSingleObject>
    createCachedCalculationForDerived(CalculationPartResolver<FeatureInputSingleObject> session)
    Creates a CalculationPart for eroding the object mask.
    int
    The number of iterations to perform the erosion operation.
    boolean
    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

    • Erode

      public Erode()
  • Method Details

    • createCachedCalculationForDerived

      protected CalculationPart<ObjectMask, FeatureInputSingleObject> createCachedCalculationForDerived(CalculationPartResolver<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 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.