From b2cca5d6f6b3c28996ed5699fc155e6a02b1c287 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Wed, 7 Aug 2013 14:21:42 -0300 Subject: [PATCH] Setting proj.threshold_range when opening a new dicom case --- invesalius/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/control.py b/invesalius/control.py index 2e6d866..a01f72a 100644 --- a/invesalius/control.py +++ b/invesalius/control.py @@ -468,7 +468,7 @@ class Controller(): name_to_const[dicom.image.orientation_label] proj.window = float(dicom.image.window) proj.level = float(dicom.image.level) - proj.threshold_range = (-1024, 3033) + proj.threshold_range = int(matrix.min()), int(matrix.max()) proj.spacing = self.Slice.spacing ###### -- libgit2 0.21.2