From 66d29efb58cf2bc02d0e67624f5416b9ab02b650 Mon Sep 17 00:00:00 2001 From: John Wilkie Date: Wed, 8 Jan 2025 11:19:40 +0000 Subject: [PATCH] Removed NifTI export pixdim scaling --- darwin/exporter/formats/nifti.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/darwin/exporter/formats/nifti.py b/darwin/exporter/formats/nifti.py index ce32ee78c..baea46801 100644 --- a/darwin/exporter/formats/nifti.py +++ b/darwin/exporter/formats/nifti.py @@ -549,7 +549,7 @@ def shift_polygon_coords( else: return [{"x": p["y"], "y": p["x"]} for p in polygon] else: - return [{"x": p["y"] // pixdim[1], "y": p["x"] // pixdim[0]} for p in polygon] + return [{"x": p["y"], "y": p["x"]} for p in polygon] def get_view_idx(frame_idx: int, groups: List) -> int: