[vtkusers] How to get patient's information using vtkMedicalImageReader2 ?
iono sphere
999ionospheres at gmail.com
Thu Jan 20 12:53:35 EST 2011
vtkMedicalImageReader2* medimg = vtkMedicalImageReader2::New();
medimg->SetFileName(argv[1]);
medimg->Update();
printf("Patient gender:
%s\n",medimg->GetMedicalImageProperties()->GetPatientSex());
printf("Age %s\n",medimg->GetMedicalImageProperties()->GetPatientAge());
printf("Modality %s\n",medimg->GetMedicalImageProperties()->GetModality());
I'm 100% sure that the file is already in the right place, but all these
methods return null. Am I missing something here?
Thank you in advance,
Iono
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110121/0ee9b165/attachment.htm>
More information about the vtkusers
mailing list