<div dir="ltr">Bradley, <div><br></div><div>Here's what I'm testing now (I'm trying to write a series of slices from a mha file)<div><br></div><div><div><br></div><div>            ImageFileReader imgreader = new ImageFileReader();</div><div>            imgreader.SetFileName(path_pacientes + nombre_paciente + @"\Fusion\" + "resultado.mha");</div><div>            itk.simple.Image imgtest = imgreader.Execute();</div><div>            ImageSeriesWriter SeriesWriter = new ImageSeriesWriter();</div><div>            VectorString vs = new VectorString();</div><div><br></div><div>//Here's where I struggle...</div><div>            vs.Add(path_pacientes + nombre_paciente + @"\Fusion\SalidaTest\imagen%03d.dcm"); //Is this rthe right way to include a vector of strings?<br></div><div>            SeriesWriter.SetFileNames(vs);</div></div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 24, 2015 at 2:50 PM, Bradley Lowekamp <span dir="ltr"><<a href="mailto:blowekamp@mail.nih.gov" target="_blank">blowekamp@mail.nih.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Yes, it you should use the VectorString SimpleITK for CSharp has for the fileNames argument.<div><br></div><div>If you are having trouble please provide a small example, and what the error/problem is.</div><div><br></div><div>Brad</div><div><div class="h5"><div><br><div><div>On Mar 24, 2015, at 1:45 PM, Matias Montroull <<a href="mailto:matimontg@gmail.com" target="_blank">matimontg@gmail.com</a>> wrote:</div><br><blockquote type="cite"><span style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;float:none;display:inline!important">Hi,</span><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">I'm looking for an example on how to convert an mhd or mha image into slices. I downloaded SimpleITK V0.9 Beta and was playing around with the new ImageSeriesWriter class but can't figure out how to do it.</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Do I need to declare a VectorString?</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Thanks,</div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><br></div><div style="font-family:Helvetica;font-size:12px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:start;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">Matias.</div></blockquote></div><br></div></div></div></div></blockquote></div><br></div>