From 7ea4549acf3e0933d629c91ea745a72d5f71b2a2 Mon Sep 17 00:00:00 2001 From: jpr Date: Tue, 4 Jul 2006 09:51:11 +0000 Subject: [PATCH] 'Acr-NEMA' data elements 0008,0001 Length to End 0008,0010 Recognition Code 0028,0005 Image Dimension are now automaically pushed out by FileHelper::CheckMandatoryElements when somebody rewrittes ACR into DICOM. Thx to Mathieu for reporting the pb. --- src/gdcmFileHelper.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/gdcmFileHelper.cxx b/src/gdcmFileHelper.cxx index c47cee38..71fb4d22 100644 --- a/src/gdcmFileHelper.cxx +++ b/src/gdcmFileHelper.cxx @@ -4,8 +4,8 @@ Module: $RCSfile: gdcmFileHelper.cxx,v $ Language: C++ - Date: $Date: 2006/07/04 07:58:51 $ - Version: $Revision: 1.106 $ + Date: $Date: 2006/07/04 09:51:11 $ + Version: $Revision: 1.107 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -1396,6 +1396,11 @@ void FileHelper::CheckMandatoryElements() //0002 0016 AE 1 Source Application Entity Title //0002 0100 UI 1 Private Information Creator //0002 0102 OB 1 Private Information + + // Push out 'ACR-NEMA-special' entries, if any + Archive->Push(0x0008,0x0001); // Length to End + Archive->Push(0x0008,0x0010); // Recognition Code + Archive->Push(0x0028,0x0005); // Image Dimension // Create them if not found // Always modify the value -- 2.48.1