Skip to content

Instantly share code, notes, and snippets.

@arwoll
arwoll / mask_creator.py
Last active January 6, 2021 23:24 — forked from r-barnes/mask_creator.py
Tool to create polygon mask in Matplotlib
"""
Interactive tool to draw mask on an image or image-like array.
Adapted from matplotlib/examples/event_handling/poly_editor.py
"""
import numpy as np
# import matplotlib as mpl
# mpl.use('tkagg')
import matplotlib.pyplot as plt