Class ImageOps.Filters

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

public static class ImageOps.Filters extends Object
Filtering operations.
  • Constructor Details

    • Filters

      public Filters()
  • Method Details

    • gaussianBlur

      public static ImageOp gaussianBlur(double sigmaX, double sigmaY)
      Apply a (possibly anisotropic) 2D Gaussian filter.
      Parameters:
      sigmaX -
      sigmaY -
      Returns:
    • gaussianBlur

      public static ImageOp gaussianBlur(double sigma)
      Apply a 2D Gaussian filter.
      Parameters:
      sigma -
      Returns:
    • filter2D

      public static ImageOp filter2D(Mat kernel)
      Apply a 2D filter.
      Parameters:
      kernel -
      Returns:
    • mean

      public static ImageOp mean(int radius)
      Apply a 2D circular mean filter.
      Parameters:
      radius - filter radius
      Returns:
    • sum

      public static ImageOp sum(int radius)
      Apply a 2D circular sum filter.
      Parameters:
      radius - filter radius
      Returns:
    • variance

      public static ImageOp variance(int radius)
      Apply a 2D circular variance filter.
      Parameters:
      radius - filter radius
      Returns:
    • stdDev

      public static ImageOp stdDev(int radius)
      Apply a 2D circular standard deviation filter.
      Parameters:
      radius - filter radius
      Returns:
    • features

      public static ImageOp features(Collection<MultiscaleFeatures.MultiscaleFeature> features, double sigmaX, double sigmaY)
      Compute one or more MultiscaleFeatures.MultiscaleFeatures for the specified smoothing values (must be > 0).
      Parameters:
      features -
      sigmaX -
      sigmaY -
      Returns:
    • maximum

      public static ImageOp maximum(int radius)
      Apply a 2D maximum filter.
      Parameters:
      radius - filter radius. Must be 1 or greater. 1 indicates a 3x3 square; larger filters approximate a circle.
      Returns:
    • minimum

      public static ImageOp minimum(int radius)
      Apply a 2D minimum filter.
      Parameters:
      radius - filter radius. Must be 1 or greater. 1 indicates a 3x3 square; larger filters approximate a circle.
      Returns:
    • opening

      public static ImageOp opening(int radius)
      Apply a 2D morphological opening filter.
      Parameters:
      radius - filter radius. Must be 1 or greater. 1 indicates a 3x3 square; larger filters approximate a circle.
      Returns:
    • closing

      public static ImageOp closing(int radius)
      Apply a 2D morphological closing filter.
      Parameters:
      radius - filter radius. Must be 1 or greater. 1 indicates a 3x3 square; larger filters approximate a circle.
      Returns:
    • median

      public static ImageOp median(int radius)
      Apply a 2D median filter
      Parameters:
      radius - filter radius. 1 means a 3x3 filter, 2 means a 5x5 filter. For larger filter sizes, only uint8 input is supported. For radius 1 and 2 the image may also be float32.
      Returns: