From: jpr Date: Fri, 9 Apr 2010 15:32:39 +0000 (+0000) Subject: Brute hack to allow reading DICOM RT files X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?p=gdcm.git;a=commitdiff_plain;h=a76d618c906ec9c1dc1d8ddf80e7e760cc862aaa Brute hack to allow reading DICOM RT files --- diff --git a/src/gdcmDocument.cxx b/src/gdcmDocument.cxx index 11b88a2e..5952cc6b 100644 --- a/src/gdcmDocument.cxx +++ b/src/gdcmDocument.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocument.cxx,v $ Language: C++ - Date: $Date: 2008/09/15 15:49:22 $ - Version: $Revision: 1.381 $ + Date: $Date: 2010/04/09 15:32:39 $ + Version: $Revision: 1.382 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -2097,7 +2097,7 @@ bool Document::CheckSwap() s16 = *((uint16_t *)(deb)); gdcmDebugMacro("not a DicomV3 nor a 'clean' ACR/NEMA;" - << " (->despaired wild guesses !)"); + << " (->despaired wild guesses !)"); switch ( s16 ) { case 0x0001 : @@ -2110,7 +2110,9 @@ bool Document::CheckSwap() case 0x0008 : case 0x0028 : SwapCode = 1234; - Filetype = ACR; + // Brute hack to allow reading DICOM RT files + //Filetype = ACR; // DICOM RT are *not* ACR-Nema files! + Filetype = ExplicitVR; return true; case 0x0100 : case 0x0200 :