Medical Image Properties from vtkMedicalImageReader2 always return null when loading a DICOM file
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Data from Medical Image Properties from vtkMedicalImageReader2 always return null when trying to load a DICOM file. Here is my code:
vtkMedicalImageReader2* medimg = vtkMedicalImageReader2::New();
medimg->SetFileName("I10"); //this file is placed right next to the built executable, and is a DICOM file.
medimg->Update();
printf("Patient gender: %s\n",medimg->GetMedicalImageProperties()->GetPatientSex());
printf("Age %s\n",medimg->GetMedicalImageProperties()->GetPatientAge());
printf("Modality %s\n",medimg->GetMedicalImageProperties()->GetModality());