Class Shell
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.Shell
public class Shell extends DerivedObject
Creates a shell around an
ObjectMask by applying morphological operations.
The shell is created by performing a series of dilations and erosions on the input object, as
specified by the MorphologicalIterations parameter.
-
Constructor Summary
Constructors Constructor Description Shell() -
Method Summary
Modifier and Type Method Description org.anchoranalysis.feature.calculate.cache.ChildCacheNamecacheName()Provides a unique name for caching the derived 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 deriving the object mask.MorphologicalIterationsgetIterations()The number of dilations and erosions to apply and whether to do so in the Z dimension.voidsetIterations(MorphologicalIterations iterations)The number of dilations and erosions to apply and whether to do so in the Z dimension.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
-
Shell
public Shell()
-
-
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) throws org.anchoranalysis.feature.calculate.FeatureCalculationExceptionDescription copied from class:DerivedObjectCreates aCalculationPartfor deriving the object mask.- Specified by:
createCachedCalculationForDerivedin classDerivedObject- Parameters:
session- theCalculationPartResolverfor resolving calculation parts- Returns:
- a
CalculationPartthat derives anObjectMask - Throws:
org.anchoranalysis.feature.calculate.FeatureCalculationException- if the calculation fails
-
cacheName
public org.anchoranalysis.feature.calculate.cache.ChildCacheName cacheName()Description copied from class:DerivedObjectProvides a unique name for caching the derived object.- Specified by:
cacheNamein classDerivedObject- Returns:
- a
ChildCacheNamefor caching the derived object
-
getIterations
The number of dilations and erosions to apply and whether to do so in the Z dimension. -
setIterations
The number of dilations and erosions to apply and whether to do so in the Z dimension.
-