Commit a2faab6723aa8caa5efe98ab83b306c0f2753d61
1 parent
73b1ae4e
Exists in
orientation
Changed the direction of stacking sagittal cases to match axial ones
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/data/imagedata_utils.py
| ... | ... | @@ -480,7 +480,7 @@ def dcm2memmap(files, slice_size, orientation, resolution_percentage): |
| 480 | 480 | # TODO: Verify if it's necessary to add the slices swapped only in |
| 481 | 481 | # sagittal rmi or only in # Rasiane's case or is necessary in all |
| 482 | 482 | # sagittal cases. |
| 483 | - matrix[:, :, n] = array | |
| 483 | + matrix[:, :,-n-1] = array[:, ::-1] | |
| 484 | 484 | else: |
| 485 | 485 | print array.shape, matrix.shape |
| 486 | 486 | array.shape = matrix.shape[1], matrix.shape[2] | ... | ... |