In this line: https://github.com/TissueImageAnalytics/CoNIC/blob/9c52bd95dc284289e01de3d023175437b074aa15/metrics/stats_utils.py#L47 match_iou should be used.