From cd904bc3cb27133a8a556c13c21a37d6415a6cc8 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Fri, 11 Jan 2019 11:56:39 +0100 Subject: [PATCH] Do not use Series Details The Serie UID got reading the file corresponds to the less detailed serie UID of the itk::GDCMSeriesFileNames --- tools/clitkDicom2Image.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/clitkDicom2Image.cxx b/tools/clitkDicom2Image.cxx index 066aaf8..d32fbae 100644 --- a/tools/clitkDicom2Image.cxx +++ b/tools/clitkDicom2Image.cxx @@ -60,7 +60,7 @@ int main(int argc, char * argv[]) //Get GDCMSeriesFileNames order to sort filenames typedef itk::GDCMSeriesFileNames NamesGeneratorType; NamesGeneratorType::Pointer nameGenerator = NamesGeneratorType::New(); - nameGenerator->SetUseSeriesDetails(true); + nameGenerator->SetUseSeriesDetails(false); std::string folderName="."; const size_t last_slash_idx = input_files[0].rfind('/'); if (std::string::npos != last_slash_idx) -- 2.47.1