The Grayscale function converts a multiband image into a single-band grayscale image. Specified weights can be applied to each of the input bands, or a normalization of the bands can be applied, as shown in the following examples:
Output = Band1*Weight1+Band2*Weight2+Band3*Weight3+...
Output = Output/(Sum of all Weights)
The weights are often applied because some bands have less or more importance than other bands; for example, in Landsat imagery, the blue band often contains more noise than other bands.
The inputs for this function are the following:
- Input Raster
- Conversion Parameters
The input for this process can be any number of bands, bit depth, or pixel type. The output is one band with the same bit depth and pixel type as the input.