Class MorphologicalOperation

Object
AnchorBean<MaskProvider>
InitializableBean<MaskProvider, ImageInitialization>
ImageBean<MaskProvider>
BeanProviderAsStackBase<MaskProvider, Mask>
MaskProvider
MaskProviderUnary
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 Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Mask
    createFromMask(Mask mask)
     
    One of: open, close, fill, erode, dilate, skel, outline
    int
    iterations for erode, dilate, open, close
    void
    setCommand(String command)
    One of: open, close, fill, erode, dilate, skel, outline
    void
    setIterations(int iterations)
    iterations for erode, dilate, open, close

    Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProviderUnary

    get, getMask, setMask

    Methods inherited from class org.anchoranalysis.image.bean.provider.MaskProvider

    getAsStack

    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

    checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MorphologicalOperation

      public MorphologicalOperation()
  • Method Details

    • createFromMask

      public Mask createFromMask(Mask mask) throws ProvisionFailedException
      Specified by:
      createFromMask in class MaskProviderUnary
      Throws:
      ProvisionFailedException
    • 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