Program: gdcm
Module: $RCSfile: PatchHeader.cxx,v $
Language: C++
- Date: $Date: 2005/08/28 17:10:49 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2005/08/30 15:13:05 $
+ 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
// and re-write with a right value.
// This program does the job by brutally overwritting the wrong values.
// It may be usefull to save a set of images ...
-// (It dosn't allow to *add* a missing field)
+// (It doesn't allow to *add* a missing field)
// ------------------------------------------------------------------------
// global variables will be seen inside any function.
uint16_t highbit;
uint16_t pixelrepresentation;
-bool bsamplesperpixel;
-bool bplanarconfiguration;
-bool bsize;
-bool brows;
-bool bcolumns;
-bool bplanes;
-bool bbitsallocated;
-bool bbitsstored;
-bool bhighbit;
-bool bpixelrepresentation;
+int bsamplesperpixel;
+int bplanarconfiguration;
+int bsize;
+int brows;
+int bcolumns;
+int bplanes;
+int bbitsallocated;
+int bbitsstored;
+int bhighbit;
+int bpixelrepresentation;
void update()
{
return 0;
}
-bsamplesperpixel = am->ArgMgrDefined("samplesperpixel");
+ bsamplesperpixel = am->ArgMgrDefined("samplesperpixel");
if ( bsamplesperpixel )
samplesperpixel = am->ArgMgrWantInt("samplesperpixel",usage);
if (am->ArgMgrDefined("debug"))
gdcm::Debug::DebugOn();
- int loadMode = 0x00000000;
+ int loadMode = gdcm::LD_ALL;
if ( am->ArgMgrDefined("noshadowseq") )
- loadMode |= NO_SHADOWSEQ;
+ loadMode |= gdcm::LD_NOSHADOWSEQ;
else
{
if ( am->ArgMgrDefined("noshadow") )
- loadMode |= NO_SHADOW;
+ loadMode |= gdcm::LD_NOSHADOW;
if ( am->ArgMgrDefined("noseq") )
- loadMode |= NO_SEQ;
+ loadMode |= gdcm::LD_NOSEQ;
}
/* if unused Param we give up */