Commit 381f21fe212f4d02a849a5ea56c659bfaf593dda
1 parent
9a149f94
Exists in
master
and in
68 other branches
TEST: to test under windows
Showing
1 changed file
with
9 additions
and
9 deletions
Show diff stats
invesalius/gui/dicom_preview_panel.py
... | ... | @@ -130,22 +130,22 @@ class SingleImagePreview(wx.Panel): |
130 | 130 | reader = vtkgdcm.vtkGDCMImageReader() |
131 | 131 | reader.SetFileName(filename) |
132 | 132 | |
133 | - colorer = vtk.vtkImageMapToWindowLevelColors() | |
134 | - colorer.SetInput(reader.GetOutput()) | |
135 | - colorer.SetWindow(float(window_width)) | |
136 | - colorer.SetLevel(float(window_level)) | |
133 | + #colorer = vtk.vtkImageMapToWindowLevelColors() | |
134 | + #colorer.SetInput(reader.GetOutput()) | |
135 | + #colorer.SetWindow(float(window_width)) | |
136 | + #colorer.SetLevel(float(window_level)) | |
137 | 137 | |
138 | 138 | a = vtkgdcm.vtkImageColorViewer() |
139 | - a.SetInput(colorer.GetOutput()) | |
140 | - #a.SetColorWindow(200) | |
141 | - #a.SetColorLevel(100) | |
139 | + a.SetInput(reader.GetOutput()) | |
140 | + a.SetColorWindow(float(window_width)) | |
141 | + a.SetColorLevel(float(window_level)) | |
142 | 142 | a.Render() |
143 | 143 | import time |
144 | 144 | time.sleep(5) |
145 | 145 | |
146 | 146 | |
147 | - self.actor.SetInput(colorer.GetOutput()) | |
148 | - #self.actor.SetInput(reader.GetOutput()) | |
147 | + #self.actor.SetInput(colorer.GetOutput()) | |
148 | + self.actor.SetInput(reader.GetOutput()) | |
149 | 149 | self.renderer.ResetCamera() |
150 | 150 | self.interactor.Render() |
151 | 151 | ... | ... |