Program: gdcm
Module: $RCSfile: AnonymizeNoLoad.cxx,v $
Language: C++
- Date: $Date: 2005/10/25 14:52:26 $
- Version: $Revision: 1.13 $
+ Date: $Date: 2006/07/17 13:25:00 $
+ Version: $Revision: 1.18 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
START_USAGE(usage)
"\n AnonymizeNoLoad :\n ",
- "Anonymize a gdcm-readable Dicom image even if pixels aren't gdcm readable ",
- " Warning : Warning : the image is overwritten ",
+ "Anonymize a gdcm-parsable Dicom image even if pixels aren't gdcm readable ",
+ " Warning : the image is OVERWRITTEN ",
" to preserve image integrity, use a copy. ",
"usage: AnonymizeNoLoad {filein=inputFileName|dirin=inputDirectoryName} ",
" [rubout=listOfElementsToRubOut] ",
" noshadowseq: user doesn't want to load Private Sequences ",
" noshadow : user doesn't want to load Private groups (odd number) ",
" noseq : user doesn't want to load Sequences ",
- " debug : user wants to run the program in 'debug mode' ",
+ " debug : developper wants to run the program in 'debug mode' ",
FINISH_USAGE
// ----- Initialize Arguments Manager ------
if (am->ArgMgrDefined("debug"))
gdcm::Debug::DebugOn();
- char *fileName = am->ArgMgrGetString("filein",(char *)0);
- char *dirName = am->ArgMgrGetString("dirin",(char *)0);
+ const char *fileName = am->ArgMgrGetString("filein");
+ const char *dirName = am->ArgMgrGetString("dirin");
if ( (fileName == 0 && dirName == 0)
||
loadMode |= gdcm::LD_NOSHADOWSEQ;
else
{
- if ( am->ArgMgrDefined("noshadow") )
- loadMode |= gdcm::LD_NOSHADOW;
+ if ( am->ArgMgrDefined("noshadow") )
+ loadMode |= gdcm::LD_NOSHADOW;
if ( am->ArgMgrDefined("noseq") )
loadMode |= gdcm::LD_NOSEQ;
}
// Patient's ID
f->AddAnonymizeElement( 0x0010, 0x0020,"1515" );
// Patient's Birthdate
- f->AddAnonymizeElement( 0x0010, 0x0030,"11.11.1111" );
+ f->AddAnonymizeElement( 0x0010, 0x0030,"11111111" );
// Patient's Adress
f->AddAnonymizeElement( 0x0010, 0x1040,"Sing-sing" );
// Patient's Mother's Birth Name
// Patient's ID
f->AddAnonymizeElement( 0x0010, 0x0020,"1515" );
// Patient's Birthdate
- f->AddAnonymizeElement( 0x0010, 0x0030,"11.11.1111" );
+ f->AddAnonymizeElement( 0x0010, 0x0030,"11111111" );
// Patient's Adress
f->AddAnonymizeElement( 0x0010, 0x1040,"Sing-sing" );
// Patient's Mother's Birth Name