From 7759a1726c876326ff8109b0e0dccc4853164d36 Mon Sep 17 00:00:00 2001 From: jpr Date: Wed, 1 Feb 2006 10:46:53 +0000 Subject: [PATCH] Since we don't modify pixels -> keep unchanged the following : // 'Media Storage SOP Class UID' (0x0002,0x0002) // 'SOP Class UID' (0x0008,0x0016) // 'Image Type' (0x0008,0x0008) // 'Conversion Type' (0x0008,0x0064) We use : fh->SetKeepMediaStorageSOPClassUID(true); --- Example/PhilipsToBrucker2.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Example/PhilipsToBrucker2.cxx b/Example/PhilipsToBrucker2.cxx index 496c3851..ab850de6 100755 --- a/Example/PhilipsToBrucker2.cxx +++ b/Example/PhilipsToBrucker2.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: PhilipsToBrucker2.cxx,v $ Language: C++ - Date: $Date: 2006/01/31 15:28:54 $ - Version: $Revision: 1.13 $ + Date: $Date: 2006/02/01 10:46:53 $ + Version: $Revision: 1.14 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -586,6 +586,12 @@ int main(int argc, char *argv[]) fh = gdcm::FileHelper::New(currentFile); fh->GetImageDataRaw(); // Don't convert (Gray Pixels + LUT) into (RGB pixels) ?!? fh->SetWriteTypeToDcmExplVR(); + // We didn't modify pixels -> keep unchanged the following : + // 'Media Storage SOP Class UID' (0x0002,0x0002) + // 'SOP Class UID' (0x0008,0x0016) + // 'Image Type' (0x0008,0x0008) + // 'Conversion Type' (0x0008,0x0064) + fh->SetKeepMediaStorageSOPClassUID(true); if (!fh->Write(fullWriteFilename)) { std::cout << "Fail to write :[" << fullWriteFilename << "]" -- 2.46.1