Class Watershed

java.lang.Object
qupath.lib.analysis.algorithms.Watershed

public class Watershed extends Object
Implementation of 2D watershed transform.

TODO: Implement any further optimizations added to the ImageJ version

Author:
Pete Bankhead
  • Constructor Details

    • Watershed

      public Watershed()
  • Method Details

    • doWatershed

      public static void doWatershed(SimpleImage ip, SimpleModifiableImage ipLabels, boolean conn8)
      Apply a 2D watershed transform.
      Parameters:
      ip - image containing intensity information
      ipLabels - image containing starting labels; these will be modified
      conn8 - true if 8-connectivity should be used; alternative is 4-connectivity
    • doWatershed

      public static void doWatershed(SimpleImage ip, SimpleModifiableImage ipLabels, double minThreshold, boolean conn8)
      Apply a 2D watershed transform, constraining region growing using an intensity threshold.
      Parameters:
      ip - image containing intensity information
      ipLabels - image containing starting labels; these will be modified
      minThreshold - minimum threshold; labels will not expand into pixels with values below the threshold
      conn8 - true if 8-connectivity should be used; alternative is 4-connectivity