]> Creatis software - clitk.git/commitdiff
error in dicom key setting...
authorRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Fri, 28 Sep 2012 09:57:47 +0000 (11:57 +0200)
committerRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Fri, 28 Sep 2012 09:57:47 +0000 (11:57 +0200)
tools/clitkWriteDicomSeriesGenericFilter.txx

index 70123e6bac6c1721c04d4433b530349a5cafa999..9974d177e25e5fea602d8791bb43bac972aa9bde 100644 (file)
@@ -267,12 +267,12 @@ WriteDicomSeriesGenericFilter<args_info_type>::UpdateWithDimAndPixelType()
     if (m_ArgsInfo.verbose_flag) 
       DD(entryId);
     
-    seriesUIDGiven = (entryId ==  seriesUIDkey || entryId ==  frameOfReferenceUIDKey);
-    seriesNumberGiven = (entryId == seriesNumberKey);
-    seriesDescriptionGiven = (entryId == seriesDescriptionKey);
-    studyUIDGiven = (entryId == studyUIDKey);
-    studyIDGiven = (entryId == studyIDKey);
-    studyDescriptionGiven = (entryId == studyDescriptionKey);
+    seriesUIDGiven |= (entryId ==  seriesUIDkey || entryId ==  frameOfReferenceUIDKey);
+    seriesNumberGiven |= (entryId == seriesNumberKey);
+    seriesDescriptionGiven |= (entryId == seriesDescriptionKey);
+    studyUIDGiven |= (entryId == studyUIDKey);
+    studyIDGiven |= (entryId == studyIDKey);
+    studyDescriptionGiven |= (entryId == studyDescriptionKey);
   }
 
   // force the creation of a new series if a new study was specified
@@ -367,7 +367,7 @@ WriteDicomSeriesGenericFilter<args_info_type>::UpdateWithDimAndPixelType()
     // series description/number
     if (seriesUIDGiven || m_ArgsInfo.newSeriesUID_flag) {
       if (!seriesDescriptionGiven)
-        itk::EncapsulateMetaData<std::string>( *((*dictionary)[fni]), seriesDescriptionKey, m_ArgsInfo.outputDir_arg );
+        itk::EncapsulateMetaData<std::string>( *((*dictionary)[fni]), seriesDescriptionKey, "blabla");//m_ArgsInfo.outputDir_arg );
       if (!seriesNumberGiven)
         itk::EncapsulateMetaData<std::string>( *((*dictionary)[fni]), seriesNumberKey, m_ArgsInfo.outputDir_arg );