diff --git a/invesalius/gui/dicom_preview_panel.py b/invesalius/gui/dicom_preview_panel.py index 10cb4d5..3504db4 100644 --- a/invesalius/gui/dicom_preview_panel.py +++ b/invesalius/gui/dicom_preview_panel.py @@ -848,12 +848,12 @@ class SingleImagePreview(wx.Panel): window_level = dicom.image.level window_width = dicom.image.window colorer = vtk.vtkImageMapToWindowLevelColors() - colorer.SetInput(rdicom.GetOutput()) + colorer.SetInputConnection(rdicom.GetOutputPort()) colorer.SetWindow(float(window_width)) colorer.SetLevel(float(window_level)) # PLOT IMAGE INTO VIEWER - self.actor.SetInput(colorer.GetOutput()) + self.actor.SetInputData(colorer.GetOutput()) self.renderer.ResetCamera() self.interactor.Render() -- libgit2 0.21.2