Commit fb49c0a62cdf7d15086e858bd8d6f7155aa22e45
1 parent
6f89f9e4
Exists in
master
and in
5 other branches
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 | 573 | def CalculateHistogram(self): |
574 | 574 | proj = prj.Project() |
575 | 575 | image = proj.imagedata |
576 | - r = image.GetScalarRange()[1] - image.GetScalarRange()[0] | |
576 | + r = int(image.GetScalarRange()[1] - image.GetScalarRange()[0]) | |
577 | 577 | accumulate = vtk.vtkImageAccumulate() |
578 | 578 | accumulate.SetInput(image) |
579 | 579 | accumulate.SetComponentExtent(0, r -1, 0, 0, 0, 0) | ... | ... |