<div dir="ltr">Anna<div><br></div><div>Could you please share the sections of the code where;</div><div><br></div><div>A) you get the string from argv</div><div><br></div><div>and</div><div><br></div><div>B) where you pass it to the FileNames generator class</div>
<div><br></div><div>They may help find the source of the problem.</div><div><br></div><div>  Thanks</div><div><br></div><div><br></div><div>      Luis</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Wed, Mar 5, 2014 at 2:29 AM, Annabelle Dupuis <span dir="ltr"><<a href="mailto:dupuis.annabelle@yahoo.fr" target="_blank">dupuis.annabelle@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:12pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">Hi Matt, thanks for your awnser.<br><br>Well concerning the pattern "Dicom_SliceLocation_00%d.dcm", it stop working once I reach 010 because it cannot find the file "Dicom_SliceLocation_00010.dcm" (should be Dicom_SliceLocation_010.dcm).<br>
<br>Now concerning the pattern "Dicom_SliceLocation_%03d.dcm" well on the command windows were I get the error, the figure "%03" is replaced by a "heart" (yeah u read it right, the symbole of a heart!) so he cant find the file Dicom_SliceLocation_'heart'd.dcm<br>
(I precise that those paterns are in the command argument line in the debugging options).<br><br>Any suggestion?<br><br>thanks<br><div><span><br></span></div><div style="display:block"> <br> <br> <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt">
 <div style="font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif;font-size:12pt"> <div dir="ltr"> <font face="Arial"> Le Mardi 4 mars 2014 22h19, Matt McCormick <<a href="mailto:matt.mccormick@kitware.com" target="_blank">matt.mccormick@kitware.com</a>> a écrit :<br>
 </font> </div><div><div class="h5">  <div><div><div><div dir="ltr">Hi Annabelle,<div><br clear="none"></div><div>That looks like it should be correct.  How did it fail?</div><div><br clear="none"></div><div>Thanks,</div>
<div>Matt</div></div><div><br clear="none"><br clear="none"><div>On Tue, Mar 4, 2014 at 12:22 PM, Annabelle Dupuis <span dir="ltr"><<a rel="nofollow" shape="rect" href="mailto:dupuis.annabelle@yahoo.fr" target="_blank">dupuis.annabelle@yahoo.fr</a>></span> wrote:<br clear="none">

<blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div style="font-size:12pt;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><div>
Hi guys,</div><div><br clear="none"></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">I'm trying to apply a script over a serie of slices of MRI.</div>

<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">The pattern of the filename is in the argument argv[1] and looks like</div>

<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><br clear="none"></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

"Dicom_SliceLocation_00%d.dcm"</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><br clear="none">
</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">
Hence it load the images Dicom_SliceLocation_000.dcm Dicom_SliceLocation_001.dcm</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

Dicom_SliceLocation_002.dcm</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">Dicom_SliceLocation_003.dcm</div>

<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">etc..</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

but once I don't know how to do it for the images number 010, 011 etc...</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

<br clear="none"></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">I tried to write an
 image pattern like "Dicom_SliceLocation_%03d.dcm" like they stated on the wiki example page <a rel="nofollow" shape="rect" href="http://www.itk.org/Wiki/ITK/Examples/Utilities/NumericSeriesFileNames" target="_blank">www.itk.org/Wiki/ITK/Examples/Utilities/NumericSeriesFileNames</a></div>

<div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">But it didnt work!</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

(VS 2010 and Wndows 8).</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif"><br clear="none"></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

Can someone help me please?</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">thanks</div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">

<br clear="none"></div><div style="font-style:normal;font-size:16px;background-color:transparent;font-family:HelveticaNeue,Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif">Anna<br clear="none"></div></div></div></div>
<br clear="none">_______________________________________________<br clear="none">

Community mailing list<br clear="none">
<a rel="nofollow" shape="rect" href="mailto:Community@itk.org" target="_blank">Community@itk.org</a><br clear="none">
<a rel="nofollow" shape="rect" href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div>  </div></div></div> </div>  </div> </div></div><br>_______________________________________________<br>
Community mailing list<br>
<a href="mailto:Community@itk.org">Community@itk.org</a><br>
<a href="http://public.kitware.com/cgi-bin/mailman/listinfo/community" target="_blank">http://public.kitware.com/cgi-bin/mailman/listinfo/community</a><br>
<br></blockquote></div><br></div>