Package qupath.opencv.ops
Class ImageOps.Threshold
java.lang.Object
qupath.opencv.ops.ImageOps.Threshold
- Enclosing class:
ImageOps
Thresholding operations.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ImageOp
threshold
(double... thresholds) Apply a fixed threshold.static ImageOp
thresholdMeanStd
(double... k) Threshold each channel based upon the channel mean and standard deviation.static ImageOp
thresholdMedianAbsDev
(double... k) Threshold each channel based upon the channel median and median absolute deviation.
-
Constructor Details
-
Threshold
public Threshold()
-
-
Method Details
-
threshold
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
Threshold each channel based upon the channel mean and standard deviation. The threshold ismean + k * std.dev.
.- Parameters:
k
-- Returns:
-
thresholdMedianAbsDev
Threshold each channel based upon the channel median and median absolute deviation. The threshold ismedian + 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:
-