Learn R Programming

imbibe (version 0.1.1)

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

Value

An updated pipeline.

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.