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