[ITK Community] Filename number incrementation
Annabelle Dupuis
dupuis.annabelle at yahoo.fr
Tue Mar 4 12:22:12 EST 2014
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140304/630e4ee7/attachment-0002.html>
More information about the Community
mailing list