Grayscale

Zusammenfassung

Converts a multiband image to a single-band grayscale image. Specified weights are applied to each of the input bands, and a normalization is applied for output.

Diskussion

For more information about how this function works, see the Grayscale raster function.

The referenced raster dataset for the raster object is temporary. To make it permanent, you can call the raster object's save method.

Syntax

Grayscale (raster, {conversion_parameters})
ParameterErläuterungDatentyp
raster

The input raster.

Raster
conversion_parameters

The weights for each of the bands comprising the input raster.

(Der Standardwert ist None)

List
Rückgabewert
DatentypErläuterung
Raster

The output raster.