Class ImageOps.Threshold

java.lang.Object
qupath.opencv.ops.ImageOps.Threshold
Enclosing class:
ImageOps

public static class ImageOps.Threshold extends Object
Thresholding operations.
  • Constructor Details

    • Threshold

      public Threshold()
  • Method Details

    • threshold

      public static ImageOp threshold(double... thresholds)
      Apply a fixed threshold.
      Parameters:
      thresholds - either a single-element array (to set the same threshold everywhere), or an array with one element per channel.
      Returns:
    • thresholdMeanStd

      public static ImageOp thresholdMeanStd(double... k)
      Threshold each channel based upon the channel mean and standard deviation. The threshold is mean + k * std.dev..
      Parameters:
      k -
      Returns:
    • thresholdMedianAbsDev

      public static ImageOp thresholdMedianAbsDev(double... k)
      Threshold each channel based upon the channel median and median absolute deviation. The threshold is median + k * MAD / 0.6750., where the normalizing factor enables k to be comparable to a scale factor applied to a standard deviation (assuming a roughly normal distribution).
      Parameters:
      k -
      Returns: