Skip to content

Commit

Permalink
Merge pull request #13 from andreped/dev
Browse files Browse the repository at this point in the history
Fixed orientiation in 2D renderer
  • Loading branch information
andreped committed Jun 7, 2023
2 parents 66e8034 + ca94437 commit 808d93e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions neukit/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ def load_ct_to_numpy(data_path):
data_path = data_path.name

image = nib.load(data_path)
data = image.get_fdata()
resampled = resample_to_output(image, None, order=0)
data = resampled.get_fdata()

data = np.rot90(data, k=1, axes=(0, 1))

Expand All @@ -29,7 +30,8 @@ def load_pred_volume_to_numpy(data_path):
data_path = data_path.name

image = nib.load(data_path)
data = image.get_fdata()
resampled = resample_to_output(image, None, order=0)
data = resampled.get_fdata()

data = np.rot90(data, k=1, axes=(0, 1))

Expand Down

0 comments on commit 808d93e

Please sign in to comment.