Program: gdcm
Module: $RCSfile: BatchUncompress.cxx,v $
Language: C++
- Date: $Date: 2006/03/01 09:51:56 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2007/06/21 15:06:12 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
const char *inputfilename = argv[1];
const char *outputfilename = argv[2];
- gdcm::File *input = new gdcm::File( );
+ GDCM_NAME_SPACE::File *input = new GDCM_NAME_SPACE::File( );
input->SetFileName( inputfilename );
// input->SetLoadMode(loadMode);
input->Load();
if ( input->IsReadable() )
{
- gdcm::FileHelper *output = new gdcm::FileHelper( input );
+ GDCM_NAME_SPACE::FileHelper *output = new GDCM_NAME_SPACE::FileHelper( input );
output->GetImageData(); //EXTREMELY IMPORTANT
//Otherwise ReadPixel == -1 -> the dicom writing fails completely
output->SetImageData( imageData, dataSize);
// lossy compression would be a pixel modification.
// uncompress is *not*
- fh->SetContentType(gdcm::UNMODIFIED_PIXELS_IMAGE);
+ fh->SetContentType(GDCM_NAME_SPACE::UNMODIFIED_PIXELS_IMAGE);
output->WriteDcmExplVR( outputfilename );
delete output;
Program: gdcm
Module: $RCSfile: DenseMultiFramesToDicom.cxx,v $
Language: C++
- Date: $Date: 2006/07/26 17:02:55 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2007/06/21 15:06:12 $
+ 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
// ----- Initialize Arguments Manager ------
- gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+ GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
if (argc == 1 || am->ArgMgrDefined("usage"))
{
dirNamein = am->ArgMgrGetString("dirin",".");
if (am->ArgMgrDefined("debug"))
- gdcm::Debug::DebugOn();
+ GDCM_NAME_SPACE::Debug::DebugOn();
int verbose = am->ArgMgrDefined("verbose");
int listonly = am->ArgMgrDefined("listonly");
// ----- Begin Processing -----
- if ( ! gdcm::DirList::IsDirectory(dirNamein) )
+ if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirNamein) )
{
std::cout << "KO : [" << dirNamein << "] is not a Directory."
<< std::endl;
}
std::string strDirNamein(dirNamein);
- gdcm::DirList dirList(strDirNamein, true); // (recursively) the list of files
+ GDCM_NAME_SPACE::DirList dirList(strDirNamein, true); // (recursively) the list of files
if (listonly)
{
std::string filenameout;
std::string strStudyUID;
- strStudyUID = gdcm::Util::CreateUniqueUID();
+ strStudyUID = GDCM_NAME_SPACE::Util::CreateUniqueUID();
int serieNumber =0;
- gdcm::DirListType fileNames;
+ GDCM_NAME_SPACE::DirListType fileNames;
fileNames = dirList.GetFilenames();
- for (gdcm::DirListType::iterator it = fileNames.begin();
+ for (GDCM_NAME_SPACE::DirListType::iterator it = fileNames.begin();
it != fileNames.end();
++it)
{
- if ( gdcm::Util::GetName((*it)).c_str()[0] == '.' )
+ if ( GDCM_NAME_SPACE::Util::GetName((*it)).c_str()[0] == '.' )
{
// skip hidden files
continue;
float val;
std::string strSerieUID;
- strSerieUID = gdcm::Util::CreateUniqueUID();
+ strSerieUID = GDCM_NAME_SPACE::Util::CreateUniqueUID();
int imageNumber = 0;
float currentTime;
currentTime = timeStart;
ptr++;
}
- // gdcm::Debug::DebugOn();
+ // GDCM_NAME_SPACE::Debug::DebugOn();
std::ostringstream str;
- gdcm::File *file;
- file = gdcm::File::New();
+ GDCM_NAME_SPACE::File *file;
+ file = GDCM_NAME_SPACE::File::New();
// Set the image size
str.str("");
// file->Print();
- gdcm::FileHelper *fh;
- fh = gdcm::FileHelper::New(file);
+ GDCM_NAME_SPACE::FileHelper *fh;
+ fh = GDCM_NAME_SPACE::FileHelper::New(file);
// cast is just to avoid warnings (*no* conversion)
fh->SetImageData((uint8_t *)img,nx*ny*sizeof(uint16_t));
fh->SetWriteModeToRaw();
// Anatomical Images.
std::cout << " ========= Create Anatomical images" << std::endl;
- strSerieUID = gdcm::Util::CreateUniqueUID();
+ strSerieUID = GDCM_NAME_SPACE::Util::CreateUniqueUID();
imageNumber = 0;
currentTime = timeStart;
ptr++;
}
std::ostringstream str;
- gdcm::File *file;
- file = gdcm::File::New();
+ GDCM_NAME_SPACE::File *file;
+ file = GDCM_NAME_SPACE::File::New();
// Set the image size
str.str("");
file->InsertEntryString(charImagePosition,0x0018,0x1060, "DS");
// file->Print();
- gdcm::FileHelper *fh;
- fh = gdcm::FileHelper::New(file);
+ GDCM_NAME_SPACE::FileHelper *fh;
+ fh = GDCM_NAME_SPACE::FileHelper::New(file);
// cast is just to avoid warnings (*no* conversion)
fh->SetImageData((uint8_t *)img,nx*ny*sizeof(uint16_t));
fh->SetWriteModeToRaw();
Program: gdcm
Module: $RCSfile: DenseToDicom.cxx,v $
Language: C++
- Date: $Date: 2006/07/26 17:48:14 $
- Version: $Revision: 1.2 $
+ Date: $Date: 2007/06/21 15:06:13 $
+ Version: $Revision: 1.3 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// ----- Initialize Arguments Manager ------
- gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+ GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
if (argc == 1 || am->ArgMgrDefined("usage"))
{
dirNamein = am->ArgMgrGetString("dirin",".");
if (am->ArgMgrDefined("debug"))
- gdcm::Debug::DebugOn();
+ GDCM_NAME_SPACE::Debug::DebugOn();
int verbose = am->ArgMgrDefined("verbose");
int listonly = am->ArgMgrDefined("listonly");
// ----- Begin Processing -----
- if ( ! gdcm::DirList::IsDirectory(dirNamein) )
+ if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirNamein) )
{
std::cout << "KO : [" << dirNamein << "] is not a Directory." << std::endl;
return 0;
}
std::string strDirNamein(dirNamein);
- gdcm::DirList dirList(strDirNamein, true); // get recursively the list of files
+ GDCM_NAME_SPACE::DirList dirList(strDirNamein, true); // get recursively the list of files
if (listonly)
{
std::string filenameout;
- gdcm::DirListType fileNames;
+ GDCM_NAME_SPACE::DirListType fileNames;
fileNames = dirList.GetFilenames();
- for (gdcm::DirListType::iterator it = fileNames.begin();
+ for (GDCM_NAME_SPACE::DirListType::iterator it = fileNames.begin();
it != fileNames.end();
++it)
{
imageSC.SetInput(data)
imageSC.Update()
*/
- // gdcm::Debug::DebugOn();
+ // GDCM_NAME_SPACE::Debug::DebugOn();
std::ostringstream str;
- gdcm::File *file;
- file = gdcm::File::New();
+ GDCM_NAME_SPACE::File *file;
+ file = GDCM_NAME_SPACE::File::New();
// Set the image size
str.str("");
file->Print();
- gdcm::FileHelper *fileH;
- fileH = gdcm::FileHelper::New(file);
+ GDCM_NAME_SPACE::FileHelper *fileH;
+ fileH = GDCM_NAME_SPACE::FileHelper::New(file);
// cast is just to avoid warnings (*no* conversion)
fileH->SetImageData((uint8_t *)img,nx*ny*sizeof(uint16_t));
fileH->SetWriteModeToRaw();
Program: gdcm
Module: $RCSfile: exConvert3DplusT.cxx,v $
Language: C++
- Date: $Date: 2006/09/01 13:42:02 $
- Version: $Revision: 1.4 $
+ Date: $Date: 2007/06/21 15:06:13 $
+ 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
// ----- Initialize Arguments Manager ------
- gdcm::ArgMgr *am = new gdcm::ArgMgr(argc, argv);
+ GDCM_NAME_SPACE::ArgMgr *am = new GDCM_NAME_SPACE::ArgMgr(argc, argv);
if (am->ArgMgrDefined("usage") || argc == 1)
{
}
if (am->ArgMgrDefined("debug"))
- gdcm::Debug::DebugOn();
+ GDCM_NAME_SPACE::Debug::DebugOn();
int verbose = am->ArgMgrDefined("verbose");
int oververbose = am->ArgMgrDefined("oververbose");
int nbOfImagesInVolume = am->ArgMgrGetInt("imagesinvolume",
imagetteLineNumber*imagetteRowNumber);
- int loadMode = gdcm::LD_ALL;
+ int loadMode = GDCM_NAME_SPACE::LD_ALL;
if ( am->ArgMgrDefined("noshadowseq") )
- loadMode |= gdcm::LD_NOSHADOWSEQ;
+ loadMode |= GDCM_NAME_SPACE::LD_NOSHADOWSEQ;
else
{
if ( am->ArgMgrDefined("noshadow") )
- loadMode |= gdcm::LD_NOSHADOW;
+ loadMode |= GDCM_NAME_SPACE::LD_NOSHADOW;
if ( am->ArgMgrDefined("noseq") )
- loadMode |= gdcm::LD_NOSEQ;
+ loadMode |= GDCM_NAME_SPACE::LD_NOSEQ;
}
/* if unused Param we give up */
//std::cout << "dirIn [" << dirIn << "]" << std::endl;
- if ( ! gdcm::DirList::IsDirectory(dirIn) )
+ if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirIn) )
{
std::cout << "KO : [" << dirIn << "] is not a Directory." << std::endl;
return 0;
if (verbose)
std::cout << "Check for output directory :[" << dirOut << "]."
<<std::endl;
- if ( ! gdcm::DirList::IsDirectory(dirOut) ) // dirout not found
+ if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirOut) ) // dirout not found
{
systemCommand = "mkdir " +strDirNameout; // create it!
if (verbose)
std::cout << systemCommand << std::endl;
system (systemCommand.c_str());
- if ( ! gdcm::DirList::IsDirectory(dirOut) ) // be sure it worked
+ if ( ! GDCM_NAME_SPACE::DirList::IsDirectory(dirOut) ) // be sure it worked
{
std::cout << "KO : not a dir : [" << dirOut
<< "] (creation failure ?)" << std::endl;
<< "] already exists; Used as is." << std::endl;
}
- gdcm::DirList dirList(dirIn,false); // gets (at single level) the file list
- gdcm::DirListType fileList = dirList.GetFilenames();
+ GDCM_NAME_SPACE::DirList dirList(dirIn,false); // gets (at single level) the file list
+ GDCM_NAME_SPACE::DirListType fileList = dirList.GetFilenames();
// hope sorting on the filename is enough!
// anyway, *no* filed is available to perform anything more clever.
// adding new Series to an already existing Study
std::string strStudyUID;
if ( !userDefinedStudy)
- strStudyUID = gdcm::Util::CreateUniqueUID();
+ strStudyUID = GDCM_NAME_SPACE::Util::CreateUniqueUID();
else
strStudyUID = studyUID;
std::string strSerieUID;
if ( !userDefinedSerie)
- strSerieUID = gdcm::Util::CreateUniqueUID();
+ strSerieUID = GDCM_NAME_SPACE::Util::CreateUniqueUID();
else
strSerieUID = serieUID;
memset(imageTable, 0, totalNumberOfPixels * imagePixelSize);
int16_t **tabImageData = new int16_t *[nbOfImagesInVolume];
- gdcm::File **f = new gdcm::File *[nbOfImagesInVolume];
- gdcm::FileHelper **fh = new gdcm::FileHelper *[nbOfImagesInVolume];
+ GDCM_NAME_SPACE::File **f = new GDCM_NAME_SPACE::File *[nbOfImagesInVolume];
+ GDCM_NAME_SPACE::FileHelper **fh = new GDCM_NAME_SPACE::FileHelper *[nbOfImagesInVolume];
std::string fullFilename, lastFilename;
float zPositionComponent = 0.0;
int imageNumber = 0;
- for( gdcm::DirListType::iterator it = fileList.begin();
+ for( GDCM_NAME_SPACE::DirListType::iterator it = fileList.begin();
it != fileList.end();
++it )
{
fullFilename = *it;
- f[imageNumber] = gdcm::File::New( );
+ f[imageNumber] = GDCM_NAME_SPACE::File::New( );
f[imageNumber]->SetLoadMode(loadMode);
f[imageNumber]->SetFileName( it->c_str() );
// Load the pixels in RAM.
- fh[imageNumber] = gdcm::FileHelper::New(f[imageNumber]);
+ fh[imageNumber] = GDCM_NAME_SPACE::FileHelper::New(f[imageNumber]);
// Don't convert (Gray Pixels + LUT) into (RGB pixels) ?!?
tabImageData[imageNumber] = (int16_t *)fh[imageNumber]->GetImageDataRaw();
// ==================================================================================================
fh[imageNumber]->SetWriteTypeToDcmExplVR();
- fh[imageNumber]->SetContentType(gdcm::UNMODIFIED_PIXELS_IMAGE);
+ fh[imageNumber]->SetContentType(GDCM_NAME_SPACE::UNMODIFIED_PIXELS_IMAGE);
- lastFilename = gdcm::Util::GetName( fullFilename );
- std::string fullWriteFilename = strDirNameout + gdcm::GDCM_FILESEPARATOR
+ lastFilename = GDCM_NAME_SPACE::Util::GetName( fullFilename );
+ std::string fullWriteFilename = strDirNameout + GDCM_NAME_SPACE::GDCM_FILESEPARATOR
+ lastFilename;
if (verbose)
std::cout << "Write : [" << fullWriteFilename << "]" << std::endl;
Program: gdcm
Module: $RCSfile: exDicomRTStructSetFile.cxx,v $
Language: C++
- Date: $Date: 2007/06/18 12:02:54 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2007/06/21 15:06:13 $
+ Version: $Revision: 1.2 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "gdcmArgMgr.h"
-bool TestDicomRTStructSetFile(gdcm::File* file);
-bool TestDicomCTSerie(const gdcm::FileList serie);
+bool TestDicomRTStructSetFile(GDCM_NAME_SPACE::File* file);
+bool TestDicomCTSerie(const GDCM_NAME_SPACE::FileList serie);
//====================================================================
//====================================================================
//In a dicom seq try to find an item with a gived tag/(int)value pair, else creates it
- gdcm::SQItem* GetAnItemWithTagValue(gdcm::SeqEntry* seqEntry, const uint16_t group,
+ GDCM_NAME_SPACE::SQItem* GetAnItemWithTagValue(GDCM_NAME_SPACE::SeqEntry* seqEntry, const uint16_t group,
const uint16_t elem, const int value, const bool writeItem) {
int foundValue;
std::stringstream valueStream;
valueStream<<value;
std::string strValue = valueStream.str();
- gdcm::SQItem* curItem = seqEntry->GetFirstSQItem();
- gdcm::ValEntry* valEntry;
+ GDCM_NAME_SPACE::SQItem* curItem = seqEntry->GetFirstSQItem();
+ GDCM_NAME_SPACE::ValEntry* valEntry;
while (curItem != NULL) {
valEntry = curItem->GetValEntry(group,elem);
std::istringstream(valEntry->GetValue())>>foundValue;
if (writeItem == true) {
unsigned int newItemNumber = seqEntry->GetNumberOfSQItems ();
// ----------
- //gdcm::SQItem* newItem = new gdcm::SQItem(seqEntry->GetDepthLevel()+1);
- gdcm::SQItem* newItem = gdcm::SQItem::New(seqEntry->GetDepthLevel()+1);
+ //GDCM_NAME_SPACE::SQItem* newItem = new GDCM_NAME_SPACE::SQItem(seqEntry->GetDepthLevel()+1);
+ GDCM_NAME_SPACE::SQItem* newItem = GDCM_NAME_SPACE::SQItem::New(seqEntry->GetDepthLevel()+1);
// ----------
seqEntry->AddSQItem(newItem,(int)newItemNumber);
newItem->InsertValEntry(strValue, group, elem); /// \TODO : si VR absent, le chercher dans le dict!
=================================================*/
// Test if a file list is a valid CT serie
- bool TestDicomCTSerie(const gdcm::FileList serie) {
+ bool TestDicomCTSerie(const GDCM_NAME_SPACE::FileList serie) {
if (serie.size() < 2) {
itkGenericExceptionMacro(<<"Serie must contain at least 2 files !");
float firstSliceImagePosition[3];
float currentSliceImagePosition[3];
- gdcm::FileList::const_iterator first = serie.begin();
- gdcm::FileList::const_iterator it = first ++;
+ GDCM_NAME_SPACE::FileList::const_iterator first = serie.begin();
+ GDCM_NAME_SPACE::FileList::const_iterator it = first ++;
bool res = (*first)->GetImageOrientationPatient(firstSliceImagePosition);
if (!res) {
}
while (it != serie.end()) {
- if (!gdcm::Util::DicomStringEqual((*it)->GetEntryValue(0x0008,0x0016),"1.2.840.10008.5.1.4.1.1.2")) {
+ if (!GDCM_NAME_SPACE::Util::DicomStringEqual((*it)->GetEntryValue(0x0008,0x0016),"1.2.840.10008.5.1.4.1.1.2")) {
itkGenericExceptionMacro();
//CT Dicom slices must have a SOP Class UID [0008|0016] = [1.2.840.10008.5.1.4.1.1.2] ==> [CT Image Storage]
}
- if (!gdcm::Util::DicomStringEqual((*it)->GetEntryValue(0x0008,0x0060),"CT")) {
+ if (!GDCM_NAME_SPACE::Util::DicomStringEqual((*it)->GetEntryValue(0x0008,0x0060),"CT")) {
itkGenericExceptionMacro();
//CT Dicom slices must have a Modality [0008|0060] = [CT]
}
- if (!gdcm::Util::DicomStringEqual((*it)->GetEntryValue(0x0020,0x0037),"1.0000\\0.0000\\0.0000\\0.0000\\1.0000\\0.0000")) {
+ if (!GDCM_NAME_SPACE::Util::DicomStringEqual((*it)->GetEntryValue(0x0020,0x0037),"1.0000\\0.0000\\0.0000\\0.0000\\1.0000\\0.0000")) {
itkGenericExceptionMacro("CT Dicom slices must an Image Orientation [0020|0037]"
<<" = [1.0000\0.0000\0.0000\0.0000\1.0000\0.0000]");
}
=================================================*/
// Test if a file is a valid Dicom-RT Structure-Set file (readable by us)
- bool TestDicomRTStructSetFile(gdcm::File* file) {
+ bool TestDicomRTStructSetFile(GDCM_NAME_SPACE::File* file) {
// ----------
- //gdcm::ValEntry* valEntry;
- gdcm::DataEntry* valEntry;
+ //GDCM_NAME_SPACE::ValEntry* valEntry;
+ GDCM_NAME_SPACE::DataEntry* valEntry;
// ----------
std::string exception0 = "Not a [RT Structure Set Storage]";
std::string exception3 = "Modality not= RTSTRUCT";
//Verify if the file is a RT-Structure-Set dicom file
- if (!gdcm::Util::DicomStringEqual(file->GetEntryValue(0x0008,0x0016),"1.2.840.10008.5.1.4.1.1.481.3")) { //SOP clas UID
+ if (!GDCM_NAME_SPACE::Util::DicomStringEqual(file->GetEntryValue(0x0008,0x0016),"1.2.840.10008.5.1.4.1.1.481.3")) { //SOP clas UID
itkGenericExceptionMacro(<<exception0);
// (the file must have a SOP Class UID [0008|0016] = 1.2.840.10008.5.1.4.1.1.481.3 ==> [RT Structure Set Storage] !
}
- if (!gdcm::Util::DicomStringEqual(file->GetEntryValue(0x0008,0x0060),"RTSTRUCT")) { //SOP clas UID
+ if (!GDCM_NAME_SPACE::Util::DicomStringEqual(file->GetEntryValue(0x0008,0x0060),"RTSTRUCT")) { //SOP clas UID
itkGenericExceptionMacro(<<exception3);
// (the file must have a Modality tag = RTSTRUCT !
}
//Verify only one Referenced Frame UID and one or more Series UID
- gdcm::SeqEntry* seqEntry;
- gdcm::SQItem* currentItem;
+ GDCM_NAME_SPACE::SeqEntry* seqEntry;
+ GDCM_NAME_SPACE::SQItem* currentItem;
std::string currentFrameRefUID;
seqEntry = file->GetSeqEntry(0x3006,0x0020); //Structure Set ROI sequence
itkGenericExceptionMacro(<<exception1);
}
- gdcm::SeqEntry* seqEntry2 = currentItem->GetSeqEntry(0x3006,0x0012); //Referenced Study sequence
+ GDCM_NAME_SPACE::SeqEntry* seqEntry2 = currentItem->GetSeqEntry(0x3006,0x0012); //Referenced Study sequence
if (seqEntry2->GetNumberOfSQItems() < 1) {
itkGenericExceptionMacro(<<exception2);
}
// Read the input image.
// ============================================================
- gdcm::File *f = gdcm::File::New( );
+ GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New( );
- //f->SetLoadMode(gdcm::LD_NOSEQ | gdcm::LD_NOSHADOW);
+ //f->SetLoadMode(GDCM_NAME_SPACE::LD_NOSEQ | GDCM_NAME_SPACE::LD_NOSHADOW);
f->SetFileName( fileName );
f->SetMaxSizeLoadEntry(0xffff);
bool res = f->Load();
- if( gdcm::Debug::GetDebugFlag())
+ if( GDCM_NAME_SPACE::Debug::GetDebugFlag())
{
std::cout << "---------------------------------------------" << std::endl;
f->Print();
Program: gdcm
Module: $RCSfile: exExtractCSA.cxx,v $
Language: C++
- Date: $Date: 2007/06/21 15:01:00 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2007/06/21 15:06:13 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// Read the input image.
// ============================================================
- gdcm::File *f = gdcm::File::New( );
+ GDCM_NAME_SPACE::File *f = GDCM_NAME_SPACE::File::New( );
- //f->SetLoadMode(gdcm::LD_NOSEQ | gdcm::LD_NOSHADOW);
+ //f->SetLoadMode(GDCM_NAME_SPACE::LD_NOSEQ | GDCM_NAME_SPACE::LD_NOSHADOW);
f->SetFileName( fileName );
f->SetMaxSizeLoadEntry(0xffff);
bool res = f->Load();
- if( gdcm::Debug::GetDebugFlag())
+ if( GDCM_NAME_SPACE::Debug::GetDebugFlag())
{
std::cout << "---------------------------------------------" << std::endl;
f->Print();
std::cout << "Let's try tag : " << std::hex << group << "|" << elem << std::endl;
std::string dicom_tag_value = f->GetEntryString(group, elem);
- if (dicom_tag_value == gdcm::GDCM_UNFOUND)
+ if (dicom_tag_value == GDCM_NAME_SPACE::GDCM_UNFOUND)
{
- gdcm::DictEntry *dictEntry = f->GetPubDict()->GetEntry( group, elem);
+ GDCM_NAME_SPACE::DictEntry *dictEntry = f->GetPubDict()->GetEntry( group, elem);
if (dictEntry != NULL)
std::cerr << "Image doesn't contain any tag: " << dictEntry->GetName()
<< std::endl;
return 1;
}
- gdcm::DocEntry *dicom_tag_doc = f->GetDocEntry(group, elem);
- gdcm::DataEntry *dicom_tag = dynamic_cast<gdcm::DataEntry *>(dicom_tag_doc);
+ GDCM_NAME_SPACE::DocEntry *dicom_tag_doc = f->GetDocEntry(group, elem);
+ GDCM_NAME_SPACE::DataEntry *dicom_tag = dynamic_cast<GDCM_NAME_SPACE::DataEntry *>(dicom_tag_doc);
if( !dicom_tag )
{
std::cerr << "Sorry DataEntry only please" << std::endl;