Commit 0d5fab65a709d402b601e710e375f3d1893ee4ef
1 parent
e3a213af
Exists in
master
and in
6 other branches
FIX: Error open with original resolution
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/reader/dicom_reader.py
@@ -105,7 +105,7 @@ def LoadImages(dir_): | @@ -105,7 +105,7 @@ def LoadImages(dir_): | ||
105 | 105 | ||
106 | image_data = vtk.vtkImageData() | 106 | image_data = vtk.vtkImageData() |
107 | image_data.DeepCopy(read.GetOutput()) | 107 | image_data.DeepCopy(read.GetOutput()) |
108 | - image_data.SetSpacing(spacing, spacing, spacing_z) | 108 | + image_data.SetSpacing(spacing, spacing, dicom.image.spacing[2]) |
109 | else: | 109 | else: |
110 | for x in xrange(len(files)): | 110 | for x in xrange(len(files)): |
111 | #SIf the resolution of the | 111 | #SIf the resolution of the |