[vtkusers] vtk and python for large amout of data

David Gobbi dgobbi at imaging.robarts.ca
Thu Dec 5 16:06:34 EST 2002


Hi Berk,

What version of Python & which version of Numeric are you using?
Because what works for you, doesn't work for me (Python 2.1,
Numeric 11).

Maybe later versions of Numeric allow an array to be coerced
into a string, but that would surprise me.

 - David

-- 
  David Gobbi, MSc                dgobbi at imaging.robarts.ca
  Advanced Imaging Research Group
  Robarts Research Institute, University of Western Ontario

On 5 Dec 2002, Berk Geveci wrote:

>
> > I thought that you had to convert the Numeric array to a string first, ie
> >   fa.SetVoidArray(a.tostring(),5,1)
>
> That's what vtkImageExportToArray.py did.  However, I discovered
> that, somehow, it  works without tostring() as well. Since tostring()
> seems to copy  the internal array, it's better not to use  it. I
> don't know the internals of Numeric or the wrapping enough to
> guess why it works (and why it didn't probably work in the past).
>
> -Berk
>
>
> _______________________________________________
> This is the private VTK discussion list.
> Please keep messages on-topic. Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers
>




More information about the vtkusers mailing list