Why not use vtkDICOMReader?<br><br><div class="gmail_quote">On Wed, May 18, 2011 at 10:05 PM, Lily Yang <span dir="ltr"><<a href="mailto:812683090@qq.com">812683090@qq.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hello,<br>
<br>
I also meet this problem and I doubt whether the Dicom data have been read<br>
correctly.<br>
<br>
vtkMedicalImageReader2* medimg = vtkMedicalImageReader2::New();<br>
medimg->SetFileName("E:\\Data\\1.dcm");<br>
<div class="im">medimg->Update();<br>
printf("Patient gender:<br>
%s\n",medimg->GetMedicalImageProperties()->GetPatientSex());<br>
printf("Age %s\n",medimg->GetMedicalImageProperties()->GetPatientAge());<br>
printf("Modality %s\n",medimg->GetMedicalImageProperties()->GetModality());<br>
<br>
</div>All these methods return NULL. Please tell me how to solve this problem.<br>
<br>
Kind Regard,<br>
Lily<br>
<br>
--<br>
View this message in context: <a href="http://vtk.1045678.n5.nabble.com/How-to-get-patient-s-information-using-vtkMedicalImageReader2-tp3350060p4408514.html" target="_blank">http://vtk.1045678.n5.nabble.com/How-to-get-patient-s-information-using-vtkMedicalImageReader2-tp3350060p4408514.html</a><br>
Sent from the VTK - Users mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the VTK FAQ at: <a href="http://www.vtk.org/Wiki/VTK_FAQ" target="_blank">http://www.vtk.org/Wiki/VTK_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.vtk.org/mailman/listinfo/vtkusers" target="_blank">http://www.vtk.org/mailman/listinfo/vtkusers</a><br>
</blockquote></div><br>