Python library for morphological cleaning of multiclass 2D numpy arrays (edge smoothing and island removal)
copied from cf-post-staging / multicleanPython library for morphological cleaning of multiclass 2D numpy arrays (edge smoothing and island removal)