]> Creatis software - gdcm.git/commitdiff
'Acr-NEMA' data elements
authorjpr <jpr>
Tue, 4 Jul 2006 09:51:11 +0000 (09:51 +0000)
committerjpr <jpr>
Tue, 4 Jul 2006 09:51:11 +0000 (09:51 +0000)
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

index c47cee38c268513bdc23be7cf36d5d8f03e94164..71fb4d22037c765ff5aa22d518f145ca1fdc03af 100644 (file)
@@ -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