Package qupath.opencv.ops
Class ImageOps.Filters
java.lang.Object
qupath.opencv.ops.ImageOps.Filters
- Enclosing class:
ImageOps
Filtering operations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageOp
closing
(int radius) Apply a 2D morphological closing filter.static ImageOp
features
(Collection<MultiscaleFeatures.MultiscaleFeature> features, double sigmaX, double sigmaY) Compute one or moreMultiscaleFeatures.MultiscaleFeature
s for the specified smoothing values (must be > 0).static ImageOp
Apply a 2D filter.static ImageOp
gaussianBlur
(double sigma) Apply a 2D Gaussian filter.static ImageOp
gaussianBlur
(double sigmaX, double sigmaY) Apply a (possibly anisotropic) 2D Gaussian filter.static ImageOp
maximum
(int radius) Apply a 2D maximum filter.static ImageOp
mean
(int radius) Apply a 2D circular mean filter.static ImageOp
median
(int radius) Apply a 2D median filterstatic ImageOp
minimum
(int radius) Apply a 2D minimum filter.static ImageOp
opening
(int radius) Apply a 2D morphological opening filter.static ImageOp
stdDev
(int radius) Apply a 2D circular standard deviation filter.static ImageOp
sum
(int radius) Apply a 2D circular sum filter.static ImageOp
variance
(int radius) Apply a 2D circular variance filter.
-
Constructor Details
-
Filters
public Filters()
-
-
Method Details
-
gaussianBlur
Apply a (possibly anisotropic) 2D Gaussian filter.- Parameters:
sigmaX
-sigmaY
-- Returns:
-
gaussianBlur
Apply a 2D Gaussian filter.- Parameters:
sigma
-- Returns:
-
filter2D
Apply a 2D filter.- Parameters:
kernel
-- Returns:
-
mean
Apply a 2D circular mean filter.- Parameters:
radius
- filter radius- Returns:
-
sum
Apply a 2D circular sum filter.- Parameters:
radius
- filter radius- Returns:
-
variance
Apply a 2D circular variance filter.- Parameters:
radius
- filter radius- Returns:
-
stdDev
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 moreMultiscaleFeatures.MultiscaleFeature
s for the specified smoothing values (must be > 0).- Parameters:
features
-sigmaX
-sigmaY
-- Returns:
-
maximum
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
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
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
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
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:
-