Class Erode
A feature that erodes an object mask and then calculates another feature on the eroded object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvides a unique name for caching the eroded object.protected CalculationPart<ObjectMask, FeatureInputSingleObject> Creates aCalculationPartfor eroding the object mask.intThe number of iterations to perform the erosion operation.booleanisDo3D()If true, performs 3D erosion; if false, performs 2D erosion on each z-slice separately.voidsetDo3D(boolean do3D) If true, performs 3D erosion; if false, performs 2D erosion on each z-slice separately.voidsetIterations(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, setItemMethods inherited from class org.anchoranalysis.image.feature.bean.object.single.FeatureSingleObject
inputTypeMethods inherited from class org.anchoranalysis.feature.bean.Feature
assignTo, beforeCalc, calculateCheckInitialized, castAs, createListChildFeatures, describeBean, describeParameters, descriptionLong, duplicateChangeName, getCustomName, getFriendlyName, onInitialization, setCustomName, toStringMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitializedMethods inherited from class org.anchoranalysis.bean.AnchorBean
checkMisconfigured, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise
-
Constructor Details
-
Erode
public Erode()
-
-
Method Details
-
createCachedCalculationForDerived
protected CalculationPart<ObjectMask,FeatureInputSingleObject> createCachedCalculationForDerived(CalculationPartResolver<FeatureInputSingleObject> session) Creates aCalculationPartfor eroding the object mask.- Specified by:
createCachedCalculationForDerivedin classDerivedObject- Parameters:
session- theCalculationPartResolverfor resolving calculation parts- Returns:
- a
CalculationPartthat erodes anObjectMask
-
cacheName
Provides a unique name for caching the eroded object.- Specified by:
cacheNamein classDerivedObject- Returns:
- a
ChildCacheNamefor 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.
-