X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Testing%2FTestWriteSimple.cxx;fp=Testing%2FTestWriteSimple.cxx;h=5e981eee707f219dd9ec66348f38f53f765bcfd4;hb=127e5c971f9e1936215c71fc129249f1e2be037c;hp=784c16f178fb82824a327af1510c4b939f5aacfd;hpb=9be2f6ae96caf2a9a4619ea3e4f8ceb762f2c035;p=gdcm.git diff --git a/Testing/TestWriteSimple.cxx b/Testing/TestWriteSimple.cxx index 784c16f1..5e981eee 100644 --- a/Testing/TestWriteSimple.cxx +++ b/Testing/TestWriteSimple.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: TestWriteSimple.cxx,v $ Language: C++ - Date: $Date: 2007/09/04 08:06:52 $ - Version: $Revision: 1.52 $ + Date: $Date: 2007/09/28 14:20:22 $ + Version: $Revision: 1.53 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -58,6 +58,8 @@ Image Images [] = { {63, 127, 1, 1, 16, 14, 0 ,'e'}, {63, 127, 1, 1, 16, 15, 0 ,'e'}, {63, 127, 1, 1, 16, 16, 0 ,'e'}, + + {63, 127, 1, 1, 32, 32, 0 ,'e'}, // Pixel VR should be OL? {128, 128, 1, 1, 8, 8, 0, 'e'}, {256, 128, 1, 1, 8, 8, 0, 'a'}, @@ -194,6 +196,19 @@ int WriteSimple(Image &img) break; } + if(img.componentSize == 32) + { + // Create a Private DataElement; VR =OL + fileToBuild->InsertEntryString("gdcm test OL",0x0009,0x0010,"LO"); + uint32_t binArea[4]; + binArea[0] = 0x01234567; + binArea[1] = 0x89abcdef; + binArea[2] = 0x2468ace0; + binArea[2] = 0xfdb97531; + fileToBuild->InsertEntryBinArea((uint8_t *)binArea,16,0x0009,0x0100,"OL"); + } + + std::cout << "[" << fileName.str() << "]..."; // Set the samples per pixel str.str("");