[vtkusers] Question about vtkDICOMImageReader

Ma Qianli ma_nju at hotmail.com
Mon Jul 28 06:49:24 EDT 2003


mathieu,

Thanks for your prompt. I'll try this.

But I'm wondering why the class doesn't provide some direct method to get 
these informations, such as GetImageWidth, GetImageHeight?

That will be more convenient, I think. :)

NJU
Ma Qianli


>From: Mathieu Malaterre <Mathieu.Malaterre at creatis.insa-lyon.fr>
>To: Ma Qianli <ma_nju at hotmail.com>
>CC: vtkusers at vtk.org
>Subject: Re: [vtkusers] Question about vtkDICOMImageReader
>Date: Mon, 28 Jul 2003 10:45:27 +0200
>
>Ma,
>
>	You can try this in C++:
>
>vtkDICOMImageReader *reader = ...
>...
>reader->Update(); //important
>
>vtkImageData *data = reader->GetOutput();
>
>int dims[3];
>data->GetDimensions( dims );
>
>std::cout << dims[0] ...
>
>HTH
>mathieu
>
>Ma Qianli wrote:
> > How can I get info from the header of DICOM files, such as the images'
> > height and width, using vtkDICOMImageReader class?
> >
> > Thanks
> >
> > _________________________________________________________________
> > 享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com
> > _______________________________________________
> > 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://www.vtk.org/mailman/listinfo/vtkusers
> >
>
>
>--
>Mathieu Malaterre
>CREATIS
>28 Avenue du Doyen LEPINE
>B.P. Lyon-Montchat
>69394 Lyon Cedex 03
>http://www.creatis.insa-lyon.fr/~malaterre/
>

_________________________________________________________________
享用世界上最大的电子邮件系统― MSN Hotmail。  http://www.hotmail.com  




More information about the vtkusers mailing list