From fb49c0a62cdf7d15086e858bd8d6f7155aa22e45 Mon Sep 17 00:00:00 2001 From: tfmoraes Date: Mon, 13 Sep 2010 15:16:16 +0000 Subject: [PATCH] FIX: Forcing scalar range to int to do InVesalius3 runs in Mac --- invesalius/data/volume.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/data/volume.py b/invesalius/data/volume.py index 0aa369a..11b6938 100755 --- a/invesalius/data/volume.py +++ b/invesalius/data/volume.py @@ -573,7 +573,7 @@ class Volume(): def CalculateHistogram(self): proj = prj.Project() image = proj.imagedata - r = image.GetScalarRange()[1] - image.GetScalarRange()[0] + r = int(image.GetScalarRange()[1] - image.GetScalarRange()[0]) accumulate = vtk.vtkImageAccumulate() accumulate.SetInput(image) accumulate.SetComponentExtent(0, r -1, 0, 0, 0, 0) -- libgit2 0.21.2