Skip to content

Commit

Permalink
rename to iarray to avoid name collision
Browse files Browse the repository at this point in the history
Signed-off-by: neuronflow <[email protected]>
  • Loading branch information
neuronflow committed Feb 1, 2024
1 parent 23c416f commit 0b7f27b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions panoptica/metrics/assd.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def __surface_distances(reference, prediction, voxelspacing=None, connectivity=1


def _distance_transform_edt(
input: np.ndarray,
input_array: np.ndarray,
sampling=None,
return_distances=True,
return_indices=False,
Expand All @@ -90,12 +90,12 @@ def _distance_transform_edt(
# if not sampling.flags.contiguous:
# sampling = sampling.copy()

ft = np.zeros((input.ndim,) + input.shape, dtype=np.int32)
ft = np.zeros((input_array.ndim,) + input_array.shape, dtype=np.int32)

euclidean_feature_transform(input, sampling, ft)
euclidean_feature_transform(input_array, sampling, ft)
# if requested, calculate the distance transform
if return_distances:
dt = ft - np.indices(input.shape, dtype=ft.dtype)
dt = ft - np.indices(input_array.shape, dtype=ft.dtype)
dt = dt.astype(np.float64)
# if sampling is not None:
# for ii in range(len(sampling)):
Expand Down

0 comments on commit 0b7f27b

Please sign in to comment.