nr_threshold: Threshold to binary image

View source: R/nr-color.R

nr_thresholdR Documentation

Threshold to binary image

Description

Threshold to binary image

Usage

nr_threshold(nr, value = 0.5)

Arguments

nr

native raster image

value

Threshold value. Default: 0.5 (valid range [0, 1])

Value

Invisibly return the supplied native raster image which was been modified in-place

See Also

Other color manipulation functions: nr_color_replace(), nr_desaturate(), nr_dither()

Examples

nr <- nr_copy(deer[[1]])
plot(nr)

nr_threshold(nr, 0.9)
plot(nr)

nara documentation built on May 28, 2026, 5:07 p.m.