From: tbaudier Date: Mon, 30 Jul 2018 09:58:51 +0000 (+0200) Subject: Ensure to have the correct name for dicom files X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=2f5757446082e4aaa115fecb700c544c0a8946dd;p=clitk.git Ensure to have the correct name for dicom files --- 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);