Skip to content

Instantly share code, notes, and snippets.

@azarnyx
Last active August 19, 2022 11:04
Show Gist options
  • Save azarnyx/33b0887fa15d9ac8324a411a142fbf48 to your computer and use it in GitHub Desktop.
Save azarnyx/33b0887fa15d9ac8324a411a142fbf48 to your computer and use it in GitHub Desktop.
from skimage import morphology
mask = morphology.remove_small_objects(mask, 40000)
mask = morphology.remove_small_holes(mask, 40000)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment