<div dir="ltr"><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Hi Matias,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">you should use branch dicomWrite from <a href="https://github.com/zivy/SimpleITK/tree/dicomWrite">Ziv's fork</a>.</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small"><br></div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Regards,</div><div class="gmail_default" style="font-family:verdana,sans-serif;font-size:small">Dženan</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Apr 1, 2017 at 2:48 AM, Matias <span dir="ltr"><<a href="mailto:matimontg@gmail.com" target="_blank">matimontg@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Yaniv. So how do I get this branch? I simply download the latest version of SimpleITK?<br><br><div class="gmail_quote"><span class=""><div dir="ltr">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" rel="nofollow" link="external" target="_blank">[hidden email]</a>> escribió:<br></div></span><blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="gmail_quote"><span class=""><div class="m_7380090971284168540m_-408416681253634508WordSection1 m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><span style="font-size:11.0pt;font-family:Calibri" class="m_7380090971284168540gmail_msg">Hello Matias,<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></span></p>
<p class="MsoNormal m_7380090971284168540gmail_msg"><span style="font-size:11.0pt;font-family:Calibri" class="m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></span></p>
<p class="MsoNormal m_7380090971284168540gmail_msg"><span style="font-size:11.0pt;font-family:Calibri" class="m_7380090971284168540gmail_msg">Please take a look at the following github pull request (<a href="https://github.com/SimpleITK/SimpleITK/pull/134)" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">https://github.com/SimpleITK/<wbr>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.
<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></span></p>
<p class="MsoNormal m_7380090971284168540gmail_msg"><span style="font-size:11.0pt;font-family:Calibri" class="m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></span></p>
<p class="MsoNormal m_7380090971284168540gmail_msg"><span style="font-size:11.0pt;font-family:Calibri" class="m_7380090971284168540gmail_msg">     hope this helps<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></span></p>
<p class="MsoNormal m_7380090971284168540gmail_msg"><span style="font-size:11.0pt;font-family:Calibri" class="m_7380090971284168540gmail_msg">            Ziv</span><span style="font-size:10.5pt;font-family:Calibri;color:black" class="m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></span></p>
<p class="MsoNormal m_7380090971284168540gmail_msg"><span style="font-size:11.0pt;font-family:Calibri" class="m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></span></p>
<p class="MsoNormal m_7380090971284168540gmail_msg"><span style="font-size:11.0pt;font-family:Calibri" class="m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></span></p>
</div></span><div class="m_7380090971284168540m_-408416681253634508WordSection1 m_7380090971284168540gmail_msg"><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in" class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><b class="m_7380090971284168540gmail_msg"><span style="font-family:Calibri;color:black" class="m_7380090971284168540gmail_msg">From: </span>
</b><span style="font-family:Calibri;color:black" class="m_7380090971284168540gmail_msg">Matias <<a href="http:///user/SendEmail.jtp?type=node&node=38063&i=0" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">[hidden email]</a>></span></p></div></div><span class=""><div class="m_7380090971284168540m_-408416681253634508WordSection1 m_7380090971284168540gmail_msg"><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in" class="m_7380090971284168540gmail_msg"><p class="MsoNormal m_7380090971284168540gmail_msg"><span style="font-family:Calibri;color:black" class="m_7380090971284168540gmail_msg"><br class="m_7380090971284168540gmail_msg">
<b class="m_7380090971284168540gmail_msg">Date: </b>Thursday, March 30, 2017 at 12:14 PM<br class="m_7380090971284168540gmail_msg">
</span></p></div></div></span><div class="m_7380090971284168540m_-408416681253634508WordSection1 m_7380090971284168540gmail_msg"><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in" class="m_7380090971284168540gmail_msg"><p class="MsoNormal m_7380090971284168540gmail_msg"><span style="font-family:Calibri;color:black" class="m_7380090971284168540gmail_msg"><b class="m_7380090971284168540gmail_msg">To: </b>"<a href="http:///user/SendEmail.jtp?type=node&node=38063&i=1" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">[hidden email]</a>" <<a href="http:///user/SendEmail.jtp?type=node&node=38063&i=2" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">[hidden email]</a>></span></p></div></div><div><div class="h5"><div class="m_7380090971284168540m_-408416681253634508WordSection1 m_7380090971284168540gmail_msg"><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in" class="m_7380090971284168540gmail_msg"><p class="MsoNormal m_7380090971284168540gmail_msg"><span style="font-family:Calibri;color:black" class="m_7380090971284168540gmail_msg"><br class="m_7380090971284168540gmail_msg">
<b class="m_7380090971284168540gmail_msg">Subject: </b>Re: [ITK-users] [ITK] SimpleITK Serieswriter and DicomTags<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></span></p></div></div><div class="m_7380090971284168540m_-408416681253634508WordSection1 m_7380090971284168540gmail_msg"><div style="border:none;border-top:solid #b5c4df 1.0pt;padding:3.0pt 0in 0in 0in" class="m_7380090971284168540gmail_msg"><p class="MsoNormal m_7380090971284168540gmail_msg"><span style="font-family:Calibri;color:black" class="m_7380090971284168540gmail_msg"></span></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">Yes, this is what I would need to migrate to C#: <u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
<div class="m_7380090971284168540gmail_msg"></div></div></div><div class="m_7380090971284168540m_-408416681253634508WordSection1 m_7380090971284168540gmail_msg"><div class="m_7380090971284168540gmail_msg"><div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_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="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include "itkImage.h"<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include "itkGDCMImageIO.h"<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include "itkGDCMSeriesFileNames.h"<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include "itkImageSeriesReader.h"<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include "itkResampleImageFilter.h"<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include "itkEuler3DTransform.hxx"<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include "gdcmUIDGenerator.h"<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include "itkImageFileWriter.h"<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include "itkImageSeriesWriter.h"<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include "itkNumericSeriesFileNames.h"<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include "itkTranslationTransform.h"<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include "string.h";<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include <itkSliceIterator.h><u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include <iostream><u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include <string><u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">#include <fstream><u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">static void CopyDictionary(itk::<wbr>MetaDataDictionary &fromDict,<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::MetaDataDictionary &toDict);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">int main(int argc, char* argv[])<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">if (argc < 8)<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cerr << "Uso: " << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cerr << argv[0] << " Directorio_A_Rotar  DirectorioResultante Gamma Beta Alfa CentroRotacionX CentroRotacionY CentroRotacionZ"<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><< std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">return EXIT_FAILURE;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef signed short    PixelType;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">const unsigned int      Dimension = 3;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">const unsigned int Dimension_Serie = 2;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef itk::Image< PixelType, Dimension >         ImageType;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef itk::Image<PixelType, Dimension_Serie> ImageType_Serie;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef itk::ImageSeriesReader< ImageType >        ReaderType;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">ReaderType::Pointer reader = ReaderType::New();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef itk::GDCMImageIO       ImageIOType;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">ImageIOType::Pointer gdcmIO = ImageIOType::New();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">reader->SetImageIO(gdcmIO);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef itk::GDCMSeriesFileNames NamesGeneratorType;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">NamesGeneratorType::Pointer nameGenerator = NamesGeneratorType::New();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">nameGenerator-><wbr>SetUseSeriesDetails(true);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">nameGenerator-><wbr>AddSeriesRestriction("0008|<wbr>0021");<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">nameGenerator->SetDirectory(<wbr>argv[1]);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">try<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << std::endl << "The directory: " << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << std::endl << argv[1] << std::endl << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << "Contains the following DICOM Series: ";<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << std::endl << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef std::vector< std::string >    SeriesIdContainer;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">const SeriesIdContainer & seriesUID = nameGenerator->GetSeriesUIDs()<wbr>;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">SeriesIdContainer::const_<wbr>iterator seriesItr = seriesUID.begin();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">SeriesIdContainer::const_<wbr>iterator seriesEnd = seriesUID.end();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">while (seriesItr != seriesEnd)<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << seriesItr->c_str() << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">++seriesItr;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::string seriesIdentifier;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">seriesIdentifier = seriesUID.begin()->c_str();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << std::endl << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << "Now reading series: " << std::endl << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << seriesIdentifier << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << std::endl << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef std::vector< std::string >   FileNamesContainer;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">FileNamesContainer fileNames;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">fileNames = nameGenerator->GetFileNames(<wbr>seriesIdentifier);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">reader->SetFileNames(<wbr>fileNames);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">try<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">reader->Update();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">catch (itk::ExceptionObject &ex)<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << ex << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">return EXIT_FAILURE;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">const ImageType * inputImage = reader->GetOutput();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">/*int numerodedicoms = inputImage-><wbr>GetLargestPossibleRegion().<wbr>GetSize()[2];<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">int dicomcentral = numerodedicoms / 2;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << "Dimenion " <<  dicomcentral << std::endl;*/<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">//itk::EncapsulateMetaData<<wbr>std::string>(dictionary, "0020|0032","-208\\-236\\66");<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef itk::ResampleImageFilter<<wbr>ImageType, ImageType> FilterType;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">FilterType::Pointer FiltroResample = FilterType::New();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">FiltroResample->SetInput(<wbr>reader->GetOutput());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef itk::<wbr>LinearInterpolateImageFunction<wbr><ImageType, double > InterpolatorType;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">InterpolatorType::Pointer interpolator = InterpolatorType::New();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">FiltroResample-><wbr>SetInterpolator(interpolator);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">FiltroResample-><wbr>SetOutputDirection(inputImage-<wbr>>GetDirection());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">FiltroResample-><wbr>SetOutputOrigin(inputImage-><wbr>GetOrigin());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">ImageType::SizeType inputSize = inputImage-><wbr>GetLargestPossibleRegion().<wbr>GetSize();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">FiltroResample->SetSize(<wbr>inputSize);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">const ImageType::SpacingType& inputSpacing = inputImage->GetSpacing();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">FiltroResample-><wbr>SetOutputSpacing(inputSpacing)<wbr>;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">FiltroResample-><wbr>SetDefaultPixelValue(-1000); //Cambiar por un parametro<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef itk::Euler3DTransform< double > TransformType; //Transform<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">TransformType::Pointer transform = TransformType::New();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">double alfa, beta, gamma, centro_rotacion_X, centro_rotacion_Y, centro_rotacion_Z;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">gamma = atof(argv[3]); <u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">beta= atof(argv[4]);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">alfa = atof(argv[5]);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">centro_rotacion_X = atof(argv[6]);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">centro_rotacion_Y = atof(argv[7]);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">centro_rotacion_Z = atof(argv[8]);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">transform->SetRotation(gamma, beta, alfa); //Radianes en el siguiente orden en ITK: Gamma, Beta, Alfa | Ibarra<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">//double centro[3] = { -14.8371, -54.9443, 175.75 }; //XmmPromedio, YmmPromedio, Z Central (mm): Leer directorio y tomar la del medio<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_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="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">transform->SetCenter(centro);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << "Centro: " << std::endl << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << transform->GetCenter() << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">FiltroResample->SetTransform(<wbr>transform);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">//FiltroResample-><wbr>SetMetaDataDictionary(<wbr>dictionary);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">try<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">FiltroResample->Update();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">catch (itk::ExceptionObject &ex)<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">return EXIT_FAILURE;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">ReaderType::<wbr>DictionaryRawPointer inputDict = (*(reader-><wbr>GetMetaDataDictionaryArray()))<wbr>[0];<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">ReaderType::<wbr>DictionaryArrayType outputArray;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">//std::cout << "array: " << std::endl << outputArray[0] << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// To keep the new series in the same study as the original we need<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// to keep the same study UID. But we need new series and frame of<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// reference UID's.<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">gdcm::UIDGenerator suid;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">//std::string seriesUID = suid.Generate();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">gdcm::UIDGenerator fuid;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::string frameOfReferenceUID = fuid.Generate();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::string studyUID;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::string sopClassUID;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::ExposeMetaData<std::<wbr>string>(*inputDict, "0020|000d", studyUID);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::ExposeMetaData<std::<wbr>string>(*inputDict, "0008|0016", sopClassUID);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">gdcmIO->KeepOriginalUIDOn();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">using namespace std;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">double myArray_Z[70]; //Cambiar esto por un argumento que especifica la cantidad de imagenes.<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">double myArray_X[70]; //Cambiar esto por un argumento que especifica la cantidad de imagenes.<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">double myArray_Y[70]; //Cambiar esto por un argumento que especifica la cantidad de imagenes.<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">ifstream file("file.txt");<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">if (file.is_open())<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">for (int i = 0; i < 70; ++i) //Recordar cambiar por el argumento que especifica cantidad de imagenes<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">file >> myArray_Z[i];<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << "valor primer Z array: " << std::endl << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << myArray_Z[0] << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">for (unsigned int f = 0; f < inputSize[2]; f++)<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Create a new dictionary for this slice<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">ReaderType::<wbr>DictionaryRawPointer dict = new ReaderType::DictionaryType;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Copy the dictionary from the first slice<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">CopyDictionary(*inputDict, *dict);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Set the UID's for the study, series, SOP  and frame of reference<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::EncapsulateMetaData<std::<wbr>string>(*dict, "0020|000d", studyUID);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">//itk::EncapsulateMetaData<<wbr>std::string>(*dict, "0020|000e", seriesUID);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::EncapsulateMetaData<std::<wbr>string>(*dict, "0020|0052", frameOfReferenceUID);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">gdcm::UIDGenerator sopuid;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::string sopInstanceUID = sopuid.Generate();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::EncapsulateMetaData<std::<wbr>string>(*dict, "0008|0018", sopInstanceUID);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::EncapsulateMetaData<std::<wbr>string>(*dict, "0002|0003", sopInstanceUID);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Change fields that are slice specific<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::ostringstream value;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value.str("");<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value << f + 1;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Image Number<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::EncapsulateMetaData<std::<wbr>string>(*dict, "0020|0013", value.str());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Series Description - Append new description to current series<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// description<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::string oldSeriesDesc;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::ExposeMetaData<std::<wbr>string>(*inputDict, "0008|103e", oldSeriesDesc);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value.str("");<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value << oldSeriesDesc<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><< ": Resampled with pixel spacing "<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><< inputSpacing[0] << ", "<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><< inputSpacing[1] << ", "<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><< inputSpacing[2];<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// This is an long string and there is a 64 character limit in the<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// standard<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">unsigned lengthDesc = value.str().length();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::string seriesDesc(value.str(), 0,<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">lengthDesc > 64 ? 64<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">: lengthDesc);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::EncapsulateMetaData<std::<wbr>string>(*dict, "0008|103e", seriesDesc);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Series Number<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value.str("");<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value << 1001;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::EncapsulateMetaData<std::<wbr>string>(*dict, "0020|0011", value.str());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Derivation Description - How this image was derived<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value.str("");<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">for (int i = 0; i < argc; i++)<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value << argv[i] << " ";<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">lengthDesc = value.str().length();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::string derivationDesc(value.str(), 0,<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">lengthDesc > 1024 ? 1024<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">: lengthDesc);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::EncapsulateMetaData<std::<wbr>string>(*dict, "0008|2111", derivationDesc);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Image Position Patient: This is calculated by computing the<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// physical coordinate of the first pixel in each slice.<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">ImageType::PointType position;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">ImageType::IndexType index;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">index[0] = 0;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">index[1] = 0;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">index[2] = myArray_Z[f];<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">FiltroResample->GetOutput()-><wbr>TransformIndexToPhysicalPoint(<wbr>index, position);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">//El origen que calculamos en el proyecto no se toca. (Origen = origen - average)<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_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="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">//value.str("");<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">//value << -1 << "\\" << 0 << "\\" << 0 << "\\" << 0 << "\\" << -1 << "\\" << 0; //PASAR ESTO POR ARGUMENTO!!!<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">//itk::EncapsulateMetaData<<wbr>std::string>(*dict, "0020|0037", value.str());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value.str("");<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value << -235.1629 << "\\" << -195.0557 << "\\" << myArray_Z[f]; //PASAR ESTO POR ARGUMENTO!!! El origen - Centro<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::EncapsulateMetaData<std::<wbr>string>(*dict, "0020|0032", value.str());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Slice Location: For now, we store the z component of the Image<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Position Patient.<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value.str("");<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value << position[2];<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::EncapsulateMetaData<std::<wbr>string>(*dict, "0020|1041", value.str());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Slice Thickness: For now, we store the z spacing<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value.str("");<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value << inputSpacing[2];<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::EncapsulateMetaData<std::<wbr>string>(*dict, "0018|0050",<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value.str());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Spacing Between Slices<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::EncapsulateMetaData<std::<wbr>string>(*dict, "0018|0088",<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">value.str());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">// Save the dictionary<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">outputArray.push_back(dict);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef itk::ImageFileWriter< ImageType > WriterType;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">WriterType::Pointer writer = WriterType::New();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef itk::ImageSeriesWriter< ImageType, ImageType_Serie > SeriesWriterType;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">SeriesWriterType::Pointer seriesWriter = SeriesWriterType::New();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">seriesWriter->SetInput(<wbr>FiltroResample->GetOutput());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">writer->SetFileName(argv[2]);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">writer->SetInput(<wbr>FiltroResample->GetOutput());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itksys::SystemTools::<wbr>MakeDirectory("Test"); //PASAR ESTO POR ARGUMENTO!!<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef itk::NumericSeriesFileNames OutputNamesGeneratorType;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">OutputNamesGeneratorType::<wbr>Pointer outputNames = OutputNamesGeneratorType::New(<wbr>);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::string seriesFormat("Test"); //PASAR ESTO POR ARGUMENTO!!<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">seriesFormat = seriesFormat + "/" + "IM%d.dcm";<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">outputNames->SetSeriesFormat(<wbr>seriesFormat.c_str());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">outputNames->SetStartIndex(1);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">outputNames->SetEndIndex(<wbr>inputSize[2]);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">seriesWriter->SetImageIO(<wbr>gdcmIO);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">seriesWriter->SetFileNames(<wbr>outputNames->GetFileNames());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">seriesWriter-><wbr>SetMetaDataDictionaryArray(&<wbr>outputArray);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << "Escribiendo la imagen como..." << std::endl << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << argv[2] << std::endl << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">try<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">writer->Update();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">seriesWriter->Update();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">catch (itk::ExceptionObject &ex)<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << ex << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">return EXIT_FAILURE;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">catch (itk::ExceptionObject &ex)<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::cout << ex << std::endl;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">return EXIT_FAILURE;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">return EXIT_SUCCESS;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">void CopyDictionary(itk::<wbr>MetaDataDictionary &fromDict, itk::MetaDataDictionary &toDict)<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef itk::MetaDataDictionary DictionaryType;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">DictionaryType::ConstIterator itr = fromDict.Begin();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">DictionaryType::ConstIterator end = fromDict.End();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">typedef itk::MetaDataObject< std::string > MetaDataStringType;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">while (itr != end)<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::MetaDataObjectBase::<wbr>Pointer  entry = itr->second;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">MetaDataStringType::Pointer entryvalue =<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">dynamic_cast<<wbr>MetaDataStringType *>(entry.GetPointer());<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">if (entryvalue)<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">{<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::string tagkey = itr->first;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">std::string tagvalue = entryvalue-><wbr>GetMetaDataObjectValue();<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">itk::EncapsulateMetaData<std::<wbr>string>(toDict, tagkey, tagvalue);<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">++itr;<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">}<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
<div class="m_7380090971284168540gmail_msg">
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">El jue., 30 de mar. de 2017 a la(s) 11:25, Lowekamp, Bradley (NIH/NLM/LHC) [C] [via ITK - Users] <<a rel="nofollow" link="external" class="m_7380090971284168540gmail_msg">[hidden email]</a>> escribió:<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<blockquote style="border-left:2px solid #cccccc;padding:0 1em" class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg" style="margin-bottom:12.0pt">Hello, <br class="m_7380090971284168540gmail_msg">
<br class="m_7380090971284168540gmail_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.
<br class="m_7380090971284168540gmail_msg">
<br class="m_7380090971284168540gmail_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.
<br class="m_7380090971284168540gmail_msg">
<br class="m_7380090971284168540gmail_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++?
<br class="m_7380090971284168540gmail_msg">
<br class="m_7380090971284168540gmail_msg">
Thank, <br class="m_7380090971284168540gmail_msg">
Brad <br class="m_7380090971284168540gmail_msg">
<br class="m_7380090971284168540gmail_msg">
<br class="m_7380090971284168540gmail_msg">
<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
<div class="m_7380090971284168540gmail_msg">
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><br class="m_7380090971284168540gmail_msg">
> On Mar 30, 2017, at 8:49 AM, Matias <<a href="http://user/SendEmail.jtp?type=node&node=38052&i=0" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">[hidden email]</a>> wrote:
<br class="m_7380090971284168540gmail_msg">
> <br class="m_7380090971284168540gmail_msg">
> Hi, <br class="m_7380090971284168540gmail_msg">
> <br class="m_7380090971284168540gmail_msg">
> I've been dealing with ITK for years in C++ and now I would need to use <br class="m_7380090971284168540gmail_msg">
> SimpleITK and C# as far as I can in a new proyect. <br class="m_7380090971284168540gmail_msg">
> <br class="m_7380090971284168540gmail_msg">
> Is the SimpleITK SeriesWriter working for Dicom Files? Last time I tried to <br class="m_7380090971284168540gmail_msg">
> use it I had problems with the DicomTags, these would not copy or there was <br class="m_7380090971284168540gmail_msg">
> no method to copy the tags to the resulting slices. <br class="m_7380090971284168540gmail_msg">
> <br class="m_7380090971284168540gmail_msg">
> Currently, I read a volume of slices, apply rotation and then I need to <br class="m_7380090971284168540gmail_msg">
> write the resulting image as another set of slices AND keeping tag <br class="m_7380090971284168540gmail_msg">
> information such as patient name, etc. <br class="m_7380090971284168540gmail_msg">
> <br class="m_7380090971284168540gmail_msg">
> Thank you, <br class="m_7380090971284168540gmail_msg">
> <br class="m_7380090971284168540gmail_msg">
> Matias. <br class="m_7380090971284168540gmail_msg">
> <br class="m_7380090971284168540gmail_msg">
> <br class="m_7380090971284168540gmail_msg">
> <br class="m_7380090971284168540gmail_msg">
> -- <br class="m_7380090971284168540gmail_msg">
> View this message in context: <a href="http://itk-users.7.n7.nabble.com/SimpleITK-Serieswriter-and-DicomTags-tp38050.html" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">
http://itk-users.7.n7.nabble.<wbr>com/SimpleITK-Serieswriter-<wbr>and-DicomTags-tp38050.html</a><br class="m_7380090971284168540gmail_msg">
> Sent from the ITK - Users mailing list archive at Nabble.com. <br class="m_7380090971284168540gmail_msg">
> ______________________________<wbr>_______ <br class="m_7380090971284168540gmail_msg">
> Powered by <a href="http://www.kitware.com" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">www.kitware.com</a>
<br class="m_7380090971284168540gmail_msg">
> <br class="m_7380090971284168540gmail_msg">
> Visit other Kitware open-source projects at <br class="m_7380090971284168540gmail_msg">
> <a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br class="m_7380090971284168540gmail_msg">
> <br class="m_7380090971284168540gmail_msg">
> Kitware offers ITK Training Courses, for more information visit: <br class="m_7380090971284168540gmail_msg">
> <a href="http://www.kitware.com/products/protraining.php" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br class="m_7380090971284168540gmail_msg">
> <br class="m_7380090971284168540gmail_msg">
> Please keep messages on-topic and check the ITK FAQ at: <br class="m_7380090971284168540gmail_msg">
> <a href="http://www.itk.org/Wiki/ITK_FAQ" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br class="m_7380090971284168540gmail_msg">
> <br class="m_7380090971284168540gmail_msg">
> Follow this link to subscribe/unsubscribe: <br class="m_7380090971284168540gmail_msg">
> <a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">
http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br class="m_7380090971284168540gmail_msg">
> ______________________________<wbr>_________________ <br class="m_7380090971284168540gmail_msg">
> Community mailing list <u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">> <a href="http://user/SendEmail.jtp?type=node&node=38052&i=1" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">
[hidden email]</a> <br class="m_7380090971284168540gmail_msg">
> <a href="http://public.kitware.com/mailman/listinfo/community" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">
http://public.kitware.com/<wbr>mailman/listinfo/community</a><u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<p class="MsoNormal m_7380090971284168540gmail_msg" style="margin-bottom:12.0pt"><br class="m_7380090971284168540gmail_msg">
______________________________<wbr>_______ <br class="m_7380090971284168540gmail_msg">
Powered by <a href="http://www.kitware.com" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">www.kitware.com</a> <br class="m_7380090971284168540gmail_msg">
<br class="m_7380090971284168540gmail_msg">
Visit other Kitware open-source projects at <br class="m_7380090971284168540gmail_msg">
<a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br class="m_7380090971284168540gmail_msg">
<br class="m_7380090971284168540gmail_msg">
Kitware offers ITK Training Courses, for more information visit: <br class="m_7380090971284168540gmail_msg">
<a href="http://www.kitware.com/products/protraining.php" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br class="m_7380090971284168540gmail_msg">
<br class="m_7380090971284168540gmail_msg">
Please keep messages on-topic and check the ITK FAQ at: <br class="m_7380090971284168540gmail_msg">
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br class="m_7380090971284168540gmail_msg">
<br class="m_7380090971284168540gmail_msg">
Follow this link to subscribe/unsubscribe: <br class="m_7380090971284168540gmail_msg">
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br class="m_7380090971284168540gmail_msg">
<br class="m_7380090971284168540gmail_msg">
<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
<div class="MsoNormal m_7380090971284168540gmail_msg" align="center" style="text-align:center">
<hr size="1" width="100%" noshade style="color:#cccccc" align="center" class="m_7380090971284168540gmail_msg">
</div>
<div class="m_7380090971284168540gmail_msg">
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg"><b class="m_7380090971284168540gmail_msg"><span style="font-size:9.0pt;font-family:Geneva;color:#444444" class="m_7380090971284168540gmail_msg">If you reply to this email, your message will be added to the discussion below:<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></span></b></p>
</div>
<p class="MsoNormal m_7380090971284168540gmail_msg"><span style="font-size:9.0pt;font-family:Geneva;color:#444444" class="m_7380090971284168540gmail_msg"><a href="http://itk-users.7.n7.nabble.com/SimpleITK-Serieswriter-and-DicomTags-tp38050p38052.html" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">http://itk-users.7.n7.nabble.<wbr>com/SimpleITK-Serieswriter-<wbr>and-DicomTags-tp38050p38052.<wbr>html</a>
<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></span></p>
</div>
<div style="margin-top:4.8pt" class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg" style="line-height:18.0pt"><span style="font-size:8.5pt;font-family:Geneva;color:#666666" class="m_7380090971284168540gmail_msg">To unsubscribe from SimpleITK Serieswriter and DicomTags,
<a rel="nofollow" link="external" class="m_7380090971284168540gmail_msg">click here</a>.<br class="m_7380090971284168540gmail_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" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank"><span style="font-size:7.0pt;font-family:Times" class="m_7380090971284168540gmail_msg">NAML</span></a>
<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></span></p>
</div>
</blockquote>
</div>
</div></div></div><div class="m_7380090971284168540m_-408416681253634508WordSection1 m_7380090971284168540gmail_msg"><div class="m_7380090971284168540gmail_msg"><div class="m_7380090971284168540gmail_msg"></div>
</div>
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">-- <u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
<div class="m_7380090971284168540gmail_msg">
<div class="m_7380090971284168540gmail_msg">
<p class="MsoNormal m_7380090971284168540gmail_msg">Matias<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p>
</div>
</div>
<p class="MsoNormal m_7380090971284168540gmail_msg"><u class="m_7380090971284168540gmail_msg"></u> <u class="m_7380090971284168540gmail_msg"></u></p>
<div class="MsoNormal m_7380090971284168540gmail_msg">
<hr size="2" width="300" style="width:225.0pt" align="left" class="m_7380090971284168540gmail_msg">
</div>
<p class="MsoNormal m_7380090971284168540gmail_msg">View this message in context: <a href="http://itk-users.7.n7.nabble.com/SimpleITK-Serieswriter-and-DicomTags-tp38050p38056.html" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">
Re: [ITK-users] [ITK] SimpleITK Serieswriter and DicomTags</a></p></div><div class="m_7380090971284168540m_-408416681253634508WordSection1 m_7380090971284168540gmail_msg"><p class="MsoNormal m_7380090971284168540gmail_msg"><br class="m_7380090971284168540gmail_msg">
Sent from the <a href="http://itk-users.7.n7.nabble.com/" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">ITK - Users mailing list archive</a> at Nabble.com.<br class="m_7380090971284168540gmail_msg">
<br class="m_7380090971284168540gmail_msg">
<u class="m_7380090971284168540gmail_msg"></u><u class="m_7380090971284168540gmail_msg"></u></p></div>


<br class="m_7380090971284168540gmail_msg">______________________________<wbr>_______
<br class="m_7380090971284168540gmail_msg">Powered by <a href="http://www.kitware.com" class="m_7380090971284168540gmail_msg" rel="nofollow" link="external" target="_blank">www.kitware.com</a>
<br class="m_7380090971284168540gmail_msg"><br class="m_7380090971284168540gmail_msg">Visit other Kitware open-source projects at
<br class="m_7380090971284168540gmail_msg"><a href="http://www.kitware.com/opensource/opensource.html" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br class="m_7380090971284168540gmail_msg"><br class="m_7380090971284168540gmail_msg">Kitware offers ITK Training Courses, for more information visit:
<br class="m_7380090971284168540gmail_msg"><a href="http://www.kitware.com/products/protraining.php" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br class="m_7380090971284168540gmail_msg"><br class="m_7380090971284168540gmail_msg">Please keep messages on-topic and check the ITK FAQ at:
<br class="m_7380090971284168540gmail_msg"><a href="http://www.itk.org/Wiki/ITK_FAQ" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br class="m_7380090971284168540gmail_msg"><br class="m_7380090971284168540gmail_msg">Follow this link to subscribe/unsubscribe:
<br class="m_7380090971284168540gmail_msg"><a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="nofollow" link="external" class="m_7380090971284168540gmail_msg" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br class="m_7380090971284168540gmail_msg">

        
        
        
        <br class="m_7380090971284168540gmail_msg">
        <br class="m_7380090971284168540gmail_msg">
        <div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif" class="m_7380090971284168540gmail_msg">
                <div style="font-weight:bold" class="m_7380090971284168540gmail_msg">If you reply to this email, your message will be added to the discussion below:</div>
                </div></div></div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif" class="m_7380090971284168540gmail_msg"><a href="http://itk-users.7.n7.nabble.com/SimpleITK-Serieswriter-and-DicomTags-tp38050p38063.html" class="m_7380090971284168540gmail_msg" rel="nofollow" link="external" target="_blank">http://itk-users.7.n7.nabble.<wbr>com/SimpleITK-Serieswriter-<wbr>and-DicomTags-tp38050p38063.<wbr>html</a>
        </div><span class="">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em" class="m_7380090971284168540gmail_msg">
                
                To unsubscribe from SimpleITK Serieswriter and DicomTags, <a class="m_7380090971284168540gmail_msg" rel="nofollow" link="external">click here</a>.<br class="m_7380090971284168540gmail_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" rel="nofollow" style="font:9px serif" class="m_7380090971284168540gmail_msg" link="external" target="_blank">NAML</a>
        </div></span></blockquote></div></div><div class="HOEnZb"><div class="h5"><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-tp38050p38064.html" target="_blank">Re: [ITK-users] [ITK] SimpleITK Serieswriter and DicomTags</a><br>
Sent from the <a href="http://itk-users.7.n7.nabble.com/" target="_blank">ITK - Users mailing list archive</a> at Nabble.com.<br></div></div><br>______________________________<wbr>_______<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at<br>
<a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Kitware offers ITK Training Courses, for more information visit:<br>
<a href="http://www.kitware.com/products/protraining.php" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>products/protraining.php</a><br>
<br>
Please keep messages on-topic and check the ITK FAQ at:<br>
<a href="http://www.itk.org/Wiki/ITK_FAQ" rel="noreferrer" target="_blank">http://www.itk.org/Wiki/ITK_<wbr>FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/insight-users" rel="noreferrer" target="_blank">http://public.kitware.com/<wbr>mailman/listinfo/insight-users</a><br>
<br></blockquote></div><br></div>