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 style="color: rgb(17, 17, 17);"> <span style="color: rgb(17, 17, 17);"> </span><span style="font-style: italic; color: rgb(17, 17, 17);"> DictionaryType & dictionary = m_DiasstoledImage->GetMetaDataDictionary();</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> // m_DiasstoledImage is the new image</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> std::string entryId( Dist );</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span
style="font-style: italic; color: rgb(17, 17, 17);"> std::string value;</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> value=ltostr(R+RP);</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> itk::EncapsulateMetaData<std::string>( dictionary, entryId, value );</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> entryId = DistP;</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> value=ltostr(R);</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);">
itk::EncapsulateMetaData<std::string>( dictionary, entryId, value );</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> entryId = PAngle;</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> value=ltostr(PAngleValue);</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> itk::EncapsulateMetaData<std::string>( dictionary, entryId, value );</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> entryId = SAngle;</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color:
rgb(17, 17, 17);"> value=ltostr(SAngleValue);</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> itk::EncapsulateMetaData<std::string>( dictionary, entryId, value );</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> compt++;</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> value=ltostr(compt);</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> strcpy(m_ProjectionFileName,"projection");</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);">
strcat(m_ProjectionFileName,value.c_str());</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> strcat(m_ProjectionFileName,".dcm");</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> std::cout<<m_ProjectionFileName<<std::endl;</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> m_2DRescaler->SetInput(m_DiasstoledImage);</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> m_ImageWriter->SetFileName(m_ProjectionFileName);</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17,
17);"> m_ImageWriter->SetInput( m_2DRescaler->GetOutput() );</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(17, 17, 17);"> m_ImageWriter->SetImageIO( dicomIO );</span><br style="font-style: italic; color: rgb(17, 17, 17);"> <span style="font-style: italic; color: rgb(0, 128, 255);"><span style="color: rgb(17, 17, 17);"> m_ImageWriter->Update();</span><br style="color: rgb(17, 17, 17);"> <br> <span style="color: rgb(0, 0, 0);">thx a lot,</span></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.