Class WatershedYeong

Object
AnchorBean<SegmentChannelIntoObjects>
InitializableBean<SegmentChannelIntoObjects, ImageInitialization>
ImageBean<SegmentChannelIntoObjects>
SegmentationBean<SegmentChannelIntoObjects>
SegmentChannelIntoObjects
WatershedYeong

public class WatershedYeong extends SegmentChannelIntoObjects
A 'rainfall' watershed algorithm

See:

  • 3D watershed based on rainfall-simulation for volume segmentation, Yeong et al. 2009 International Conference on Intelligent Human-Machine Systems and Cybernetics
  • An improved watershed algorithm based on efficient computation of shortest paths, Osma-Ruiz et al., Pattern Reconigion(40), 2007

Note:

  • Does not record a watershed line
Author:
Owen Feehan
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    If true, exits early and just returns the minima, without any further segmentation
    ObjectCollection
    segment(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds)
     
    void
    setExitWithMinima(boolean exitWithMinima)
    If true, exits early and just returns the minima, without any further segmentation

    Methods inherited from class org.anchoranalysis.image.bean.segment.object.SegmentChannelIntoObjects

    checkUnsupported3D, checkUnsupportedObjectMask, checkUnsupportedSeeds

    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

    • WatershedYeong

      public WatershedYeong()
  • Method Details

    • segment

      public ObjectCollection segment(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds) throws SegmentationFailedException
      Specified by:
      segment in class SegmentChannelIntoObjects
      Throws:
      SegmentationFailedException
    • isExitWithMinima

      public boolean isExitWithMinima()
      If true, exits early and just returns the minima, without any further segmentation
    • setExitWithMinima

      public void setExitWithMinima(boolean exitWithMinima)
      If true, exits early and just returns the minima, without any further segmentation