[vtkusers] no GetOutput for vtkImageData?

Marcel Weiss mweiss at cbs.mpg.de
Mon Mar 9 05:56:54 EDT 2009

con.SetInput(vdata)   <-- HAPPINESS NOW?

Marcel Weiss
PhD student
Department of Neurophysics
Max Planck Institute for Human Cognitive and Brain Sciences 

----- Original Message -----
From: "Daren Scot Wilson" <textglutton at darenscotwilson.com>
To: vtkusers at vtk.org
Sent: Monday, March 9, 2009 9:45:12 AM GMT +01:00 Amsterdam / Berlin / Bern / Rome / Stockholm / Vienna
Subject: [vtkusers] no GetOutput for vtkImageData?

I am really stuck!  I think i want to feed the 3d data in a vtkImageData 
to a vtkContourFilter, but the code i tried won't work.  Expecting 
vtkImageData to have a GetOutput method, but it doesn't.   I'm using 
VTK5.2.1 and pyvtk in Python 2.6, running on Arch Linux x86_64.  I'm not 
yet experienced enough at VTK to see any obvious error; 99% sure i'm 
just missing some obvious detail.

from vtk import *

vdata = vtkImageData()
vdata.SetDimensions(nx,ny,nz)  # order?
varr = vtkFloatArray()
#  ... fill varr with numbers ...

con.SetInput(vdata.GetOutput())   <-- UNHAPPINESS HERE!

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: GetOutput

Powered by www.kitware.com

Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ

Follow this link to subscribe/unsubscribe:

More information about the vtkusers mailing list