cucim icon indicating copy to clipboard operation
cucim copied to clipboard

Support `sampling` kwarg for `distance_transform_edt` (take pixel/voxel sizes into account)

Open grlee77 opened this issue 2 years ago • 0 comments

Please review/merge #406 before this one as those changes are also present here.

This PR adds support for anisotropic pixel/voxel shape to distance_transform_edt via the sampling kwarg. The changes involve just making variants of the kernels involving distance computations that do floating-point instead of integer-valued computations so that scaling by the sample spacings can be taken into account.

grlee77 avatar Sep 06 '22 15:09 grlee77