<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> <span style="font-style: italic; color: rgb(0, 128, 255);"> DictionaryType & dictionary = m_DiasstoledImage->GetMetaDataDictionary();</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);"> // </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);"> 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);"> std::string value;</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);"> 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);"> itk::EncapsulateMetaData<std::string>( 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);"> entryId = DistP;</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);"> value=ltostr(R);</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128,
255);"> itk::EncapsulateMetaData<std::string>( 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);"> entryId = PAngle;</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);"> value=ltostr(PAngleValue);</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);"> itk::EncapsulateMetaData<std::string>( 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);"> entryId = SAngle;</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span
style="font-style: italic; color: rgb(0, 128, 255);"> value=ltostr(SAngleValue);</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);"> itk::EncapsulateMetaData<std::string>( 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);"> compt++;</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);"> value=ltostr(compt);</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);"> 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);"> 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);"> 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);"> std::cout<<m_ProjectionFileName<<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);"> m_2DRescaler->SetInput(m_DiasstoledImage);</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);"> m_ImageWriter->SetFileName(m_ProjectionFileName);</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color:
rgb(0, 128, 255);"> m_ImageWriter->SetInput( m_2DRescaler->GetOutput() );</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);"> m_ImageWriter->SetImageIO( dicomIO );</span><br style="font-style: italic; color: rgb(0, 128, 255);"> <span style="font-style: italic; color: rgb(0, 128, 255);"> m_ImageWriter->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.