<div dir="ltr">Awesome, thanks! </div><br><div class="gmail_quote"><div dir="ltr">El mié., 5 de abr. de 2017 a la(s) 09:57, Lowekamp, Bradley (NIH/NLM/LHC) [C] [via ITK - Users] <<a href="/user/SendEmail.jtp?type=node&node=38073&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>> escribió:<br></div><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        




Hello Matias,
<div class="gmail_msg"><br class="gmail_msg">
</div>
<div class="gmail_msg">Ziv's patch was merged into SimpleITK’s master branch yesterday. The CDash builds[1] compiled the update and created binaries which are linked in the golden boxes. I believe you want CSharp for window 64[2].</div>
<div class="gmail_msg"><br class="gmail_msg">
</div>
<div class="gmail_msg">Enjoy!</div>
<div class="gmail_msg">Brad</div>
<div class="gmail_msg"><br class="gmail_msg">
</div>
<div class="gmail_msg">[1] <a href="https://open.cdash.org/index.php?project=SimpleITK" rel="nofollow" link="external" class="gmail_msg" target="_blank">https://open.cdash.org/index.php?project=SimpleITK</a></div>
<div class="gmail_msg">[2] <a href="https://open.cdash.org/viewFiles.php?buildid=4839224" rel="nofollow" link="external" class="gmail_msg" target="_blank">https://open.cdash.org/viewFiles.php?buildid=4839224</a></div>
<div class="gmail_msg"><div class="gmail_msg"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" type="cite" class="gmail_msg">
<div class="gmail_msg">On Apr 2, 2017, at 9:58 AM, Yaniv, Ziv Rafael (NIH/NLM/LHC) [C] <<a href="http:///user/SendEmail.jtp?type=node&node=38072&i=0" rel="nofollow" link="external" class="gmail_msg" target="_blank">[hidden email]</a>> wrote:</div>
<br class="m_4967415694725552749Apple-interchange-newline gmail_msg">
</blockquote></div></div><div class="gmail_msg"><div class="gmail_msg"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" type="cite" class="gmail_msg"><div class="gmail_msg"><div class="m_4967415694725552749WordSection1 gmail_msg" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-size:10.5pt;font-family:Calibri" class="gmail_msg">Hi Matias,<u class="gmail_msg"></u><u class="gmail_msg"></u></span></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-size:10.5pt;font-family:Calibri" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-size:10.5pt;font-family:Calibri" class="gmail_msg">We should get it into the main SimpleITK repository shortly (after testing etc..). For now please follow Dženan’s recommendation (clone my forked repository, checkout the dicomWrite branch and
 build SimpleITK from that branch).<u class="gmail_msg"></u><u class="gmail_msg"></u></span></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-size:10.5pt;font-family:Calibri" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-size:10.5pt;font-family:Calibri" class="gmail_msg">     regards<u class="gmail_msg"></u><u class="gmail_msg"></u></span></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-size:10.5pt;font-family:Calibri" class="gmail_msg">        Ziv</span><span style="font-size:11pt;font-family:Calibri" class="gmail_msg"><u class="gmail_msg"></u><u class="gmail_msg"></u></span></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-size:11pt;font-family:Calibri" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></div>
