https://github.com/vanvalenlab/deepcell-tracking/blob/e79aaceddf3d46a4cbb07f6bfd1cf3708e3a3b21/deepcell_tracking/metrics.py#L457