Class Erode
- All Implemented Interfaces:
Provider<ObjectCollection>
Erodes each object in the collection, growing bounding-boxes as necessary in relevant dimensions.
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectMask
applyMorphologicalOperation
(ObjectMask object, Optional<Extent> extent) Applies the morphological operation to a singleObjectMask
.void
checkMisconfigured
(BeanInstanceMap defaultInstances) Checks that a bean's properties conform to expectations.boolean
boolean
void
setRejectIterationIfAllLow
(boolean rejectIterationIfAllLow) void
setRejectIterationIfDisconnected
(boolean rejectIterationIfDisconnected) Methods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.morphological.ObjectCollectionProviderMorphological
createFromObjects, deriveExtent, getIterations, isDo3D, setDo3D, setIterations
Methods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.WithOptionalDimensionsBase
createDims, getDimensions, setDimensions
Methods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
get, getObjects, setObjects
Methods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitialization
Methods inherited from class org.anchoranalysis.bean.AnchorBean
describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
-
Constructor Details
-
Erode
public Erode()
-
-
Method Details
-
checkMisconfigured
Description copied from class:AnchorBean
Checks that a bean's properties conform to expectations.- Overrides:
checkMisconfigured
in classAnchorBean<ObjectCollectionProvider>
- Parameters:
defaultInstances
- all available default instances if theDefaultInstance
annotation is used- Throws:
BeanMisconfiguredException
- if the bean has not been configured properly as XML
-
applyMorphologicalOperation
protected ObjectMask applyMorphologicalOperation(ObjectMask object, Optional<Extent> extent) throws ProvisionFailedException Description copied from class:ObjectCollectionProviderMorphological
Applies the morphological operation to a singleObjectMask
.- Specified by:
applyMorphologicalOperation
in classObjectCollectionProviderMorphological
- Parameters:
object
- the object to apply the operation toextent
- optional extent to constrain the operation- Returns:
- the resulting object after applying the operation
- Throws:
ProvisionFailedException
- if the operation fails
-
isRejectIterationIfAllLow
public boolean isRejectIterationIfAllLow() -
setRejectIterationIfAllLow
public void setRejectIterationIfAllLow(boolean rejectIterationIfAllLow) -
isRejectIterationIfDisconnected
public boolean isRejectIterationIfDisconnected() -
setRejectIterationIfDisconnected
public void setRejectIterationIfDisconnected(boolean rejectIterationIfDisconnected)
-