X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=tools%2FclitkWriteDicomSeriesGenericFilter.txx;fp=tools%2FclitkWriteDicomSeriesGenericFilter.txx;h=9974d177e25e5fea602d8791bb43bac972aa9bde;hb=6ec99bd65ed1fed5bf1fef20eb0e52243a82763a;hp=70123e6bac6c1721c04d4433b530349a5cafa999;hpb=8311fdd934df15cf650fcb6d81e62e8e878fad4b;p=clitk.git diff --git a/tools/clitkWriteDicomSeriesGenericFilter.txx b/tools/clitkWriteDicomSeriesGenericFilter.txx index 70123e6..9974d17 100644 --- a/tools/clitkWriteDicomSeriesGenericFilter.txx +++ b/tools/clitkWriteDicomSeriesGenericFilter.txx @@ -267,12 +267,12 @@ WriteDicomSeriesGenericFilter::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::UpdateWithDimAndPixelType() // series description/number if (seriesUIDGiven || m_ArgsInfo.newSeriesUID_flag) { if (!seriesDescriptionGiven) - itk::EncapsulateMetaData( *((*dictionary)[fni]), seriesDescriptionKey, m_ArgsInfo.outputDir_arg ); + itk::EncapsulateMetaData( *((*dictionary)[fni]), seriesDescriptionKey, "blabla");//m_ArgsInfo.outputDir_arg ); if (!seriesNumberGiven) itk::EncapsulateMetaData( *((*dictionary)[fni]), seriesNumberKey, m_ArgsInfo.outputDir_arg );