Class ProcessingCV

java.lang.Object
qupath.opencv.tools.ProcessingCV

public class ProcessingCV extends Object
Static methods to enable existing code for watershed transforms and morphological reconstruction to be applied to OpenCV images.
Author:
Pete Bankhead
  • Constructor Details

    • ProcessingCV

      public ProcessingCV()
  • Method Details

    • morphologicalReconstruction

      public static boolean morphologicalReconstruction(Mat matMarker, Mat matMask)
      Compute morphological reconstruction.
      Parameters:
      matMarker -
      matMask -
      Returns:
    • doWatershed

      public static void doWatershed(Mat mat, Mat matLabels, boolean conn8)
      Apply a watershed transform.
      Parameters:
      mat - intensity image
      matLabels - starting locations
      conn8 - if true, use 8-connectivity rather than 4-connectivity
    • doWatershed

      public static void doWatershed(Mat mat, Mat matLabels, double minThreshold, boolean conn8)
      Apply an intensity-constrained watershed transform, preventing regions from expanding to pixels below a specified minimum threshold
      Parameters:
      mat - intensity image
      matLabels - starting locations
      minThreshold - minimum threshold
      conn8 - if true, use 8-connectivity rather than 4-connectivity