From 32c9944c7fca829d4bec2d0121e595ab8d03adb2 Mon Sep 17 00:00:00 2001 From: tbaudier Date: Wed, 9 Mar 2016 17:21:10 +0100 Subject: [PATCH] Ensure to have the same series UID while writing a Dicom serie --- tools/clitkWriteDicomSeriesGenericFilter.txx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/clitkWriteDicomSeriesGenericFilter.txx b/tools/clitkWriteDicomSeriesGenericFilter.txx index 2477aaf..f30947f 100644 --- a/tools/clitkWriteDicomSeriesGenericFilter.txx +++ b/tools/clitkWriteDicomSeriesGenericFilter.txx @@ -153,6 +153,8 @@ WriteDicomSeriesGenericFilter::UpdateWithDimAndPixelType() // Read the series typename ReaderType::Pointer reader = ReaderType::New(); + gdcmIO->LoadPrivateTagsOn(); + gdcmIO->KeepOriginalUIDOn(); reader->SetImageIO( gdcmIO ); reader->SetFileNames( filenames_in ); try { -- 2.47.1