Skip to content

Commit

Permalink
add todo
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 db229c2 commit fec5734
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions panoptica/metrics/assd.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,17 @@ def _average_symmetric_surface_distance(
assd = np.mean(
(
_average_surface_distance(
prediction, reference, voxelspacing, connectivity
# TODO is this intended?
reference=prediction,
prediction=reference,
voxelspacing=voxelspacing,
connectivity=connectivity,
),
_average_surface_distance(
reference, prediction, voxelspacing, connectivity
reference=reference,
prediction=prediction,
voxelspacing=voxelspacing,
connectivity=connectivity,
),
)
)
Expand All @@ -37,6 +44,7 @@ def __surface_distances(reference, prediction, voxelspacing=None, connectivity=1
prediction = np.atleast_1d(prediction.astype(bool))
reference = np.atleast_1d(reference.astype(bool))
if voxelspacing is not None:
# TODO check protected access
voxelspacing = _ni_support._normalize_sequence(voxelspacing, prediction.ndim)
voxelspacing = np.asarray(voxelspacing, dtype=np.float64)
if not voxelspacing.flags.contiguous:
Expand Down

0 comments on commit fec5734

Please sign in to comment.