Convert a 3-band RGB raster to 1-band greyscale raster. Based on wvtool::rgb2gray.
Usage
rgb_to_greyscale(x, rgb = 1:3, coefs = c(0.3, 0.59, 0.11))Convert a 3-band RGB raster to 1-band greyscale raster. Based on wvtool::rgb2gray.
rgb_to_greyscale(x, rgb = 1:3, coefs = c(0.3, 0.59, 0.11))