Class ConnectedComponentsFromMask

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

public class ConnectedComponentsFromMask extends ObjectCollectionProvider
Converts a binary-mask into its connected components
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ObjectCollection
    get()
     
    Provider<Mask>
     
    UnitValueExtent
     
    boolean
    If true uses 8 neighborhood rather than 4 neighborhood etc.
    boolean
     
    void
    setBigNeighborhood(boolean bigNeighborhood)
    If true uses 8 neighborhood rather than 4 neighborhood etc.
    void
    setBySlices(boolean bySlices)
     
    void
    setMask(Provider<Mask> mask)
     
    void
    setMinVolume(UnitValueExtent minVolume)
     

    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

    • ConnectedComponentsFromMask

      public ConnectedComponentsFromMask()
  • Method Details

    • get

      public ObjectCollection get() throws ProvisionFailedException
      Throws:
      ProvisionFailedException
    • getMask

      public Provider<Mask> getMask()
    • setMask

      public void setMask(Provider<Mask> mask)
    • getMinVolume

      public UnitValueExtent getMinVolume()
    • setMinVolume

      public void setMinVolume(UnitValueExtent minVolume)
    • isBySlices

      public boolean isBySlices()
    • setBySlices

      public void setBySlices(boolean bySlices)
    • isBigNeighborhood

      public boolean isBigNeighborhood()
      If true uses 8 neighborhood rather than 4 neighborhood etc. in 2D, and similar in 3D
    • setBigNeighborhood

      public void setBigNeighborhood(boolean bigNeighborhood)
      If true uses 8 neighborhood rather than 4 neighborhood etc. in 2D, and similar in 3D