R/nr-color.R
nr_desaturate.Rd
Move image colors to gray
nr_desaturate(nr, factor = 1)
native raster image
desaturation factor. Default: 1 (fully desaturate)
Invisibly return the supplied native raster image which was been modified in-place
Other color manipulation functions: nr_color_replace(), nr_dither(), nr_threshold()
nr_color_replace()
nr_dither()
nr_threshold()
nr <- nr_copy(deer[[1]]) plot(nr) nr_desaturate(nr) plot(nr)