[Insight-users] Re: CT or MR? How to know it from the DICOM header

Ivan Macia imacia at vicomtech.es
Thu Nov 25 05:05:16 EST 2004


Alam, Mathieu,

I checked the DICOM standard and seems like 0008 0060 "Modality" is an
attribute of type 1 this is, the element must appear and cannot have length
zero, correct me if im wrong. In any case, SOP Class Name should be also
valid.

Hope that helps

Ivan


-----Mensaje original-----
De: insight-users-bounces at itk.org
[mailto:insight-users-bounces at itk.org]En nombre de Mathieu Malaterre
Enviado el: miercoles, 24 de noviembre de 2004 22:01
Para: Alam, Mohammed
CC: Insight-users at itk.org
Asunto: Re: [Insight-users] Re: CT or MR? How to know it from the DICOM
header


Alam,

	I do not believe 'Modality' is a compulsary field. But you should
always be able to find the SOP Class Name from the DICOM Image:

http://imagerie.apteryx.fr/dicom/dicom_conformance.html

For instance you could find:

1.2.840.10008.5.1.4.1.1.2 which is CT Image Storage

or

1.2.840.10008.5.1.4.1.1.4 which is MR Image Storage

HTH
Mathieu

Luis Ibanez wrote:
>
> Hi Alam,
>
> Yes, you can check if the image modality stored
> in a DICOM file is MRI or CT by using the IO
> classes in ITK.
>
>
> You will have to look for the tag:
>
>       0008 0060   "Modality"
>
>
> For an example on how to do this,
> please look at the file
>
>    Insight/Examples/IO/
>              DicomSeriesReadPrintTags.cxx
>
>
> Go to line 106 and change
>
>               "Patient Name"
>
> for
>
>                "Modality".
>
>
>
> You will get as values:
>
>
>              "MR" or "CT".
>
>
>
>    Regards,
>
>
>
>       Luis
>
>
> ------------------------
> Alam, Mohammed wrote:
>
>> Hello Luis
>>
>> Is there a way to read a dicom file and check if it is MR or CT image
>> using ITK?
>>
>> Thanks
>> Alam
>>
>>
>
>
>
>
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
>



_______________________________________________
Insight-users mailing list
Insight-users at itk.org
http://www.itk.org/mailman/listinfo/insight-users



More information about the Insight-users mailing list