Commit 970a743e927515fd2b8f9936f78509cbeccb8b87
1 parent
ce3ee287
Exists in
master
When reorienting image coronal and sagital where being show using linear interpolation
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
invesalius/data/slice_.py
| ... | ... | @@ -671,7 +671,7 @@ class Slice(object): |
| 671 | 671 | elif orientation == 'CORONAL': |
| 672 | 672 | tmp_array = np.array(self.matrix[:, slice_number: slice_number + number_slices, :]) |
| 673 | 673 | if np.any(self.q_orientation[1::]): |
| 674 | - transforms.apply_view_matrix_transform(self.matrix, self.spacing, M, slice_number, orientation, 1, self.matrix.min(), tmp_array) | |
| 674 | + transforms.apply_view_matrix_transform(self.matrix, self.spacing, M, slice_number, orientation, 2, self.matrix.min(), tmp_array) | |
| 675 | 675 | |
| 676 | 676 | if self._type_projection == const.PROJECTION_NORMAL: |
| 677 | 677 | n_image = tmp_array.squeeze() |
| ... | ... | @@ -721,7 +721,7 @@ class Slice(object): |
| 721 | 721 | elif orientation == 'SAGITAL': |
| 722 | 722 | tmp_array = np.array(self.matrix[:, :, slice_number: slice_number + number_slices]) |
| 723 | 723 | if np.any(self.q_orientation[1::]): |
| 724 | - transforms.apply_view_matrix_transform(self.matrix, self.spacing, M, slice_number, orientation, 1, self.matrix.min(), tmp_array) | |
| 724 | + transforms.apply_view_matrix_transform(self.matrix, self.spacing, M, slice_number, orientation, 2, self.matrix.min(), tmp_array) | |
| 725 | 725 | |
| 726 | 726 | if self._type_projection == const.PROJECTION_NORMAL: |
| 727 | 727 | n_image = tmp_array.squeeze() | ... | ... |