[Insight-users] Re: DICOM modified trans to ITK1.6 : Getting Patient information
Luis Ibanez
luis.ibanez at kitware.com
Sun, 08 Feb 2004 16:20:42 -0500
Hi James
Thanks for sending the modifications
you made to the DICOM reader.
The code has been integrated and commited
to the repository. An example on the use
of the new methods was added as
Insight/Examples/IO/
DicomPrintPatientInformation.cxx
It invokes the new methods you added:
dicomIO->GetPatientName( patientName );
dicomIO->GetPatientID( patientID );
dicomIO->GetPatientSex( patientSex );
dicomIO->GetPatientAge( patientAge );
dicomIO->GetStudyDate( studyDate );
dicomIO->GetModality( modality );
dicomIO->GetManufacturer( manufacturer );
dicomIO->GetInstitution( institution );
dicomIO->GetModel( model );
and print out the results.
Thanks for contributing this code to ITK.
Luis
------------------------
Hui Zhang (James) wrote:
> Hi, Luis
>
> These files are based on ITK 1.6 checked out from CVS. So this time may be
> better. Only four files modified.
>
> /IO/
> dicomimageio2.h
> /DICOMParser/
> dicomapphelper.h
> dicomapphelper.cxx
> dicomappparser.cxx
>
> Usage as before:
> char name[1024];
>
> itk::DICOMImageIO2* pDICOMImageIO2 =
> (itk::DICOMImageIO2*)m_DicomVolumeReader.m_Reader->GetImageIO();
>
> pDICOMImageIO2->GetPatientName(name);
> printf(name);
> pDICOMImageIO2->GetPatientID(name);
> printf(name);
> pDICOMImageIO2->GetPatientSex(name);
> printf(name);
> pDICOMImageIO2->GetPatientAge(name);
> printf(name);
> pDICOMImageIO2->GetStudyDate(name);
> printf(name);
> pDICOMImageIO2->GetModality(name);
> printf(name);
> pDICOMImageIO2->GetManufacturer(name);
> printf(name);
> pDICOMImageIO2->GetInstitution(name);
> printf(name);
> pDICOMImageIO2->GetModel(name);
> printf(name);
>
> I have tested it in IGMTracking and passed.
>
> Best.
> James