Commit fb49c0a62cdf7d15086e858bd8d6f7155aa22e45

Authored by tfmoraes
1 parent 6f89f9e4

FIX: Forcing scalar range to int to do InVesalius3 runs in Mac

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/data/volume.py
@@ -573,7 +573,7 @@ class Volume(): @@ -573,7 +573,7 @@ class Volume():
573 def CalculateHistogram(self): 573 def CalculateHistogram(self):
574 proj = prj.Project() 574 proj = prj.Project()
575 image = proj.imagedata 575 image = proj.imagedata
576 - r = image.GetScalarRange()[1] - image.GetScalarRange()[0] 576 + r = int(image.GetScalarRange()[1] - image.GetScalarRange()[0])
577 accumulate = vtk.vtkImageAccumulate() 577 accumulate = vtk.vtkImageAccumulate()
578 accumulate.SetInput(image) 578 accumulate.SetInput(image)
579 accumulate.SetComponentExtent(0, r -1, 0, 0, 0, 0) 579 accumulate.SetComponentExtent(0, r -1, 0, 0, 0, 0)