Class Shell
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 -
Method Summary
Modifier and TypeMethodDescriptionProvides a unique name for caching the derived object.protected CalculationPart
<ObjectMask, FeatureInputSingleObject> Creates aCalculationPart
for deriving the object mask.The number of dilations and erosions to apply and whether to do so in the Z dimension.void
setIterations
(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, 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
-
Shell
public Shell()
-
-
Method Details
-
createCachedCalculationForDerived
protected CalculationPart<ObjectMask,FeatureInputSingleObject> createCachedCalculationForDerived(CalculationPartResolver<FeatureInputSingleObject> session) throws FeatureCalculationException Description copied from class:DerivedObject
Creates aCalculationPart
for deriving the object mask.- Specified by:
createCachedCalculationForDerived
in classDerivedObject
- Parameters:
session
- theCalculationPartResolver
for resolving calculation parts- Returns:
- a
CalculationPart
that derives anObjectMask
- Throws:
FeatureCalculationException
- if the calculation fails
-
cacheName
Description copied from class:DerivedObject
Provides a unique name for caching the derived object.- Specified by:
cacheName
in classDerivedObject
- Returns:
- a
ChildCacheName
for 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.
-