Commit 3e51ce95cbb652c7841b9ea8c604996da7f8d176
1 parent
e1d76c79
Exists in
master
and in
6 other branches
ADD: Pseudo colors
Showing
1 changed file
with
11 additions
and
1 deletions
Show diff stats
invesalius/constants.py
... | ... | @@ -35,6 +35,17 @@ SLICE_POSITION = {AXIAL:[AXIAL_SLICE_CAM_VIEW_UP, AXIAL_SLICE_CAM_POSITION], |
35 | 35 | SAGITAL:[SAGITAL_SLICE_CAM_VIEW_UP, SAGITAL_SLICE_CAM_POSITION], |
36 | 36 | CORONAL:[CORONAL_SLICE_CAM_VIEW_UP, CORONAL_SLICE_CAM_POSITION]} |
37 | 37 | |
38 | +#Color Table from Slice | |
39 | +#NumberOfColors, SaturationRange, HueRange, ValueRange | |
40 | +SLICE_COLOR_TABLE = {"Gray":(None,(0,0),(0,0),(0,1)), | |
41 | + "Hue":(None,(1,1),(0,1),(1,1)), | |
42 | + "Saturation":(None,(0,1),(0.6,0.6),(1,1)), | |
43 | + "Desert":(256, (1,1), (0, 0.1), (1,1)), | |
44 | + "Rainbow":(256,(1,1),(0,0.8),(1,1)), | |
45 | + "Ocen":(256,(1,1),(0.667, 0.5),(1,1)), | |
46 | + "Inverse Gray":(256, (0, 0), (0, 0), (1,0)), | |
47 | + } | |
48 | + | |
38 | 49 | # Volume view angle |
39 | 50 | VOL_FRONT = wx.NewId() |
40 | 51 | VOL_BACK = wx.NewId() |
... | ... | @@ -142,7 +153,6 @@ WINDOW_LEVEL = {"Abdomen":(350,50), |
142 | 153 | "Liver":(2000, -500), |
143 | 154 | "Lung - Soft":(1600,-600), |
144 | 155 | "Lung - Hard":(1000,-600), |
145 | - "Lung":(1500,-6550), | |
146 | 156 | "Mediastinum":(350,25), |
147 | 157 | "Pelvis": (450,50), |
148 | 158 | "Sinus":(4000, 400), | ... | ... |