</div></div></blockquote></div></div><div class="gmail_msg"><div class="gmail_msg"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" type="cite" class="gmail_msg"><div class="gmail_msg"><div class="m_4967415694725552749WordSection1 gmail_msg" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in" class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<b class="gmail_msg"><span style="font-family:Calibri" class="gmail_msg">From:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span></span></b><span style="font-family:Calibri" class="gmail_msg">Dženan Zukić <<a href="http:///user/SendEmail.jtp?type=node&node=38072&i=1" rel="nofollow" link="external" class="gmail_msg" target="_blank">[hidden email]</a>></span><span style="font-family:PMingLiU" class="gmail_msg"><br class="gmail_msg">
</span><b class="gmail_msg"><span style="font-family:Calibri" class="gmail_msg">Date:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span></span></b><span style="font-family:Calibri" class="gmail_msg">Saturday, April 1, 2017 at 9:37 AM<br class="gmail_msg">
<b class="gmail_msg">To:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span></b>Matias <<a href="http:///user/SendEmail.jtp?type=node&node=38072&i=2" rel="nofollow" link="external" class="gmail_msg" target="_blank">[hidden email]</a>><br class="gmail_msg">
<b class="gmail_msg">Cc:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span></b>Insight-users <<a href="http:///user/SendEmail.jtp?type=node&node=38072&i=3" rel="nofollow" link="external" class="gmail_msg" target="_blank">[hidden email]</a>></span></div></div></div></div></blockquote></div></div><div class="gmail_msg"><div class="gmail_msg"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" type="cite" class="gmail_msg"><div class="gmail_msg"><div class="m_4967415694725552749WordSection1 gmail_msg" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in" class="gmail_msg"><div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg"><span style="font-family:Calibri" class="gmail_msg"><br class="gmail_msg">
<b class="gmail_msg">Subject:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span></b>Re: [ITK-users] [ITK] SimpleITK Serieswriter and DicomTags<u class="gmail_msg"></u><u class="gmail_msg"></u></span></div></div></div></div></blockquote></div></div><div class="gmail_msg"><div class="gmail_msg"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" type="cite" class="gmail_msg"><div class="gmail_msg"><div class="m_4967415694725552749WordSection1 gmail_msg" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)">
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-family:Verdana" class="gmail_msg">Hi Matias,<u class="gmail_msg"></u><u class="gmail_msg"></u></span></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-family:Verdana" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-family:Verdana" class="gmail_msg">you should use branch dicomWrite from<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="https://github.com/zivy/SimpleITK/tree/dicomWrite" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">Ziv's fork</a>.<u class="gmail_msg"></u><u class="gmail_msg"></u></span></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-family:Verdana" class="gmail_msg"><u class="gmail_msg"></u> <u class="gmail_msg"></u></span></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-family:Verdana" class="gmail_msg">Regards,<u class="gmail_msg"></u><u class="gmail_msg"></u></span></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-family:Verdana" class="gmail_msg">Dženan<u class="gmail_msg"></u><u class="gmail_msg"></u></span></div>
</div>
</div>
</div></div></blockquote></div></div><div class="gmail_msg"><div class="gmail_msg"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #cccccc;padding:0 1em" type="cite" class="gmail_msg"><div class="gmail_msg"><div class="m_4967415694725552749WordSection1 gmail_msg" style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant-caps:normal;font-weight:normal;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(255,255,255)"><div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<u class="gmail_msg"></u> <u class="gmail_msg"></u></div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
On Sat, Apr 1, 2017 at 2:48 AM, Matias <<a href="http:///user/SendEmail.jtp?type=node&node=38072&i=4" rel="nofollow" link="external" class="gmail_msg" target="_blank">[hidden email]</a>> wrote:<u class="gmail_msg"></u><u class="gmail_msg"></u></div>

<div class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin:0in 0in 12pt;font-size:12pt;font-family:'Times New Roman'">
Thanks Yaniv. So how do I get this branch? I simply download the latest version of SimpleITK?<u class="gmail_msg"></u><u class="gmail_msg"></u></p>
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
El vie., 31 de mar. de 2017 a la(s) 19:18, Yaniv, Ziv Rafael (NIH/NLM/LHC) [C] [via ITK - Users] <<a href="http://user/SendEmail.jtp?type=node&node=38064&i=0" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">[hidden email]</a>> escribió:<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>

<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><span style="font-size:11pt;font-family:Calibri" class="gmail_msg">Hello Matias,</span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><span style="font-size:11pt;font-family:Calibri" class="gmail_msg"> </span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><span style="font-size:11pt;font-family:Calibri" class="gmail_msg">Please take a look at the following github pull request (<a href="https://github.com/SimpleITK/SimpleITK/pull/134)" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">https://github.com/SimpleITK/SimpleITK/pull/134)</a>,
 this branch should provide the functionality you are looking for. See the Python example script included in the commit for the usage of the DICOM series writing.</span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><span style="font-size:11pt;font-family:Calibri" class="gmail_msg"> </span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><span style="font-size:11pt;font-family:Calibri" class="gmail_msg">     hope this helps</span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><span style="font-size:11pt;font-family:Calibri" class="gmail_msg">            Ziv</span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><span style="font-size:11pt;font-family:Calibri" class="gmail_msg"> </span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><span style="font-size:11pt;font-family:Calibri" class="gmail_msg"> </span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in" class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><b class="gmail_msg"><span style="font-family:Calibri" class="gmail_msg">From:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span></span></b></span><span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><span style="font-family:Calibri" class="gmail_msg">Matias
 <<a href="http://user/SendEmail.jtp?type=node&node=38063&i=0" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">[hidden email]</a>></span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
</div>
<div class="gmail_msg">
<div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in" class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-family:Calibri" class="gmail_msg"><br class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><b class="gmail_msg">Date:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span></b>Thursday, March 30, 2017 at 12:14 PM</span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
</div>
<div class="gmail_msg">
<div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in" class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><b class="gmail_msg"><span style="font-family:Calibri" class="gmail_msg">To:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span></span></b></span><span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><span style="font-family:Calibri" class="gmail_msg">"<a href="http://user/SendEmail.jtp?type=node&node=38063&i=1" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">[hidden
 email]</a>" <<a href="http://user/SendEmail.jtp?type=node&node=38063&i=2" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">[hidden email]</a>></span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
