geetools.ImageAccessor.gauss#

geetools.ImageAccessor.gauss(band='')#

Apply a gaussian filter to the image.

We apply the following function to the image: “exp(((val-mean)**2)/(-2*(std**2)))” where val is the value of the pixel, mean is the mean of the image, std is the standard deviation of the image.

See the Gaussian filter Wikipedia page for more information.

Parameters:

band (geetools.types.ee_str) – The band to apply the gaussian filter to. If empty, the first one is selected.

Returns:

The image with the gaussian filter applied.An single band image with the gaussian filter applied.

Return type:

ee.Image

Examples

import ee, geetools

ee.Initialize()

image = ee.ImageCollection("COPERNICUS/S2_SR_HARMONIZED").first()
image = image.geetools.gauss()
print(image.bandNames().getInfo())