threshold: Image thresholding

thresholdR Documentation

Image thresholding

Description

Image thresholding

Usage

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"))

Arguments

image

An image object or pipeline.

value

Numeric threshold value.

reference

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.

above

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.

Value

An updated pipeline.


imbibe documentation built on Nov. 10, 2022, 5:54 p.m.