<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Matias,</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">what worked for me was:</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default"><font face="monospace, monospace">itk::MetaDataDictionary metadata = reader->GetMetaDataDictionary();<br></font></div><div class="gmail_default"><font face="monospace, monospace">//processing...</font></div><div class="gmail_default"><font face="monospace, monospace">image->SetMetaDataDictionary(metadata);<br></font></div><div class="gmail_default"><font face="monospace, monospace">writer->SetInput(image);<br></font></div><div class="gmail_default"><font face="monospace, monospace">writer->Update();</font></div><div class="gmail_default"><font face="verdana, sans-serif"><br></font></div><div class="gmail_default"><font face="verdana, sans-serif">Regards,</font></div><div class="gmail_default"><font face="verdana, sans-serif">Dženan</font></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Mar 13, 2017 at 8:31 AM, Matias <span dir="ltr"><<a href="mailto:matimontg@gmail.com" target="_blank">matimontg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
I'm reading a directory which contains a series of Dicoms and then writting<br>
an .mha or .mhd file.<br>
<br>
I noticed the tags are lost (patient name, capture device, dates, series<br>
names, etc).<br>
<br>
How can I keep this information? I use a resampler filter and I have tried:<br>
resampler-><wbr>SetMetaDataDictionary(reader-><wbr>GetMetaDataDictionary());<br>
writer->SetInput(resampler-><wbr>GetOutput());<br>
writer-><wbr>UseInputMetaDataDictionaryOn()<wbr>;<br>
<br>
With no luck..<br>
<br>
Thank you,<br>
<br>
Matias.<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://itk-users.7.n7.nabble.com/DicomTags-when-reading-directory-and-generating-mha-or-mhd-tp37989.html" rel="noreferrer" target="_blank">http://itk-users.7.n7.nabble.<wbr>com/DicomTags-when-reading-<wbr>directory-and-generating-mha-<wbr>or-mhd-tp37989.html</a><br>
Sent from the ITK - Users mailing list archive at Nabble.com.<br>
______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
</blockquote></div><br></div>