Class Erode

Object
AnchorBean<ObjectCollectionProvider>
InitializableBean<ObjectCollectionProvider, ImageInitialization>
ImageBean<ObjectCollectionProvider>
ObjectCollectionProvider
All Implemented Interfaces:
Provider<ObjectCollection>

public class Erode extends ObjectCollectionProviderMorphological
Erodes each object in the collection, growing bounding-boxes as necessary in relevant dimensions.
Author:
Owen Feehan
  • Constructor Details

    • Erode

      public Erode()
  • Method Details

    • checkMisconfigured

      public void checkMisconfigured(BeanInstanceMap defaultInstances) throws BeanMisconfiguredException
      Overrides:
      checkMisconfigured in class AnchorBean<ObjectCollectionProvider>
      Throws:
      BeanMisconfiguredException
    • applyMorphologicalOperation

      protected ObjectMask applyMorphologicalOperation(ObjectMask object, Optional<Extent> extent) throws ProvisionFailedException
      Description copied from class: ObjectCollectionProviderMorphological
      Applies the morphological operation to a single ObjectMask.
      Specified by:
      applyMorphologicalOperation in class ObjectCollectionProviderMorphological
      Parameters:
      object - the object to apply the operation to
      extent - 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)