Package qupath.lib.analysis.images
Class ContourTracing.ChannelThreshold
java.lang.Object
qupath.lib.analysis.images.ContourTracing.ChannelThreshold
- Enclosing class:
- ContourTracing
Helper class defining global thresholds to apply to a single image channel.
- 
Method SummaryModifier and TypeMethodDescriptioncreate(int channel) Create a simple channel threshold.create(int channel, double minThreshold, double maxThreshold) Create a threshold to select values between a minimum and maximum (inclusive).createAbove(int channel, double minThreshold) Create a threshold to select values greater than or equal to a specified threshold.createBelow(int channel, double maxThreshold) Create a threshold to select values less than or equal to a specified threshold.createExactly(int channel, double threshold) Create a threshold to select values that are exactly equal to a specified threshold.intGet the channel to threshold.doubleGet the maximum threshold value.doubleGet the minimum threshold value.toString()
- 
Method Details- 
createCreate a simple channel threshold. This contains no intensity values (min/max thresholds are infinity) but it is useful for thresholding classification images. In this case, the channel refers to the classification label.- Parameters:
- channel-
- Returns:
 
- 
createpublic static ContourTracing.ChannelThreshold create(int channel, double minThreshold, double maxThreshold) Create a threshold to select values between a minimum and maximum (inclusive).- Parameters:
- channel- channel to threshold
- minThreshold- minimum value (inclusive)
- maxThreshold- maximum value (inclusive)
- Returns:
 
- 
createAboveCreate a threshold to select values greater than or equal to a specified threshold.- Parameters:
- channel- the channel to threshold
- minThreshold- the minimum threshold to apply
- Returns:
 
- 
createBelowCreate a threshold to select values less than or equal to a specified threshold.- Parameters:
- channel- the channel to threshold
- maxThreshold- the maximum threshold to apply
- Returns:
 
- 
createExactlyCreate a threshold to select values that are exactly equal to a specified threshold.- Parameters:
- channel- the channel to threshold
- threshold- the threshold value
- Returns:
 
- 
getMinThresholdpublic double getMinThreshold()Get the minimum threshold value. This may beFloat.NEGATIVE_INFINITYif no minimum threshold is required.- Returns:
 
- 
getMaxThresholdpublic double getMaxThreshold()Get the maximum threshold value. This may beFloat.POSITIVE_INFINITYif no minimum threshold is required.- Returns:
 
- 
getChannelpublic int getChannel()Get the channel to threshold.- Returns:
 
- 
toString
 
-