Commit 97c92b53bad28e443d5bd2f8ee36767a4b759907
1 parent
04381202
Exists in
orientation
Stacking in reverse way slices from a coronal serie
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/data/imagedata_utils.py
| ... | ... | @@ -474,7 +474,7 @@ def dcm2memmap(files, slice_size, orientation, resolution_percentage): |
| 474 | 474 | array = numpy_support.vtk_to_numpy(image.GetPointData().GetScalars()) |
| 475 | 475 | if orientation == 'CORONAL': |
| 476 | 476 | array.shape = matrix.shape[0], matrix.shape[2] |
| 477 | - matrix[:, n, :] = array | |
| 477 | + matrix[:, -n-1, :] = array | |
| 478 | 478 | elif orientation == 'SAGITTAL': |
| 479 | 479 | array.shape = matrix.shape[0], matrix.shape[1] |
| 480 | 480 | # TODO: Verify if it's necessary to add the slices swapped only in | ... | ... |