<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Thank you for your answer, this is the<br>DictionaryType::ConstIterator end = dictionary.End();<br>I am curious why I can get the patient weight correctly, but the following code can not<br>get Radiopharmaceutical Start Time.<br>entryId = "0018|1072";<br>tagItr = dictionary.Find( entryId );<br>You mentioned that 0018,1072 is part of the sequence, and not part of the root element. <br>How can I get the value of this key entry, I need the information to calculate the SUV <br>value of PET.<br>Thank you again.<br><br><br>> Date: Tue, 16 Dec 2008 09:25:09 +0100<br>> From: mathieu.malaterre@gmail.com<br>> To: gjtian@hotmail.com<br>> Subject: Re: [Insight-users] DICOM Header Info<br>> CC: insight-users@itk.org<br>> <br>> On Tue, Dec 16, 2008 at 5:31 AM, TienGarry <gjtian@hotmail.com> wrote:<br>> > I want to retrieve some information from dicom header, for example I can get<br>> > the patient weight correctly:<br>> ><br>> > entryId = "0010|1030";<br>> > double patientweight = 0.;<br>> > tagItr = dictionary.Find( entryId );<br>> ><br>> > but when I want to get the information like this, I can get the error<br>> > inforamtion.<br>> > entryId = "0018|1072";<br>> > tagItr = dictionary.Find( entryId );<br>> > if( tagItr == end )<br>> > {<br>> > std::cerr << "Tag " << entryId;<br>> > std::cerr << " not found in the DICOM header" << std::endl;<br>> > return EXIT_FAILURE;<br>> > }<br>> <br>> <br>> How did you defined 'end', do you mean dictionary.end() ? If so then<br>> it should work (unless you are using VS6).<br>> <br>> ><br>> > The header ifor displayed in ImageJ like this:<br>> ><br>> > 0054,0013 Energy Window Range Sequence:<br>> > 0054,0014 Energy Window Lower Limit: 350<br>> > 0054,0015 Energy Window Upper Limit: 650<br>> > 0054,0016 Radiopharmaceutical Information Sequence:<br>> > 0018,1072 Radionuclide Start Time: 090748.000000<br>> > 0018,1074 Radionuclide Total Dose: 370500000<br>> > 0018,1075 Radionuclide Half Life: 6586.2<br>> > 0018,1076 Radionuclide Positron Fraction: 0<br>> > 0054,0300 Radionuclide Code Sequence:<br>> > 0054,0081 Number of Slices: 262<br>> > 0054,0410 Patient Orientation Code Sequence:<br>> ><br>> <br>> If I were you, I would not use ImageJ anymore. The output is clearly<br>> not human readable. Looking at it you do not see that 0018,1072 is<br>> part of the sequence, and not part of the root element. So it should<br>> read:<br>> <br>> 0054,0013 Energy Window Range Sequence:<br>> 0054,0014 Energy Window Lower Limit: 350<br>> 0054,0015 Energy Window Upper Limit: 650<br>> 0054,0016 Radiopharmaceutical Information Sequence:<br>> 0018,1072 Radionuclide Start Time: 090748.000000<br>> 0018,1074 Radionuclide Total Dose: 370500000<br>> 0018,1075 Radionuclide Half Life: 6586.2<br>> 0018,1076 Radionuclide Positron Fraction: 0<br>> 0054,0300 Radionuclide Code Sequence:<br>> 0054,0081 Number of Slices: 262<br>> 0054,0410 Patient Orientation Code Sequence<br>> <br>> Indeed ITK-GDCM does not load Sequence in the MetaDataDictionary.<br>> <br>> 2cts<br>> -- <br>> Mathieu<br><br /><hr />MSN热搜榜全新升级,更多排行榜等着你! <a href=' http://top.msn.com.cn' target='_new'>立即查看!</a></body>
</html>