diff --git a/invesalius/data/imagedata_utils.py b/invesalius/data/imagedata_utils.py index 80978d6..90da58c 100644 --- a/invesalius/data/imagedata_utils.py +++ b/invesalius/data/imagedata_utils.py @@ -574,7 +574,7 @@ def dcm2memmap(files, slice_size, orientation, resolution_percentage): array = numpy_support.vtk_to_numpy(image.GetPointData().GetScalars()) if orientation == 'CORONAL': array.shape = matrix.shape[0], matrix.shape[2] - matrix[:, n, :] = array + matrix[:, shape[1] - n - 1, :] = array elif orientation == 'SAGITTAL': array.shape = matrix.shape[0], matrix.shape[1] # TODO: Verify if it's necessary to add the slices swapped only in @@ -643,4 +643,4 @@ def imgnormalize(data, srange=(0, 255)): datan = numpy.reshape(datan, dataf.shape) datan = datan.astype(numpy.int16) - return datan \ No newline at end of file + return datan diff --git a/invesalius/data/viewer_slice.py b/invesalius/data/viewer_slice.py index f92bd30..c82108e 100755 --- a/invesalius/data/viewer_slice.py +++ b/invesalius/data/viewer_slice.py @@ -1534,8 +1534,8 @@ class Viewer(wx.Panel): orig_orien = proj.original_orientation self.cam.SetFocalPoint(0, 0, 0) - self.cam.SetViewUp(const.SLICE_POSITION[orig_orien][0][self.orientation]) - self.cam.SetPosition(const.SLICE_POSITION[orig_orien][1][self.orientation]) + self.cam.SetViewUp(const.SLICE_POSITION[const.AXIAL][0][self.orientation]) + self.cam.SetPosition(const.SLICE_POSITION[const.AXIAL][1][self.orientation]) #self.cam.ComputeViewPlaneNormal() #self.cam.OrthogonalizeViewUp() self.cam.ParallelProjectionOn() -- libgit2 0.21.2