Commit 8ac595ad1144bab720318e628481e437607048ac

Authored by tfmoraes
1 parent 1ea696b9

Calculating histogram again

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
invesalius/data/volume.py
... ... @@ -174,7 +174,7 @@ class Volume():
174 174 #Publisher.sendMessage('Render volume viewer')
175 175 else:
176 176 self.LoadVolume()
177   - #self.CalculateHistogram()
  177 + self.CalculateHistogram()
178 178 self.exist = 1
179 179  
180 180 colour = self.GetBackgroundColour()
... ... @@ -663,6 +663,7 @@ class Volume():
663 663 accumulate.ReleaseDataFlagOn()
664 664 accumulate.Update()
665 665 n_image = numpy_support.vtk_to_numpy(accumulate.GetOutput().GetPointData().GetScalars())
  666 + del accumulate
666 667 Publisher.sendMessage('Load histogram', (n_image,
667 668 image.GetScalarRange()))
668 669  
... ...