[vtkusers]ask how to read DICOM(again)

Mathieu Malaterre mathieu.malaterre at gmail.com
Mon Oct 8 04:57:23 EDT 2007


On 10/6/07, m26404030 at john.petra.ac.id <m26404030 at john.petra.ac.id> wrote:
> thanx for ur answer again, but i am not allowed to use many libraries in my
> project..i think i must use VTK only for the helping library.

If you are stuck with VTK only, your only choice is to use vtkDICOMImageReader.

> anyone can show me how to get the data such as patient age manually by reading
> the .dcm files in C++?
>
> i dont understand the data structure of .dcm files..

You certainly don't want to dive into this, trust me :)

> i have read several references but i still dont understand it. maybe someone can
> give me the example code in C++ how to do it..

  vtkDICOMImageReader *r = vtkDICOMImageReader::New()
  r->SetFileName( "image.dcm");
  r->Update();


HTH
-- 
Mathieu



More information about the vtkusers mailing list