From 2f5757446082e4aaa115fecb700c544c0a8946dd Mon Sep 17 00:00:00 2001 From: tbaudier Date: Mon, 30 Jul 2018 11:58:51 +0200 Subject: [PATCH] Ensure to have the correct name for dicom files --- tools/clitkImage2DicomSeriesGenericFilter.txx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/clitkImage2DicomSeriesGenericFilter.txx b/tools/clitkImage2DicomSeriesGenericFilter.txx index 7e11da4..b045a49 100644 --- a/tools/clitkImage2DicomSeriesGenericFilter.txx +++ b/tools/clitkImage2DicomSeriesGenericFilter.txx @@ -702,7 +702,7 @@ Image2DicomSeriesGenericFilter::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); -- 2.47.1