geepillow.image#
image module.
Functions#
|
Create a Pillow Image from an ee.Image. |
Module Contents#
- geepillow.image.from_eeimage(image, dimensions, viz_params=None, scale=None, region=None, overlay=None, overlay_style=None, style_property=None)[source]#
Create a Pillow Image from an ee.Image.
- Parameters:
image (ee.Image) – the ee.Image
dimensions (tuple | int) – dimensions of the image, in pixels. If only one number is passed, it is used as the maximum, and the other dimension is computed by proportional scaling.
viz_params (dict | None) – dict with visualization parameters. Admits the following keys: - bands: a list of the 3 bands that will represent R G B, or one band that will work with palette. - min: the minimum value. - max: the maximum value. - palette: a list of colors to use as a palette. Will only work with one single band.
scale (float | None) – spatial resolution of the image. If None it’ll use the image scale.
region (ee.Geometry | ee.Feature | None) – the region to extract the image from. If None it’ll use the boundaries of the image.
overlay (ee.FeatureCollection | ee.Feature | ee.Geometry | None) – a vector layer to overlay on top of the image.
overlay_style (dict | None) – style of the vector layer to overlay.
style_property (str | None) – A per-feature property expected to contain a dictionary. Values in the dictionary override any default values for that feature.
- Return type:
PIL.Image