Program: gdcm
Module: $RCSfile: exReadWriteFile.cxx,v $
Language: C++
- Date: $Date: 2005/02/09 14:00:41 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2005/07/06 15:49:31 $
+ Version: $Revision: 1.5 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "gdcmBinEntry.h"
#include "gdcmSeqEntry.h"
+#include <stdlib.h> // for exit
int main(int argc, char *argv[])
{
std::string output = argv[2];
// First, let's create a gdcm::File
- // that will contain all the Dicom Field but the Pixels Element
+ // that will contain all the Dicom fields but the Pixels Element
gdcm::File *f1= new gdcm::File( filename );
<< std::endl;
gdcm::ValEntry *valEntry;
- uint16_t group;
- uint16_t elem;
- int offset;
std::string value;
std::string vr; // value representation
std::string vm; // value multiplicity
continue;
value = valEntry->GetValue();
- group = valEntry->GetGroup();
- elem = valEntry->GetElement();
vr = valEntry->GetVR();
// user wants really to know everything about entry!
vm = valEntry->GetVM();
name = valEntry->GetName();
- offset = valEntry->GetOffset();
std::cout //<< std::hex << group << "," << elem
<< valEntry->GetKey()
<< "]" << std::endl;
std::cout << "Frame ref UID :[" << f1->GetEntryValue(0x0020,0x0052)
<< "]" << std::endl;
+
+ // User wants to get info about the 'real world' vs image
+
// ------ User wants to load the pixels---------------------------------