</div>
<div class="gmail_msg">
<div class="gmail_msg">
<div class="gmail_msg">
<div style="border-style:solid none none;border-top-color:rgb(181,196,223);border-top-width:1pt;padding:3pt 0in 0in" class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-family:Calibri" class="gmail_msg"><br class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><b class="gmail_msg">Subject:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span></b>Re: [ITK-users] [ITK] SimpleITK Serieswriter and DicomTags</span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
</div>
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
Yes, this is what I would need to migrate to C#:<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
</div>
<div class="gmail_msg">
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
It basically reads a dicom directory and performs rotation on the volume, then writes the resulting images back to a directory, copying the tags from the original images.<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include "itkImage.h"<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include "itkGDCMImageIO.h"<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include "itkGDCMSeriesFileNames.h"<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include "itkImageSeriesReader.h"<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include "itkResampleImageFilter.h"<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include "itkEuler3DTransform.hxx"<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include "gdcmUIDGenerator.h"<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include "itkImageFileWriter.h"<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include "itkImageSeriesWriter.h"<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include "itkNumericSeriesFileNames.h"<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include "itkTranslationTransform.h"<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include "string.h";<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include <itkSliceIterator.h><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include <iostream><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include <string><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
#include <fstream><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
static void CopyDictionary(itk::MetaDataDictionary &fromDict,<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::MetaDataDictionary &toDict);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
int main(int argc, char* argv[])<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
if (argc < 8)<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cerr << "Uso: " << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cerr << argv[0] << " Directorio_A_Rotar  DirectorioResultante Gamma Beta Alfa CentroRotacionX CentroRotacionY CentroRotacionZ"<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<< std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
return EXIT_FAILURE;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef signed short    PixelType;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
const unsigned int      Dimension = 3;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
const unsigned int Dimension_Serie = 2;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef itk::Image< PixelType, Dimension >         ImageType;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef itk::Image<PixelType, Dimension_Serie> ImageType_Serie;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef itk::ImageSeriesReader< ImageType >        ReaderType;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
ReaderType::Pointer reader = ReaderType::New();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef itk::GDCMImageIO       ImageIOType;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
ImageIOType::Pointer gdcmIO = ImageIOType::New();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
reader->SetImageIO(gdcmIO);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef itk::GDCMSeriesFileNames NamesGeneratorType;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
NamesGeneratorType::Pointer nameGenerator = NamesGeneratorType::New();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
nameGenerator->SetUseSeriesDetails(true);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
nameGenerator->AddSeriesRestriction("0008|0021");<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
nameGenerator->SetDirectory(argv[1]);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
try<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << std::endl << "The directory: " << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << std::endl << argv[1] << std::endl << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << "Contains the following DICOM Series: ";<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << std::endl << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef std::vector< std::string >    SeriesIdContainer;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
const SeriesIdContainer & seriesUID = nameGenerator->GetSeriesUIDs();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
SeriesIdContainer::const_iterator seriesItr = seriesUID.begin();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
SeriesIdContainer::const_iterator seriesEnd = seriesUID.end();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
while (seriesItr != seriesEnd)<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << seriesItr->c_str() << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
++seriesItr;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::string seriesIdentifier;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
seriesIdentifier = seriesUID.begin()->c_str();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << std::endl << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << "Now reading series: " << std::endl << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << seriesIdentifier << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << std::endl << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef std::vector< std::string >   FileNamesContainer;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
FileNamesContainer fileNames;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
fileNames = nameGenerator->GetFileNames(seriesIdentifier);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
reader->SetFileNames(fileNames);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
try<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
reader->Update();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
catch (itk::ExceptionObject &ex)<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << ex << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
return EXIT_FAILURE;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
const ImageType * inputImage = reader->GetOutput();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
/*int numerodedicoms = inputImage->GetLargestPossibleRegion().GetSize()[2];<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
int dicomcentral = numerodedicoms / 2;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << "Dimenion " <<  dicomcentral << std::endl;*/<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
//itk::EncapsulateMetaData<std::string>(dictionary, "0020|0032","-208\\-236\\66");<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef itk::ResampleImageFilter<ImageType, ImageType> FilterType;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
FilterType::Pointer FiltroResample = FilterType::New();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
FiltroResample->SetInput(reader->GetOutput());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef itk::LinearInterpolateImageFunction<ImageType, double > InterpolatorType;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
InterpolatorType::Pointer interpolator = InterpolatorType::New();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
FiltroResample->SetInterpolator(interpolator);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
FiltroResample->SetOutputDirection(inputImage->GetDirection());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
FiltroResample->SetOutputOrigin(inputImage->GetOrigin());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
ImageType::SizeType inputSize = inputImage->GetLargestPossibleRegion().GetSize();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
FiltroResample->SetSize(inputSize);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
const ImageType::SpacingType& inputSpacing = inputImage->GetSpacing();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
FiltroResample->SetOutputSpacing(inputSpacing);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
FiltroResample->SetDefaultPixelValue(-1000); //Cambiar por un parametro<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef itk::Euler3DTransform< double > TransformType; //Transform<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
TransformType::Pointer transform = TransformType::New();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
double alfa, beta, gamma, centro_rotacion_X, centro_rotacion_Y, centro_rotacion_Z;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
gamma = atof(argv[3]); <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
beta= atof(argv[4]);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
alfa = atof(argv[5]);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
centro_rotacion_X = atof(argv[6]);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
centro_rotacion_Y = atof(argv[7]);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
centro_rotacion_Z = atof(argv[8]);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
transform->SetRotation(gamma, beta, alfa); //Radianes en el siguiente orden en ITK: Gamma, Beta, Alfa | Ibarra<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
//double centro[3] = { -14.8371, -54.9443, 175.75 }; //XmmPromedio, YmmPromedio, Z Central (mm): Leer directorio y tomar la del medio<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
double centro[3] = { centro_rotacion_X, centro_rotacion_Y, centro_rotacion_Z }; //XmmPromedio, YmmPromedio, Z Central (mm): Leer directorio y tomar la del medio<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
transform->SetCenter(centro);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << "Centro: " << std::endl << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << transform->GetCenter() << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
FiltroResample->SetTransform(transform);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
//FiltroResample->SetMetaDataDictionary(dictionary);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
try<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
FiltroResample->Update();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
catch (itk::ExceptionObject &ex)<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
return EXIT_FAILURE;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
ReaderType::DictionaryRawPointer inputDict = (*(reader->GetMetaDataDictionaryArray()))[0];<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
ReaderType::DictionaryArrayType outputArray;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
//std::cout << "array: " << std::endl << outputArray[0] << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// To keep the new series in the same study as the original we need<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// to keep the same study UID. But we need new series and frame of<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// reference UID's.<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
gdcm::UIDGenerator suid;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
//std::string seriesUID = suid.Generate();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
gdcm::UIDGenerator fuid;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::string frameOfReferenceUID = fuid.Generate();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::string studyUID;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::string sopClassUID;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::ExposeMetaData<std::string>(*inputDict, "0020|000d", studyUID);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::ExposeMetaData<std::string>(*inputDict, "0008|0016", sopClassUID);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
gdcmIO->KeepOriginalUIDOn();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
using namespace std;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
double myArray_Z[70]; //Cambiar esto por un argumento que especifica la cantidad de imagenes.<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
double myArray_X[70]; //Cambiar esto por un argumento que especifica la cantidad de imagenes.<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
double myArray_Y[70]; //Cambiar esto por un argumento que especifica la cantidad de imagenes.<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
ifstream file("file.txt");<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
if (<a href="http://file.is" rel="nofollow" link="external" class="gmail_msg" target="_blank">file.is</a>_open())<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
for (int i = 0; i < 70; ++i) //Recordar cambiar por el argumento que especifica cantidad de imagenes<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
file >> myArray_Z[i];<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << "valor primer Z array: " << std::endl << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << myArray_Z[0] << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
for (unsigned int f = 0; f < inputSize[2]; f++)<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Create a new dictionary for this slice<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
ReaderType::DictionaryRawPointer dict = new ReaderType::DictionaryType;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Copy the dictionary from the first slice<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
CopyDictionary(*inputDict, *dict);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Set the UID's for the study, series, SOP  and frame of reference<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::EncapsulateMetaData<std::string>(*dict, "0020|000d", studyUID);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
//itk::EncapsulateMetaData<std::string>(*dict, "0020|000e", seriesUID);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::EncapsulateMetaData<std::string>(*dict, "0020|0052", frameOfReferenceUID);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
gdcm::UIDGenerator sopuid;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::string sopInstanceUID = sopuid.Generate();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::EncapsulateMetaData<std::string>(*dict, "0008|0018", sopInstanceUID);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::EncapsulateMetaData<std::string>(*dict, "0002|0003", sopInstanceUID);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Change fields that are slice specific<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::ostringstream value;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value.str("");<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value << f + 1;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Image Number<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::EncapsulateMetaData<std::string>(*dict, "0020|0013", value.str());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Series Description - Append new description to current series<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// description<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::string oldSeriesDesc;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::ExposeMetaData<std::string>(*inputDict, "0008|103e", oldSeriesDesc);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value.str("");<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value << oldSeriesDesc<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<< ": Resampled with pixel spacing "<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<< inputSpacing[0] << ", "<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<< inputSpacing[1] << ", "<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<< inputSpacing[2];<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// This is an long string and there is a 64 character limit in the<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// standard<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
unsigned lengthDesc = value.str().length();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::string seriesDesc(value.str(), 0,<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
lengthDesc > 64 ? 64<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
: lengthDesc);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::EncapsulateMetaData<std::string>(*dict, "0008|103e", seriesDesc);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Series Number<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value.str("");<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value << 1001;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::EncapsulateMetaData<std::string>(*dict, "0020|0011", value.str());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Derivation Description - How this image was derived<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value.str("");<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
for (int i = 0; i < argc; i++)<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value << argv[i] << " ";<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
lengthDesc = value.str().length();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::string derivationDesc(value.str(), 0,<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
lengthDesc > 1024 ? 1024<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
: lengthDesc);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::EncapsulateMetaData<std::string>(*dict, "0008|2111", derivationDesc);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Image Position Patient: This is calculated by computing the<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// physical coordinate of the first pixel in each slice.<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
ImageType::PointType position;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
ImageType::IndexType index;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
index[0] = 0;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
index[1] = 0;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
index[2] = myArray_Z[f];<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
FiltroResample->GetOutput()->TransformIndexToPhysicalPoint(index, position);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
//El origen que calculamos en el proyecto no se toca. (Origen = origen - average)<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
//Cambiamos el ImageOrientationPatient SOLAMENTE si el valor original en la imagen es: 1\0\0\0\1\0. En el caso que se cambia el signo, se debe cambiar el signo del origen<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
//value.str("");<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
//value << -1 << "\\" << 0 << "\\" << 0 << "\\" << 0 << "\\" << -1 << "\\" << 0; //PASAR ESTO POR ARGUMENTO!!!<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
//itk::EncapsulateMetaData<std::string>(*dict, "0020|0037", value.str());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value.str("");<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value << -235.1629 << "\\" << -195.0557 << "\\" << myArray_Z[f]; //PASAR ESTO POR ARGUMENTO!!! El origen - Centro<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::EncapsulateMetaData<std::string>(*dict, "0020|0032", value.str());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Slice Location: For now, we store the z component of the Image<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Position Patient.<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value.str("");<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value << position[2];<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::EncapsulateMetaData<std::string>(*dict, "0020|1041", value.str());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Slice Thickness: For now, we store the z spacing<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value.str("");<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value << inputSpacing[2];<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::EncapsulateMetaData<std::string>(*dict, "0018|0050",<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value.str());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Spacing Between Slices<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::EncapsulateMetaData<std::string>(*dict, "0018|0088",<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
value.str());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
// Save the dictionary<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
outputArray.push_back(dict);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef itk::ImageFileWriter< ImageType > WriterType;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
WriterType::Pointer writer = WriterType::New();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef itk::ImageSeriesWriter< ImageType, ImageType_Serie > SeriesWriterType;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
SeriesWriterType::Pointer seriesWriter = SeriesWriterType::New();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
seriesWriter->SetInput(FiltroResample->GetOutput());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
writer->SetFileName(argv[2]);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
writer->SetInput(FiltroResample->GetOutput());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itksys::SystemTools::MakeDirectory("Test"); //PASAR ESTO POR ARGUMENTO!!<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef itk::NumericSeriesFileNames OutputNamesGeneratorType;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
OutputNamesGeneratorType::Pointer outputNames = OutputNamesGeneratorType::New();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::string seriesFormat("Test"); //PASAR ESTO POR ARGUMENTO!!<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
seriesFormat = seriesFormat + "/" + "IM%d.dcm";<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
outputNames->SetSeriesFormat(seriesFormat.c_str());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
outputNames->SetStartIndex(1);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
outputNames->SetEndIndex(inputSize[2]);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
seriesWriter->SetImageIO(gdcmIO);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
seriesWriter->SetFileNames(outputNames->GetFileNames());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
seriesWriter->SetMetaDataDictionaryArray(&outputArray);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << "Escribiendo la imagen como..." << std::endl << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << argv[2] << std::endl << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
try<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
writer->Update();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
seriesWriter->Update();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
catch (itk::ExceptionObject &ex)<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << ex << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
return EXIT_FAILURE;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
catch (itk::ExceptionObject &ex)<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::cout << ex << std::endl;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
return EXIT_FAILURE;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
return EXIT_SUCCESS;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
void CopyDictionary(itk::MetaDataDictionary &fromDict, itk::MetaDataDictionary &toDict)<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef itk::MetaDataDictionary DictionaryType;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
DictionaryType::ConstIterator itr = fromDict.Begin();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
DictionaryType::ConstIterator end = fromDict.End();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
typedef itk::MetaDataObject< std::string > MetaDataStringType;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
while (itr != end)<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::MetaDataObjectBase::Pointer  entry = itr->second;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
MetaDataStringType::Pointer entryvalue =<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
dynamic_cast<MetaDataStringType *>(entry.GetPointer());<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
if (entryvalue)<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
{<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::string tagkey = itr->first;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
std::string tagvalue = entryvalue->GetMetaDataObjectValue();<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
itk::EncapsulateMetaData<std::string>(toDict, tagkey, tagvalue);<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
++itr;<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
}<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
El jue., 30 de mar. de 2017 a la(s) 11:25, Lowekamp, Bradley (NIH/NLM/LHC) [C] [via ITK - Users] <[hidden email]> escribió:<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>

