Commit b2cca5d6f6b3c28996ed5699fc155e6a02b1c287

Authored by Thiago Franco de Moraes
1 parent 1364358f

Setting proj.threshold_range when opening a new dicom case

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
invesalius/control.py
... ... @@ -468,7 +468,7 @@ class Controller():
468 468 name_to_const[dicom.image.orientation_label]
469 469 proj.window = float(dicom.image.window)
470 470 proj.level = float(dicom.image.level)
471   - proj.threshold_range = (-1024, 3033)
  471 + proj.threshold_range = int(matrix.min()), int(matrix.max())
472 472 proj.spacing = self.Slice.spacing
473 473  
474 474 ######
... ...