Class MorphologicalOperation

All Implemented Interfaces:
Provider<Mask>, ProviderAsStack

public class MorphologicalOperation extends MaskProviderUnary
Applies an ImageJ (2D) morphological operation to each slice

Note that the slices are processed independently of each other, as the procedure only supports 2D morphological operations.

Author:
Owen Feehan
  • Constructor Details

    • MorphologicalOperation

      public MorphologicalOperation()
  • Method Details

    • createFromMask

      public Mask createFromMask(Mask mask) throws ProvisionFailedException
      Description copied from class: MaskProviderUnary
      Creates a Mask given the entity provided by the delegate.
      Specified by:
      createFromMask in class MaskProviderUnary
      Parameters:
      mask - the entity provided by the delegate.
      Returns:
      the created Mask that is returned by the provider.
      Throws:
      ProvisionFailedException - if the provider cannot complete successfully.
    • getCommand

      public String getCommand()
      One of: open, close, fill, erode, dilate, skel, outline
    • setCommand

      public void setCommand(String command)
      One of: open, close, fill, erode, dilate, skel, outline
    • getIterations

      public int getIterations()
      iterations for erode, dilate, open, close
    • setIterations

      public void setIterations(int iterations)
      iterations for erode, dilate, open, close