[Insight-users] change origin and spacing tags for Dicom output

Andinet Enquobahrie andinet.enqu at kitware.com
Thu Apr 27 11:41:28 EDT 2006


Laurent PAUL wrote:

>Hi users,
>
>I resample a dicom volume from another volume.
>So Spacing and origin, for example, change.
>When I export the transformed volume in Dicom, I need to change these
>information in dicom tags.
>
>How to do that?
>So far, I use GetMetaDataDictionaryArray() and set the dictionnary for the
>output volume.
>I know I can go through the dictionnary and change information, but it
>seems to be difficult (I confuse MetaDataDictionaryArray and
>MetaDataDictionary, and don't know which one to use).
>  
>
Take a look at 

Examples/IO/DicomImageReadChangeHeaderWrite.cxx

http://www.itk.org/cgi-bin/viewcvs.cgi/Examples/IO/DicomImageReadChangeHeaderWrite.cxx?rev=1.8&root=Insight&view=auto

-Andinet


>Any advice would be great!
>
>Thanks.
>
>Laurent.
>
>_______________________________________________
>Insight-users mailing list
>Insight-users at itk.org
>http://www.itk.org/mailman/listinfo/insight-users
>
>
>  
>




More information about the Insight-users mailing list