From 6f541da88104e23daa7281134edb743487f67374 Mon Sep 17 00:00:00 2001 From: dbcache Date: Fri, 28 Sep 2012 13:27:26 +0200 Subject: [PATCH] use of relative path for default study/series description --- tools/clitkWriteDicomSeriesGenericFilter.txx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/clitkWriteDicomSeriesGenericFilter.txx b/tools/clitkWriteDicomSeriesGenericFilter.txx index 9974d17..83041c3 100644 --- a/tools/clitkWriteDicomSeriesGenericFilter.txx +++ b/tools/clitkWriteDicomSeriesGenericFilter.txx @@ -356,9 +356,9 @@ WriteDicomSeriesGenericFilter::UpdateWithDimAndPixelType() // study description if (studyUIDGiven || m_ArgsInfo.newStudyUID_flag) { if (!studyIDGiven) - itk::EncapsulateMetaData( *((*dictionary)[fni]), studyIDKey, m_ArgsInfo.outputDir_arg ); + itk::EncapsulateMetaData( *((*dictionary)[fni]), studyIDKey,itksys::SystemTools::GetFilenameName( m_ArgsInfo.outputDir_arg )); if (!studyDescriptionGiven) - itk::EncapsulateMetaData( *((*dictionary)[fni]), studyDescriptionKey, m_ArgsInfo.outputDir_arg ); + itk::EncapsulateMetaData( *((*dictionary)[fni]), studyDescriptionKey,itksys::SystemTools::GetFilenameName( m_ArgsInfo.outputDir_arg )); itk::EncapsulateMetaData( *((*dictionary)[fni]), "0008|0020", instanceDate.str() ); itk::EncapsulateMetaData( *((*dictionary)[fni]), "0008|0030", instanceTime.str() ); @@ -367,9 +367,9 @@ WriteDicomSeriesGenericFilter::UpdateWithDimAndPixelType() // series description/number if (seriesUIDGiven || m_ArgsInfo.newSeriesUID_flag) { if (!seriesDescriptionGiven) - itk::EncapsulateMetaData( *((*dictionary)[fni]), seriesDescriptionKey, "blabla");//m_ArgsInfo.outputDir_arg ); + itk::EncapsulateMetaData( *((*dictionary)[fni]), seriesDescriptionKey, itksys::SystemTools::GetFilenameName(m_ArgsInfo.outputDir_arg) ); if (!seriesNumberGiven) - itk::EncapsulateMetaData( *((*dictionary)[fni]), seriesNumberKey, m_ArgsInfo.outputDir_arg ); + itk::EncapsulateMetaData( *((*dictionary)[fni]), seriesNumberKey, itksys::SystemTools::GetFilenameName(m_ArgsInfo.outputDir_arg) ); itk::EncapsulateMetaData( *((*dictionary)[fni]), "0008|0012", instanceDate.str() ); itk::EncapsulateMetaData( *((*dictionary)[fni]), "0008|0013", instanceTime.str() ); -- 2.47.1