<p class="MsoNormal gmail_msg" style="margin:0in 0in 12pt;font-size:12pt;font-family:'Times New Roman'">
Hello,<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<br class="gmail_msg">
Writing correct DICOM continues to be a struggle with SimpleITK and ITK. It is generally recommended to directly use GDCM or DCMTK to write a proper DICOM series.<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<br class="gmail_msg">
SimpleITK tries to keep things, well, simple and straight forward. But ITK ties to do some smart things, which get in the way for certain uses with SimpleITK. We are trying to document and develop a nominal set of DICOM output operations that work in SimpleITK.<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<br class="gmail_msg">
Do you have working C++ code that works for your intended operation? Can you share a small section of code which does what you expect it C++?<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<br class="gmail_msg">
Thank,<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
Brad<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<br class="gmail_msg">
<u class="gmail_msg"></u><u class="gmail_msg"></u></p>
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<br class="gmail_msg">
> On Mar 30, 2017, at 8:49 AM, Matias <<a href="http://user/SendEmail.jtp?type=node&node=38052&i=0" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">[hidden email]</a>> wrote:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> Hi,<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> I've been dealing with ITK for years in C++ and now I would need to use<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> SimpleITK and C# as far as I can in a new proyect.<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> Is the SimpleITK SeriesWriter working for Dicom Files? Last time I tried to<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> use it I had problems with the DicomTags, these would not copy or there was<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> no method to copy the tags to the resulting slices.<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> Currently, I read a volume of slices, apply rotation and then I need to<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> write the resulting image as another set of slices AND keeping tag<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> information such as patient name, etc.<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> Thank you,<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> Matias.<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> --<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> View this message in context:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://itk-users.7.n7.nabble.com/SimpleITK-Serieswriter-and-DicomTags-tp38050.html" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://itk-users.7.n7.nabble.com/SimpleITK-Serieswriter-and-DicomTags-tp38050.html</a><br class="gmail_msg">
> Sent from the ITK - Users mailing list archive at <a href="http://nabble.com" rel="nofollow" link="external" class="gmail_msg" target="_blank">
Nabble.com</a>.<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> _____________________________________<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> Powered by<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://www.kitware.com/" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">www.kitware.com</a><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> Visit other Kitware open-source projects at<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://www.kitware.com/opensource/opensource.html" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> Kitware offers ITK Training Courses, for more information visit:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://www.kitware.com/products/protraining.php" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://www.kitware.com/products/protraining.php</a><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> Please keep messages on-topic and check the ITK FAQ at:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://www.itk.org/Wiki/ITK_FAQ" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> Follow this link to subscribe/unsubscribe:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://public.kitware.com/mailman/listinfo/insight-users" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br class="gmail_msg">
> _______________________________________________<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
> Community mailing list<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://user/SendEmail.jtp?type=node&node=38052&i=1" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">[hidden email]</a><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://public.kitware.com/mailman/listinfo/community" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://public.kitware.com/mailman/listinfo/community</a><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<p class="MsoNormal gmail_msg" style="margin:0in 0in 12pt;font-size:12pt;font-family:'Times New Roman'">
<br class="gmail_msg">
_____________________________________<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
Powered by<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://www.kitware.com/" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">www.kitware.com</a><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<br class="gmail_msg">
Visit other Kitware open-source projects at<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<a href="http://www.kitware.com/opensource/opensource.html" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br class="gmail_msg">
<br class="gmail_msg">
Kitware offers ITK Training Courses, for more information visit:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<a href="http://www.kitware.com/products/protraining.php" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://www.kitware.com/products/protraining.php</a><br class="gmail_msg">
<br class="gmail_msg">
Please keep messages on-topic and check the ITK FAQ at:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<a href="http://www.itk.org/Wiki/ITK_FAQ" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br class="gmail_msg">
<br class="gmail_msg">
Follow this link to subscribe/unsubscribe:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<a href="http://public.kitware.com/mailman/listinfo/insight-users" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><u class="gmail_msg"></u><u class="gmail_msg"></u></p>
<div class="MsoNormal gmail_msg" align="center" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman';text-align:center">
<hr size="1" width="100%" noshade align="center" style="color:rgb(204,204,204)" class="gmail_msg">
</div>
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><b class="gmail_msg"><span style="font-size:9pt;font-family:Geneva;color:rgb(68,68,68)" class="gmail_msg">If you reply to this email, your message will be added to the discussion below:</span></b></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><span style="font-size:9pt;font-family:Geneva;color:rgb(68,68,68)" class="gmail_msg"><a href="http://itk-users.7.n7.nabble.com/SimpleITK-Serieswriter-and-DicomTags-tp38050p38052.html" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://itk-users.7.n7.nabble.com/SimpleITK-Serieswriter-and-DicomTags-tp38050p38052.html</a></span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div style="margin-top:4.8pt" class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman';line-height:18pt" class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><span style="font-size:8.5pt;font-family:Geneva;color:rgb(102,102,102)" class="gmail_msg">To unsubscribe from SimpleITK Serieswriter and DicomTags, click here.</span></span><span style="font-size:8.5pt;font-family:Geneva;color:rgb(102,102,102)" class="gmail_msg"><br class="gmail_msg">
<span class="m_4967415694725552749m7380090971284168540gmailmsg gmail_msg"><a href="http://itk-users.7.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank"><span style="font-size:7pt;font-family:Times" class="gmail_msg">NAML</span></a></span></span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
</blockquote>
</div>
</div>
</div>
</div>
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
--<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
Matias<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
</div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
 <u class="gmail_msg"></u><u class="gmail_msg"></u></div>
