[vtkusers]information in DICOM image
m26404030 at john.petra.ac.id
m26404030 at john.petra.ac.id
Fri Sep 7 21:07:11 EDT 2007
I have tried to use vtkMedicalImageReader2 to read my medical image data but
I couldn't get any information i needed.
This is my code
void main()
{
vtkMedicalImageReader2 *reader=vtkMedicalImageReader2::New();
reader->SetFileName("IM2.dcm");
reader->Update();
printf("%s",reader->GetMedicalImageProperties()->GetPatientName());
printf("%s",reader->GetMedicalImageProperties()->GetPatientSex());
printf("%s",reader->GetMedicalImageProperties()->GetPatientBirthDate());
printf("%s",reader->GetMedicalImageProperties()->GetImageNumber());
printf("%s",reader->GetMedicalImageProperties()->GetSeriesNumber());
}
all of these functions such as GetPatientName(),GetPatientSex(), etc return null
value.
I dont know why..
Can someone give some examples how to use vtkMedicalImageReader2?
Thanx a lot :-)
More information about the vtkusers
mailing list