[vtkusers] how to create a vtkImageData?
David Gobbi
dgobbi at imaging.robarts.ca
Tue Jun 22 15:20:23 EDT 2004
Hi Pallavi,
There are a couple ways to do it, but the easiest is to vtkImageImport.
You will have to supply vtkImageImport with a pointer to the array,
along with the spacing, size, and corner position of the grid.
Note that VTK calls the coordinates of the corner of the data set
the "Origin" of the data set.
- David
On Tue, 22 Jun 2004, Pallavi Joshi wrote:
> hi,
> Can somebody please tell me how to create a vtkImageData from a floating point array. I actually have a float pointer and I want to convert this flosating point data to a vtkImageData. Can somebody please help me ?
> Thanks,
> Pallavi
>
> -------------------------------------------------------------------
> Pallavi Joshi
> Graduate Student
> Medical Image Processing Lab
> Vanderbilt University
> Phone: 615-343-6259
> --------------------------------------------------------------------
>
More information about the vtkusers
mailing list