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 Details

    • WatershedYeong

      public WatershedYeong()
  • Method Details

    • segment

      public ObjectCollection segment(Channel channel, Optional<ObjectMask> objectMask, Optional<ObjectCollection> seeds) throws SegmentationFailedException
      Description copied from class: SegmentChannelIntoObjects
      Segments a channel to produce an object-collection.
      Specified by:
      segment in class SegmentChannelIntoObjects
      Parameters:
      channel - the channel to segment
      objectMask - an object-mask that can restrict which areas of the channel are considered.
      seeds - seeds that can be used to determine starting-points for segmentation regions.
      Returns:
      a newly created collection of objects for each segment. The created objects will always exist inside the channel's extent.
      Throws:
      SegmentationFailedException - if anything goes wrong during the segmentation.
    • 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