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 aCalculationPart
for eroding the object mask.int
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
-
Constructor Details
-
Erode
public Erode()
-
-
Method Details
-
createCachedCalculationForDerived
protected CalculationPart<ObjectMask,FeatureInputSingleObject> createCachedCalculationForDerived(CalculationPartResolver<FeatureInputSingleObject> session) Creates aCalculationPart
for eroding the object mask.- Specified by:
createCachedCalculationForDerived
in classDerivedObject
- Parameters:
session
- theCalculationPartResolver
for resolving calculation parts- Returns:
- a
CalculationPart
that erodes anObjectMask
-
cacheName
Provides a unique name for caching the eroded object.- Specified by:
cacheName
in classDerivedObject
- 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.
-