]> Creatis software - clitk.git/commitdiff
Ensure to have the correct name for dicom files
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Mon, 30 Jul 2018 09:58:51 +0000 (11:58 +0200)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Mon, 30 Jul 2018 09:58:51 +0000 (11:58 +0200)
tools/clitkImage2DicomSeriesGenericFilter.txx

index 7e11da4b880fdc78af3c886fc5463139b84897f2..b045a498242419d5464df3250a7f0464c0134575 100644 (file)
@@ -702,7 +702,7 @@ Image2DicomSeriesGenericFilter<args_info_type>::UpdateWithDimAndPixelType()
   // Generate the file names
   OutputNamesGeneratorType::Pointer outputNames = OutputNamesGeneratorType::New();
   std::string seriesFormat(m_ArgsInfo.outputDir_arg);
-  seriesFormat = seriesFormat + "/" + "IM%d.dcm";
+  seriesFormat = seriesFormat + "/" + "IM%03d.dcm";
   outputNames->SetSeriesFormat (seriesFormat.c_str());
   outputNames->SetStartIndex (1);
   //outputNames->SetEndIndex (1);