[vtkusers] Retrieving Data from vtkImageData class for matlab/tcl

Amer Abufadel amerdsp at hotmail.com
Thu Aug 8 09:33:39 EDT 2002


Surajit,
    Use GetScalarPointer of the vtkImage which gives you direct access to
the image data.
    Save the data to a file.  Use fread in matlab to load the data.
Hope this helps,

Amer

----- Original Message -----
From: "Surajit Nundy" <nundys at neuro.duke.edu>
To: <vtkusers at public.kitware.com>
Sent: Thursday, August 08, 2002 9:09 AM
Subject: [vtkusers] Retrieving Data from vtkImageData class for matlab/tcl


> This is probably a naive question, my apologies.
>
> I have a vtkImageData object from which I'd like to retrieve the Data in
> double/float form and operate on it in Matlab (I think my question also
applies
> to tcl).  How can I do this?  I have tried the GetPoint, GetCell,
> GetScalarComponentAsFloat methods to no avail.
>
> Thanks,
> Surajit Nundy
>
>
> _______________________________________________
> 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