[vtkusers] about vtkImageData
Mathieu Malaterre
mathieu.malaterre at gmail.com
Tue Jun 30 10:31:52 EDT 2009
On Tue, Jun 30, 2009 at 3:07 PM, Lic. José M. Rodriguez
Bacallao<jmrbcu at gmail.com> wrote:
> how to populate a vtkImageData with pixel data from a dicom image
> (pydicom, I 'm using python), pixel data could be a numpy array or a
> string of bytes, until now, I've been using vtkGDCMImageReader but I
> am exploring new horizons!!!
If you have installed gdcm (vtkGDCMImageReader) there are a couple of
lower level functionality for passing the byte buffer from a
gdcm.ImageReader to Numpy.
I do not understand why you would do that: gdcm.ImageReader -> Numpy
-> vtkImageData instead of the direct vtkGDCMImageReader, since you
basically would have to duplicate the logic from vtkGDCMImageReader...
--
Mathieu
More information about the vtkusers
mailing list