Program: gdcm
Module: $RCSfile: Anonymize.cxx,v $
Language: C++
- Date: $Date: 2007/05/23 14:18:04 $
- Version: $Revision: 1.12 $
+ Date: $Date: 2007/06/15 13:18:50 $
+ Version: $Revision: 1.13 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// Write a new file
// ============================================================
- // Since we just Anonymized the file, we know no modification
+ // Since we just Anonymized the file, we know that no modification
// was performed on the pixels.
// The written image will not appear as a 'Secondary Captured image'
// nor as a DERIVED one
Program: gdcm
Module: $RCSfile: exExtractCSA.cxx,v $
Language: C++
- Date: $Date: 2007/06/07 16:13:14 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2007/06/15 13:18:51 $
+ 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
uint32_t item_xx[4];
is.read((char*)&item_xx, 4*sizeof(uint32_t));
if (verbose)
- std::cout << "item_xx=" << item_xx[0] << " " << item_xx[1] << " "
+ std::cout << std::dec
+ << "item_xx=" << item_xx[0] << " " << item_xx[1] << " "
<< item_xx[2] << " " << item_xx[3] << std::endl;
//std::cout << "0x" << std::hex << is.tellg() << std::dec << std::endl;
assert( item_xx[2] == 77 || item_xx[2] == 205 );
Program: gdcm
Module: $RCSfile: exXCoherentFileSet.cxx,v $
Language: C++
- Date: $Date: 2007/05/23 14:18:05 $
- Version: $Revision: 1.9 $
+ Date: $Date: 2007/06/15 13:18:51 $
+ Version: $Revision: 1.10 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
"\n exXCoherentFileSet :\n ",
"Shows the various 'XCoherent' Filesets within a directory ",
"usage: exXCoherentFileSet {dirin=inputDirectoryName} ",
- " { tag= group-elem | pos | ori } ",
+ " { tag= group-elem | pos | ori } sort ",
" [ { [noshadowseq] | [noshadow][noseq] } ] [debug] ",
" ",
" inputDirectoryName : user wants to analyze *all* the files ",
" 'Image Orientation ' ",
" tag : group-elem (in hexa, no space) ",
" the user wants to split on ",
+ " sort : user wants FileHelper to sort the images ",
+ " Warning : will probabely crah if sort has no meaning ",
" 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 ",
// FIXME : check only one of them is set !
- int pos = am->ArgMgrDefined("pos");
- int ori = am->ArgMgrDefined("ori");
-
+ int pos = am->ArgMgrDefined("pos");
+ int ori = am->ArgMgrDefined("ori");
+ int sort = am->ArgMgrDefined("sort");
+
int nb;
uint16_t *groupelem;
groupelem = am->ArgMgrGetXInt16Enum("tag", &nb);
// OrderFileList() causes trouble, since some files
// (eg:MIP views) don't have 'Position', now considered as mandatory
// Commented out for the moment.
-
- //s->OrderFileList((*i).second); // sort the XCoherent Fileset
-
+
+ if (sort) {
+ s->OrderFileList((*i).second); // sort the XCoherent Fileset
+ std::cout << "ZSpacing for the file set " << s->GetZSpacing()
+ << std::endl;
+ }
+
for (GDCM_NAME_SPACE::FileList::iterator it = ((*i).second)->begin();
it != ((*i).second)->end();
++it)