X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FPatchHeader.cxx;h=27654339ab8d9965dfd21ee63171c00e3cfd94b6;hb=678b3299b4f95559efda6512edae37827fd95dde;hp=e1d8dd19e98d63e7013ae6b50996fddfbee89ac3;hpb=993bc33a54fcb6097d7f48488911881448c0194d;p=gdcm.git diff --git a/Example/PatchHeader.cxx b/Example/PatchHeader.cxx index e1d8dd19..27654339 100644 --- a/Example/PatchHeader.cxx +++ b/Example/PatchHeader.cxx @@ -3,8 +3,8 @@ 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 @@ -31,7 +31,7 @@ // 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. @@ -50,16 +50,16 @@ uint16_t bitsstored; 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() { @@ -207,7 +207,7 @@ int main(int argc, char *argv[]) return 0; } -bsamplesperpixel = am->ArgMgrDefined("samplesperpixel"); + bsamplesperpixel = am->ArgMgrDefined("samplesperpixel"); if ( bsamplesperpixel ) samplesperpixel = am->ArgMgrWantInt("samplesperpixel",usage); @@ -264,15 +264,15 @@ bsamplesperpixel = am->ArgMgrDefined("samplesperpixel"); 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 */