[vtkusers] How to SetDataOrigin when I use vtkImageReslice to get sagittal and coronal images?

Liang Ma leo at esit.com
Sat Apr 18 16:17:02 EDT 2009


Hi all,

I want to get axial, sagittal and coronal images from a series of dicom files. And then get the 3D coordinate of a point in the image. Now I can see the axial image. But The sagittal and coronal images seem not correct. Most of them are black. I can only see a band on sagittal's bottom and coronal's left in few slices. 

(1) I guess the reason is I did not use  SetDataOrigin function. I tried but do not know how to choose the parameters. And when I use  SetDataOrigin, the program become very slow.

(2) In the sample program, a vtkVolume16Reader is created to read the Dicom files. I got a error:
ERROR: In E:\vtk-5.0.3\IO\vtkVolume16Reader.cxx, line 384
vtkVolume16Reader (0x023250E0): Error reading raw pgm data!
So I use vtkDICOMImageReader to read the dicom images. Is it a problem?

(3) Is there any other parameters to be set?

Thanks

Liang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20090418/fe5776d0/attachment.htm>


More information about the vtkusers mailing list