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.ChildCacheNamecacheName()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 aCalculationPartfor eroding the object mask.intgetIterations()The 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, isInitialized
-
Constructor Details
-
Erode
public Erode()
-
-
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 aCalculationPartfor eroding the object mask.- Specified by:
createCachedCalculationForDerivedin classDerivedObject- Parameters:
session- theCalculationPartResolverfor resolving calculation parts- Returns:
- a
CalculationPartthat erodes anObjectMask
-
cacheName
public org.anchoranalysis.feature.calculate.cache.ChildCacheName 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.
-