Module containing tasks for morphological operations

class eolearn.geometry.morphology.ErosionTask(*args, **kwargs)[source]

Bases: eolearn.core.eotask.EOTask

The task performs an erosion to the provided mask

  • mask_feature ((FeatureType, str)) – The mask which is to be eroded

  • disk_radius (int) – Radius of the erosion disk (in pixels). Default is set to 1

  • erode_labels (list(int)) – List of labels to erode. If None, all unique labels are eroded. Default is None

  • no_data_label (int) – Value used to replace eroded pixels. Default is set to 0

Stores initialization parameters and the order to the instance attribute init_args.


Implement execute function