<html><body><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:12pt">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;" class="yahoo_quoted"> <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" size="2"> Le Mardi 4 mars 2014 22h19, Matt McCormick <matt.mccormick@kitware.com> a écrit :<br> </font> </div>  <div class="y_msg_container"><div id="yiv8724404201"><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 class="yiv8724404201gmail_extra"><br clear="none"><br clear="none"><div class="yiv8724404201gmail_quote">On Tue, Mar 4, 2014 at 12:22 PM, Annabelle Dupuis <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:dupuis.annabelle@yahoo.fr" target="_blank" href="mailto:dupuis.annabelle@yahoo.fr">dupuis.annabelle@yahoo.fr</a>></span> wrote:<br clear="none">
<blockquote class="yiv8724404201gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="yiv8724404201yqt2727064924" id="yiv8724404201yqt38640"><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" target="_blank" href="http://www.itk.org/Wiki/ITK/Examples/Utilities/NumericSeriesFileNames">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" ymailto="mailto:Community@itk.org" target="_blank" href="mailto:Community@itk.org">Community@itk.org</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://public.kitware.com/cgi-bin/mailman/listinfo/community">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></body></html>