Description Usage Arguments Value Examples
View source: R/rgb_to_greyscale.R
Convert a 3-band RGB raster to 1-band greyscale raster. Based on wvtool::rgb2gray
.
1 | rgb_to_greyscale(x, rgb = 1:3, coefs = c(0.3, 0.59, 0.11))
|
x |
A three-dimensional |
rgb |
Indices of RGB bands, default is |
coefs |
RGB weights, default is |
A two-dimensional stars
object greyscale values
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.