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 ObjectMaskapplyMorphologicalOperation(ObjectMask object, Optional<Extent> extent) Applies the morphological operation to a singleObjectMask.voidcheckMisconfigured(BeanInstanceMap defaultInstances) Checks that a bean's properties conform to expectations.booleanbooleanvoidsetRejectIterationIfAllLow(boolean rejectIterationIfAllLow) voidsetRejectIterationIfDisconnected(boolean rejectIterationIfDisconnected) Methods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.morphological.ObjectCollectionProviderMorphological
createFromObjects, deriveExtent, getIterations, isDo3D, setDo3D, setIterationsMethods inherited from class org.anchoranalysis.plugin.image.bean.object.provider.WithOptionalDimensionsBase
createDims, getDimensions, setDimensionsMethods inherited from class org.anchoranalysis.image.bean.provider.ObjectCollectionProviderUnary
get, getObjects, setObjectsMethods inherited from class org.anchoranalysis.bean.initializable.InitializableBean
getInitialization, getLogger, getPropertyInitializer, initialize, initializeRecursive, initRecursiveWithInitializer, isInitialized, onInitializationMethods 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:AnchorBeanChecks that a bean's properties conform to expectations.- Overrides:
checkMisconfiguredin classAnchorBean<ObjectCollectionProvider>- Parameters:
defaultInstances- all available default instances if theDefaultInstanceannotation 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:ObjectCollectionProviderMorphologicalApplies the morphological operation to a singleObjectMask.- Specified by:
applyMorphologicalOperationin 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)
-