From 20b284a76c8aef6057553ab331c658c456e13316 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Wed, 4 May 2016 16:34:28 -0300 Subject: [PATCH] Fixed ball reference and image resample --- invesalius/data/imagedata_utils.py | 2 +- invesalius/data/viewer_volume.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/invesalius/data/imagedata_utils.py b/invesalius/data/imagedata_utils.py index bb48376..0ba01a1 100644 --- a/invesalius/data/imagedata_utils.py +++ b/invesalius/data/imagedata_utils.py @@ -84,7 +84,7 @@ def ResampleImage2D(imagedata, px=None, py=None, resolution_percentage = None, factor_y = py/float(f+1) resample = vtk.vtkImageResample() - resample.SetInput(imagedata) + resample.SetInputData(imagedata) resample.SetAxisMagnificationFactor(0, factor_x) resample.SetAxisMagnificationFactor(1, factor_y) resample.SetOutputSpacing(spacing[0] * factor_x, spacing[1] * factor_y, spacing[2]) diff --git a/invesalius/data/viewer_volume.py b/invesalius/data/viewer_volume.py index cee8553..f75e6b6 100755 --- a/invesalius/data/viewer_volume.py +++ b/invesalius/data/viewer_volume.py @@ -232,7 +232,7 @@ class Viewer(wx.Panel): self.ball_reference.SetRadius(r) mapper = vtk.vtkPolyDataMapper() - mapper.SetInput(self.ball_reference.GetOutput()) + mapper.SetInputConnection(self.ball_reference.GetOutputPort()) p = vtk.vtkProperty() p.SetColor(1, 0, 0) -- libgit2 0.21.2