Class DecomposeIntoConnectedComponents

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

public class DecomposeIntoConnectedComponents extends ObjectCollectionProviderUnary
Ensures each object in a collection is a connected-component, decomposing it if necessary into multiple objects.
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ObjectCollection
    createFromObjects(ObjectCollection objects)
     
    boolean
    if true, uses 8 neighborhood instead of 4, and similarly in 3d
    void
    setBigNeighborhood(boolean bigNeighborhood)
    if true, uses 8 neighborhood instead of 4, and similarly in 3d

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

    get, getObjects, setObjects

    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

    • DecomposeIntoConnectedComponents

      public DecomposeIntoConnectedComponents()
  • Method Details

    • createFromObjects

      public ObjectCollection createFromObjects(ObjectCollection objects) throws ProvisionFailedException
      Specified by:
      createFromObjects in class ObjectCollectionProviderUnary
      Throws:
      ProvisionFailedException
    • isBigNeighborhood

      public boolean isBigNeighborhood()
      if true, uses 8 neighborhood instead of 4, and similarly in 3d
    • setBigNeighborhood

      public void setBigNeighborhood(boolean bigNeighborhood)
      if true, uses 8 neighborhood instead of 4, and similarly in 3d