[vtkusers] How to get patient's information using vtkMedicalImageReader2 ?

Darshan Pai darshanpai at gmail.com
Wed May 18 23:01:45 EDT 2011


Why not use vtkDICOMReader?

On Wed, May 18, 2011 at 10:05 PM, Lily Yang <812683090 at qq.com> wrote:

> Hello,
>
> I also meet this problem and I doubt whether the Dicom data have been read
> correctly.
>
> vtkMedicalImageReader2* medimg = vtkMedicalImageReader2::New();
> medimg->SetFileName("E:\\Data\\1.dcm");
> medimg->Update();
> printf("Patient gender:
> %s\n",medimg->GetMedicalImageProperties()->GetPatientSex());
> printf("Age %s\n",medimg->GetMedicalImageProperties()->GetPatientAge());
> printf("Modality %s\n",medimg->GetMedicalImageProperties()->GetModality());
>
> All these methods return NULL. Please tell me how to solve this problem.
>
> Kind Regard,
> Lily
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/How-to-get-patient-s-information-using-vtkMedicalImageReader2-tp3350060p4408514.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110518/c45e1f30/attachment.htm>


More information about the vtkusers mailing list