<div class="gmail_msg">
<div class="MsoNormal gmail_msg" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'">
<hr size="2" width="300" align="left" style="width:225pt" class="gmail_msg">
</div>
</div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
View this message in context:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://itk-users.7.n7.nabble.com/SimpleITK-Serieswriter-and-DicomTags-tp38050p38056.html" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">Re: [ITK-users]
 [ITK] SimpleITK Serieswriter and DicomTags</a><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<p class="MsoNormal gmail_msg" style="margin:0in 0in 12pt;font-size:12pt;font-family:'Times New Roman'">
<br class="gmail_msg">
Sent from the<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://itk-users.7.n7.nabble.com/" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">ITK - Users mailing list archive</a><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span>at
<a href="http://nabble.com" rel="nofollow" link="external" class="gmail_msg" target="_blank">Nabble.com</a>.<u class="gmail_msg"></u><u class="gmail_msg"></u></p>
</div>
<p class="MsoNormal gmail_msg" style="margin:0in 0in 12pt;font-size:12pt;font-family:'Times New Roman'">
<br class="gmail_msg">
_____________________________________<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
Powered by<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://www.kitware.com/" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">www.kitware.com</a><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<br class="gmail_msg">
Visit other Kitware open-source projects at<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<a href="http://www.kitware.com/opensource/opensource.html" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br class="gmail_msg">
<br class="gmail_msg">
Kitware offers ITK Training Courses, for more information visit:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<a href="http://www.kitware.com/products/protraining.php" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://www.kitware.com/products/protraining.php</a><br class="gmail_msg">
<br class="gmail_msg">
Please keep messages on-topic and check the ITK FAQ at:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<a href="http://www.itk.org/Wiki/ITK_FAQ" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://www.itk.org/Wiki/ITK_FAQ</a><br class="gmail_msg">
<br class="gmail_msg">
Follow this link to subscribe/unsubscribe:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><br class="gmail_msg">
<a href="http://public.kitware.com/mailman/listinfo/insight-users" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://public.kitware.com/mailman/listinfo/insight-users</a><br class="gmail_msg">
<br class="gmail_msg">
<u class="gmail_msg"></u><u class="gmail_msg"></u></p>
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<b class="gmail_msg"><span style="font-size:9pt;font-family:Geneva;color:rgb(68,68,68)" class="gmail_msg">If you reply to this email, your message will be added to the discussion below:<u class="gmail_msg"></u><u class="gmail_msg"></u></span></b></div>
</div>
</div>
</div>
</div>
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<span style="font-size:9pt;font-family:Geneva;color:rgb(68,68,68)" class="gmail_msg"><a href="http://itk-users.7.n7.nabble.com/SimpleITK-Serieswriter-and-DicomTags-tp38050p38063.html" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">http://itk-users.7.n7.nabble.com/SimpleITK-Serieswriter-and-DicomTags-tp38050p38063.html</a><u class="gmail_msg"></u><u class="gmail_msg"></u></span></div>
</div>
<div style="margin-top:4.8pt" class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman';line-height:18pt" class="gmail_msg">
<span style="font-size:8.5pt;font-family:Geneva;color:rgb(102,102,102)" class="gmail_msg">To unsubscribe from SimpleITK Serieswriter and DicomTags, click here.<br class="gmail_msg">
<a href="http://itk-users.7.n7.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank"><span style="font-size:7pt;font-family:Times" class="gmail_msg">NAML</span></a><u class="gmail_msg"></u><u class="gmail_msg"></u></span></div>
</div>
</blockquote>
</div>
</div>
<div class="gmail_msg">
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
--<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
<div class="gmail_msg">
<div class="gmail_msg">
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
Matias<u class="gmail_msg"></u><u class="gmail_msg"></u></div>
</div>
</div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
<u class="gmail_msg"></u> <u class="gmail_msg"></u></div>
<div class="MsoNormal gmail_msg" style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'">
<hr size="2" width="300" align="left" style="width:225pt" class="gmail_msg">
</div>
<div style="margin:0in 0in 0.0001pt;font-size:12pt;font-family:'Times New Roman'" class="gmail_msg">
View this message in context:<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://itk-users.7.n7.nabble.com/SimpleITK-Serieswriter-and-DicomTags-tp38050p38064.html" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">Re: [ITK-users]
 [ITK] SimpleITK Serieswriter and DicomTags</a><br class="gmail_msg">
Sent from the<span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span><a href="http://itk-users.7.n7.nabble.com/" style="color:purple;text-decoration:underline" rel="nofollow" link="external" class="gmail_msg" target="_blank">ITK - Users mailing list archive</a><span class="m_4967415694725552749Apple-converted-space gmail_msg"> </span>at</div></div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote></div><div dir="ltr">-- <br></div><div data-smartmail="gmail_signature"><div dir="ltr">Matias</div></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://itk-users.7.n7.nabble.com/SimpleITK-Serieswriter-and-DicomTags-tp38050p38073.html">Re: [ITK-users] [ITK] SimpleITK Serieswriter and DicomTags</a><br/>
Sent from the <a href="http://itk-users.7.n7.nabble.com/">ITK - Users mailing list archive</a> at Nabble.com.<br/>