Class Dilate

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

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

    • Dilate

      public Dilate()
  • Method Details

    • 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
    • isBigNeighborhood

      public boolean isBigNeighborhood()
    • setBigNeighborhood

      public void setBigNeighborhood(boolean bigNeighborhood)