Commit 7298b42982fe394bd918e8f96a322e799bab9437
1 parent
a4e630ad
Exists in
master
and in
6 other branches
FIX: DICOM (to be attached) reconstruction is flattened. FIX #167
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
invesalius/data/imagedata_utils.py
@@ -161,10 +161,11 @@ def BuildEditedImage(imagedata, points): | @@ -161,10 +161,11 @@ def BuildEditedImage(imagedata, points): | ||
161 | 161 | ||
162 | gauss = vtk.vtkImageGaussianSmooth() | 162 | gauss = vtk.vtkImageGaussianSmooth() |
163 | gauss.SetInput(imagedata) | 163 | gauss.SetInput(imagedata) |
164 | - gauss.SetRadiusFactor(0.8) | 164 | + gauss.SetRadiusFactor(0.6) |
165 | gauss.Update() | 165 | gauss.Update() |
166 | 166 | ||
167 | return gauss.GetOutput() | 167 | return gauss.GetOutput() |
168 | + #return imagedata | ||
168 | 169 | ||
169 | 170 | ||
170 | def Export(imagedata, filename, bin=False): | 171 | def Export(imagedata, filename, bin=False): |
@@ -295,6 +296,7 @@ def CreateImageData(filelist, zspacing, xyspacing,size, | @@ -295,6 +296,7 @@ def CreateImageData(filelist, zspacing, xyspacing,size, | ||
295 | # The zpacing is a DicomGroup property, so we need to set it | 296 | # The zpacing is a DicomGroup property, so we need to set it |
296 | imagedata = vtk.vtkImageData() | 297 | imagedata = vtk.vtkImageData() |
297 | imagedata.DeepCopy(appender.GetOutput()) | 298 | imagedata.DeepCopy(appender.GetOutput()) |
299 | + imagedata.Update() | ||
298 | 300 | ||
299 | if (use_dcmspacing): | 301 | if (use_dcmspacing): |
300 | spacing = xyspacing | 302 | spacing = xyspacing |