Package qupath.opencv.ops
Class ImageOps.Threshold
java.lang.Object
qupath.opencv.ops.ImageOps.Threshold
- Enclosing class:
ImageOps
Thresholding operations.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ImageOpthreshold(double... thresholds) Apply a fixed threshold.static ImageOpthresholdMeanStd(double... k) Threshold each channel based upon the channel mean and standard deviation.static ImageOpthresholdMedianAbsDev(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:
-