Starting point: https://github.com/TissueImageAnalytics/PanNuke-metrics/blob/master/utils.py (However, these don't seem fully appropriate)