Skip to contents

Stretch and optionally save full RGB preview of SpatRaster

Usage

stretch_raster_full(
  raster,
  type = "RGB",
  histeq = FALSE,
  extension = NULL,
  filename = NULL
)

Arguments

raster

a SpatRaster, preferably reflectance file.

type

one of RGB, CIR or NIR.

histeq

logical. If TRUE histogram equalization is used instead of linear stretch.

extension

character, a graphic format extension, defaults to "tif".

write

logical, should resulting SpatRaster be written to file.