[vtk-developers] [VTK 0011739]: Medical Image Properties from vtkMedicalImageReader2 always return null when loading a DICOM file
Mantis Bug Tracker
mantis at public.kitware.com
Thu Jan 20 23:57:25 EST 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=11739
======================================================================
Reported By: iono sphere
Assigned To:
======================================================================
Project: VTK
Issue ID: 11739
Category: (No Category)
Reproducibility: always
Severity: major
Priority: high
Status: new
======================================================================
Date Submitted: 2011-01-20 23:57 EST
Last Modified: 2011-01-20 23:57 EST
======================================================================
Summary: Medical Image Properties from vtkMedicalImageReader2
always return null when loading a DICOM file
Description:
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());
Additional Information:
Windows 7. Visual C++ 2010.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-01-20 23:57 iono sphere New Issue
======================================================================
More information about the vtk-developers
mailing list