Beruflich Dokumente
Kultur Dokumente
Biomedical informatics
University of Ljubljana, Faculty of Electrical
Engineering
Autor:
dr. Tomaž Vrtovec Koldo Eizmendi Gallastegui
Laboratory of Imaging Technologies Registration number: 70081273
Academic year: 2018/2019
University of Ljubljana, Faculty of Electrical Engineering Koldo Eizmendi Gallastegui
Laboratory of Imaging Technologies
Biomedical informatics 2018/2019
Question 1
This first question asks to enclose the picture of the image stored in the DICOM file. In this case, the file I had to
analyse was image06. Using the same code as in the lecture Figure1 can be obtained.
dcmData= loadDicomFile('image06.dcm');
Question 2
This quesrion asks to create a function named getDicomTagName() that gives the desription of the data
element.
1
University of Ljubljana, Faculty of Electrical Engineering Koldo Eizmendi Gallastegui
Laboratory of Imaging Technologies
Biomedical informatics 2018/2019
iDataG=load('dcmGroups');
length (iDataG.code)
for k=1:length(iDataG.code)
if str2num(iDataG.code{k})==str2num(iTag(1:4))
break;
end
end
oGroupName=iDataG.desc{k};
iDataG=load('dcmElements');
for k=1:length(iDataG.code)
if str2num(iDataG.code{k})==str2num(iTag(1:4))
break;
end
end
oElementName=iDataG.desc{k};
end
Question 3
This question asks to write some information about some data elements. The procedure followed has
been:
1.- With the help of the ppt presentation achieve the (gggg,eeee) of each element manually.
2.- Run the programme made in the lab substituting the (gggg,eeee) used in the lab by the one that is
required.
dcmPatientName= getDicomDataElement(dcmData,'0010,0010')
3.- Take out some » ; » of the getDicomDataElement() of the function made in the lab:
if strcmp (tag,iTag)
oElement.idx=
oElement.tag=tag
oElement.VR=[char(iData(i+4)),char(iData(i+5))]
oElement.VL=iData(i+6)+iData(i+7)*256
oElement.value=iData(i+8:i+8+oElement.VL-1)
oElement.value=convertDicomValue(oElement.value,oElement.VR)
break;
end
2
University of Ljubljana, Faculty of Electrical Engineering Koldo Eizmendi Gallastegui
Laboratory of Imaging Technologies
Biomedical informatics 2018/2019
Study
Information, 0008, 0023 527 DA 8 20060408
Image Date
Study
Information, 0008, 0033 585 TM 6 134441
Image Time
Patient
Information, 0010, 0010 1295 PN 14 Anonymous1939
Patient’s name
Patient
Information, 0010, 1010 1359 AS 4 075Y
Age
Image
Information, 0028, 0010 4957 US 2 512
Rows
Image
Information, 0028, 1051 5085 DS 4 1785
Window Width
Question 4
3
University of Ljubljana, Faculty of Electrical Engineering Koldo Eizmendi Gallastegui
Laboratory of Imaging Technologies
Biomedical informatics 2018/2019
We can see that the Width and Height are 512 pixels and the BitDepth is 16bits. With these three
values the image size can be calculated:
Question 5
Write down the text that is stored between byte 129 and byte 132 in the DICOM file. What can you
conclude on the basis of the obtained text?
These four bytes contain the character string DICM. The purpose of this prefix is to recognize that the
file is or is not a DICOM file.
The text stored between these bytes is:
'DEFGHIJKLM'