<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16525" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=015131906-19092007>You have to call reader->Update (), otherwise
nothing is actually read.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=015131906-19092007></SPAN></FONT> </DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=015131906-19092007>best,</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN
class=015131906-19092007>Jeroen</SPAN></FONT></DIV><BR>
<BLOCKQUOTE
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B>
vtkusers-bounces+j.s.wijnhout=lumc.nl@vtk.org
[mailto:vtkusers-bounces+j.s.wijnhout=lumc.nl@vtk.org] <B>On Behalf Of
</B>John Doe<BR><B>Sent:</B> Tuesday, September 18, 2007 6:49 PM<BR><B>To:</B>
vtkusers@vtk.org<BR><B>Subject:</B> [vtkusers] help to read DICOM
image<BR></FONT><BR></DIV>
<DIV></DIV>hello all, i need to read the information in DICOM images such as
modality, patient sex, etc..<BR><BR>i have tried to use vtkMedicalImageReader2
and vtkMedicalImageProperties, but still failed to get what i
need..<BR><BR>void main()<BR>{<BR> vtkMedicalImageReader2
*reader=vtkMedicalImageReader2::New();<BR>
reader->SetFileName("image.dcm");<BR>
printf("%s",reader->GetMedicalImageProperties()->GetPatientSex());<BR>
printf("%s",reader->GetMedicalImageProperties()->GetPatientAge());<BR>
printf("%s",reader->GetMedicalImageProperties()->GetModality());<BR>}<BR><BR>WHY
all of the functions getpatientage, getpatientsex, etc. all return NULL
value..<BR>can someone help me with this? btw, i have tried to use
vtkDICOMImageReader too, but i can only get the patientname with that class
since vtkDICOMImageReader just have GetPatientName() function..<BR>And I
guarantee that my sample DICOM images are not broken..<BR><BR><BR>Thanx in
advance..<BR><BR>Regards, John..<BR><BR>
<P>
<HR SIZE=1>
Shape Yahoo! in your own image. <A
href="http://us.rd.yahoo.com/evt=48517/*http://surveylink.yahoo.com/gmrs/yahoo_panel_invite.asp?a=7">Join
our Network Research Panel today!</A> </BLOCKQUOTE></BODY></HTML>