<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Markus,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">doesn't <a href="https://itk.org/Doxygen/html/classitk_1_1MetaDataDictionary.html#a6c98b23c05798b6b616376ce060774c4">Set</a> method do what you want?</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 6, 2017 at 11:55 AM, Markus Gramer <span dir="ltr"><<a href="mailto:markus.gramer@kuleuven.be" target="_blank">markus.gramer@kuleuven.be</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word;color:rgb(0,0,0);font-size:14px;font-family:Calibri,sans-serif">
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">
Hi everyone,</div>
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">
<br>
</div>
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">
I was wondering if there is a way to add non-existing DICOM tags to a MetaDataDictionary?</div>
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">
<br>
</div>
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">
I would like to export an image in Nifti format (pixel data type: float) to a DICOM image series. To do so, I read a reference DICOM image series, modify several tags in the MetaDataDictionaryArray and assign the Nifti image, rescaled to the range of unsigned
short, together with the modified meta data to an image series writer. </div>
<div style="color:rgb(0,0,0);font-family:Calibri,sans-serif;font-size:14px">
My idea was to modify the rescale intercept and slope tags (i.e. 0028|1052 and 0028|1053) accordingly so I could approximate the float values of the Nifti input image.</div>
<div><font face="Calibri,sans-serif">However, some DICOM images don’t seem to have the rescale intercept and slope tags, so I cannot modify them with itk::EncapsulateMetaData().</font></div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div><font face="Calibri,sans-serif">Thanks in advance for any input,</font></div>
<div><font face="Calibri,sans-serif"><br>
</font></div>
<div><font face="Calibri,sans-serif">Markus</font></div>
</div>
<br>______________________________<wbr>_________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/mailman/listinfo/community" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>