Commit d209eef99583a51109ed8df5ce4565235c1cb7a4
1 parent
2a5582a6
Exists in
master
and in
68 other branches
FIX: Generate Original Resolution
Showing
1 changed file
with
2 additions
and
5 deletions
Show diff stats
invesalius/reader/dicom_reader.py
... | ... | @@ -84,8 +84,8 @@ def LoadImages(dir_): |
84 | 84 | array = vtk.vtkStringArray() |
85 | 85 | |
86 | 86 | #Case Reduce Matrix of the Image |
87 | - flag = 1 | |
88 | - reduce_factor = 4 | |
87 | + flag = 0 | |
88 | + reduce_factor = 3 | |
89 | 89 | |
90 | 90 | img_app = vtk.vtkImageAppend() |
91 | 91 | img_app.SetAppendAxis(2) #Define Stack in Z |
... | ... | @@ -117,9 +117,6 @@ def LoadImages(dir_): |
117 | 117 | size = read.GetOutput().GetDimensions() |
118 | 118 | height = float(size[1]/reduce_factor) |
119 | 119 | resolution = (height/(extent[1]-extent[0])+1)*spacing |
120 | - print "\n" | |
121 | - print spacing | |
122 | - print spacing_z*resolution | |
123 | 120 | img_axial.SetSpacing(spacing, spacing, spacing_z * resolution) |
124 | 121 | else: |
125 | 122 | read = vtkgdcm.vtkGDCMImageReader() | ... | ... |