Duplicated from KalbeDigitalLab/pathology_nuclei_segmentation_classification
Update legacy function parameter