]> Creatis software - clitk.git/commitdiff
Ensure to have the same series UID while writing a Dicom serie
authortbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 9 Mar 2016 16:21:10 +0000 (17:21 +0100)
committertbaudier <thomas.baudier@creatis.insa-lyon.fr>
Wed, 9 Mar 2016 16:21:10 +0000 (17:21 +0100)
tools/clitkWriteDicomSeriesGenericFilter.txx

index 2477aafcc46d477f80731983949363b0f2f7c66a..f30947f8a88531f0ed292de33bedf49a510255ce 100644 (file)
@@ -153,6 +153,8 @@ WriteDicomSeriesGenericFilter<args_info_type>::UpdateWithDimAndPixelType()
 
   // Read the series
   typename ReaderType::Pointer reader = ReaderType::New();
+  gdcmIO->LoadPrivateTagsOn();
+  gdcmIO->KeepOriginalUIDOn();
   reader->SetImageIO( gdcmIO );
   reader->SetFileNames( filenames_in );
   try {