MantisBT - VTK
View Issue Details
0011739VTK(No Category)public2011-01-20 23:572013-06-05 16:41
iono sphere 
Jean-Christophe Fillion-Robin 
highmajoralways
closedno change required 
 
 
0011739: Medical Image Properties from vtkMedicalImageReader2 always return null when loading a DICOM file
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());
Windows 7. Visual C++ 2010.
No tags attached.
Issue History
2011-01-20 23:57iono sphereNew Issue
2011-01-24 03:31iono sphereNote Added: 0025020
2013-06-05 16:41Jean-Christophe Fillion-RobinAssigned To => Jean-Christophe Fillion-Robin
2013-06-05 16:41Jean-Christophe Fillion-RobinStatusbacklog => tabled
2013-06-05 16:41Jean-Christophe Fillion-RobinStatustabled => closed
2013-06-05 16:41Jean-Christophe Fillion-RobinResolutionopen => no change required

Notes
(0025020)
iono sphere   
2011-01-24 03:31   
Dear staff,
I have solved the problem. The bug originates from using incorrect builds. This is my fault. Please close this report.