From b49ca4d134ec1f677ecc56b152f0e64df9604f71 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Wed, 20 May 2015 10:39:51 -0300 Subject: [PATCH] Better Get LUT to use in the watershed --- invesalius/data/styles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/data/styles.py b/invesalius/data/styles.py index d0049b3..360ccc3 100644 --- a/invesalius/data/styles.py +++ b/invesalius/data/styles.py @@ -62,7 +62,7 @@ def get_LUT_value(data, window, level): return np.piecewise(data, [data <= (level - 0.5 - (window-1)/2), data > (level - 0.5 + (window-1)/2)], - [0, 255, lambda data: ((data - (level - 0.5))/(window-1) + 0.5)*(255-0)]) + [0, window, lambda data: ((data - (level - 0.5))/(window-1) + 0.5)*(window)]) class BaseImageInteractorStyle(vtk.vtkInteractorStyleImage): def __init__(self, viewer): -- libgit2 0.21.2