Commit f8d25f595934b91788590b41c66676f1fad09cc8
1 parent
49ec5b18
Exists in
vtk6
generating preview in vtk6
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
invesalius/gui/dicom_preview_panel.py
... | ... | @@ -848,12 +848,12 @@ class SingleImagePreview(wx.Panel): |
848 | 848 | window_level = dicom.image.level |
849 | 849 | window_width = dicom.image.window |
850 | 850 | colorer = vtk.vtkImageMapToWindowLevelColors() |
851 | - colorer.SetInput(rdicom.GetOutput()) | |
851 | + colorer.SetInputConnection(rdicom.GetOutputPort()) | |
852 | 852 | colorer.SetWindow(float(window_width)) |
853 | 853 | colorer.SetLevel(float(window_level)) |
854 | 854 | |
855 | 855 | # PLOT IMAGE INTO VIEWER |
856 | - self.actor.SetInput(colorer.GetOutput()) | |
856 | + self.actor.SetInputData(colorer.GetOutput()) | |
857 | 857 | self.renderer.ResetCamera() |
858 | 858 | self.interactor.Render() |
859 | 859 | ... | ... |