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

  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    doWatershed(qupath.lib.analysis.images.SimpleImage ip, qupath.lib.analysis.images.SimpleModifiableImage ipLabels, boolean conn8)
    Apply a 2D watershed transform.
    static void
    doWatershed(qupath.lib.analysis.images.SimpleImage ip, qupath.lib.analysis.images.SimpleModifiableImage ipLabels, double minThreshold, boolean conn8)
    Apply a 2D watershed transform, constraining region growing using an intensity threshold.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Watershed

      public Watershed()
  • Method Details

    • doWatershed

      public static void doWatershed(qupath.lib.analysis.images.SimpleImage ip, qupath.lib.analysis.images.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(qupath.lib.analysis.images.SimpleImage ip, qupath.lib.analysis.images.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