Class ConnectedComponentsFromMask

All Implemented Interfaces:
Provider<ObjectCollection>

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

    • ConnectedComponentsFromMask

      public ConnectedComponentsFromMask()
  • Method Details

    • get

      Description copied from interface: Provider
      Gets or creates an object of type T.
      Returns:
      the object returned by the provider.
      Throws:
      ProvisionFailedException - if the object cannot be returned.
    • 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