[ITK Community] Filename number incrementation

Matt McCormick matt.mccormick at kitware.com
Tue Mar 4 16:19:49 EST 2014


Hi Annabelle,

That looks like it should be correct.  How did it fail?

Thanks,
Matt


On Tue, Mar 4, 2014 at 12:22 PM, Annabelle Dupuis <dupuis.annabelle at yahoo.fr
> wrote:

> Hi guys,
>
> I'm trying to apply a script over a serie of slices of MRI.
> The pattern of the filename is in the argument argv[1] and looks like
>
> "Dicom_SliceLocation_00%d.dcm"
>
> Hence it load the images Dicom_SliceLocation_000.dcm
> Dicom_SliceLocation_001.dcm
> Dicom_SliceLocation_002.dcm
> Dicom_SliceLocation_003.dcm
> etc..
> but once I don't know how to do it for the images number 010, 011 etc...
>
> I tried to write an image pattern like "Dicom_SliceLocation_%03d.dcm" like
> they stated on the wiki example page
> www.itk.org/Wiki/ITK/Examples/Utilities/NumericSeriesFileNames
> But it didnt work!
> (VS 2010 and Wndows 8).
>
> Can someone help me please?
> thanks
>
> Anna
>
> _______________________________________________
> Community mailing list
> Community at itk.org
> http://public.kitware.com/cgi-bin/mailman/listinfo/community
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140304/e2a6abf6/attachment-0002.html>


More information about the Community mailing list