Image thresholding
threshold(
image,
value,
reference = c("none", "image", "nonzero"),
above = FALSE
)threshold_below(image, value, reference = c("none", "image", "nonzero"))
threshold_above(image, value, reference = c("none", "image", "nonzero"))
An updated pipeline.
An image object or pipeline.
Numeric threshold value.
String indicating what the value should be
referenced against, if anything. If "none", the default, the
value is taken literally. If "image", it is interpreted as
a proportion of the "robust range" of the current image's intensities. If
"nonzero" it is interpreted as a proportion of the "robust range"
of the nonzero pixel intensities.
Logical value: if TRUE the operation zeroes values above
the threshold; otherwise it zeroes values below it. The
threshold_below and threshold_above function variants set
argument implicitly.