This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| from scipy.ndimage import distance_transform_edt | |
| def volumes_nearest_dist( | |
| mask_a: np.ndarray, | |
| mask_b: np.ndarray, | |
| sampling: np.ndarray|None = None | |
| ) -> float: | |
| """ |