Skip to content

Commit

Permalink
Removed NifTI export pixdim scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
JBWilkie committed Jan 8, 2025
1 parent 90c3fc4 commit 66d29ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion darwin/exporter/formats/nifti.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 66d29ef

Please sign in to comment.