<span style="font-weight: bold;"></span>Hi All,<br> I ve read section <span style="font-weight: bold;">7 .1 2 .7 Changing a DICOM Header </span>in the ItkSoftwareGuide, but here we change the header of a Dicom Image. In my case, i have to create a new image and then to set some header field, how could i do that?<br> I try this but it seems not working :<br> <br> &nbsp;&nbsp;&nbsp;<span style="font-style: italic; color: rgb(0, 128, 255);"> DictionaryType &amp; dictionary = m_DiasstoledImage-&gt;GetMetaDataDictionary();</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; // &nbsp;  </span><span style="font-style: italic; color: rgb(0, 128, 255);">m_DiasstoledImage is the new image</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; std::string entryId( Dist );</span><br style="font-style: italic; color:
 rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; std::string value;</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; value=ltostr(R+RP);</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; itk::EncapsulateMetaData&lt;std::string&gt;( dictionary, entryId, value );</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; entryId = DistP;</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; value=ltostr(R);</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128,
 255);">&nbsp;&nbsp;&nbsp; itk::EncapsulateMetaData&lt;std::string&gt;( dictionary, entryId, value );</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; entryId = PAngle;</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; value=ltostr(PAngleValue);</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; itk::EncapsulateMetaData&lt;std::string&gt;( dictionary, entryId, value );</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; entryId = SAngle;</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span
 style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; value=ltostr(SAngleValue);</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; itk::EncapsulateMetaData&lt;std::string&gt;( dictionary, entryId, value );</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; compt++;</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; value=ltostr(compt);</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; strcpy(m_ProjectionFileName,"projection");</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128,
 255);">&nbsp;&nbsp;&nbsp; strcat(m_ProjectionFileName,value.c_str());</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; strcat(m_ProjectionFileName,".dcm");</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; std::cout&lt;&lt;m_ProjectionFileName&lt;&lt;std::endl;</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp;&nbsp; m_2DRescaler-&gt;SetInput(m_DiasstoledImage);</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; m_ImageWriter-&gt;SetFileName(m_ProjectionFileName);</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color:
 rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; m_ImageWriter-&gt;SetInput( m_2DRescaler-&gt;GetOutput() );</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; m_ImageWriter-&gt;SetImageIO( dicomIO );</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);">&nbsp;&nbsp;&nbsp; m_ImageWriter-&gt;Update();<br> <br> <span style="color: rgb(0, 0, 0);">thx a lot,</span><br> </span><p>
                <hr size=1> Nouveau : téléphonez moins cher avec Yahoo! Messenger ! Découvez les tarifs exceptionnels pour appeler la France et l'international.
<a href="http://us.rd.yahoo.com/messenger/mail_taglines/default/*http://fr.beta.messenger.yahoo.com">Téléchargez</a> la version beta.