Skip to content

Commit

Permalink
Fix flipping reversed Bruker data
Browse files Browse the repository at this point in the history
  • Loading branch information
lamyj committed Apr 13, 2024
1 parent 82b4d7d commit 9628d09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/python/dicomifier/bruker_to_dicom/modules/image.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ def get_pixel_data(data_set, generator, frame_index):
numpy.cumprod([x[0] for x in volume_groups])[-1], -1,
data_set["PIXELDATA"].shape[-1]),
"A")
for index in numpy.ndindex(view.shape[:-2]):
view[index, :] = view[index][::-1, :]
view = view.flip(axis=1)

# Mark slice order as normal
data_set["VisuCoreDiskSliceOrder"] = ["disk_normal_slice_order"]
Expand Down

0 comments on commit 9628d09

Please sign in to comment.