linear_stretch: Apply a linear stretch to an image

Description Usage Arguments Details Value

View source: R/linear_stretch.R

Description

Applies a linear stretch to an image (default linear 2 returns the image with each band individually stretched and rescaled to range between zero and max_val (default of max_val is 1).

Usage

1
linear_stretch(x, pct, n_sd, max_val = 1)

Arguments

x

image to stretch

pct

percent stretch (defaults to 2 if not specified)

n_sd

number of standard deviations for stretch

max_val

maximum value of final output (image will be rescaled to range from 0 - max_val)

Details

Note only one of pct or n_sd can be specified.

Value

image with stretch applied


azvoleff/teamlucc documentation built on June 4, 2017, 12:08 a.m.