Commit 7298b42982fe394bd918e8f96a322e799bab9437

Authored by Paulo Henrique Junqueira Amorim
1 parent a4e630ad

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 161  
162 162 gauss = vtk.vtkImageGaussianSmooth()
163 163 gauss.SetInput(imagedata)
164   - gauss.SetRadiusFactor(0.8)
  164 + gauss.SetRadiusFactor(0.6)
165 165 gauss.Update()
166 166  
167 167 return gauss.GetOutput()
  168 + #return imagedata
168 169  
169 170  
170 171 def Export(imagedata, filename, bin=False):
... ... @@ -295,6 +296,7 @@ def CreateImageData(filelist, zspacing, xyspacing,size,
295 296 # The zpacing is a DicomGroup property, so we need to set it
296 297 imagedata = vtk.vtkImageData()
297 298 imagedata.DeepCopy(appender.GetOutput())
  299 + imagedata.Update()
298 300  
299 301 if (use_dcmspacing):
300 302 spacing = xyspacing
... ...