Program: gdcm
Module: $RCSfile: testBruker2Dicom.cxx,v $
Language: C++
- Date: $Date: 2009/12/14 14:08:08 $
- Version: $Revision: 1.6 $
+ Date: $Date: 2010/01/11 18:00:17 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
// ===================================================================================================
/**
- * \brief
+ * \brief
* - explores the given root directory e.g. :
* B67d1.Bp1
* subject
* isa <--
* meta
* procs
- * roi ...
+ * roi ...
* roi
* 3 // post processed images (if any)
* 2dseq
* meta
* procs
* roi
- * ...
+ * ...
* 2
* acqp
* fid
* ...
* pdata
- * 3
+ * 3
* ...
* - fills a single level Directory with the MHD files,
- */
-
+ */
+
int main(int argc, char *argv[])
{
START_USAGE(usage)
" \n testBruker2Dicom : \n ",
" - explores the given directory (holding a FULL Bruker exam), at the 3 levels,",
- " - fills an equivalent Directory with the MHD files or the DICOM files ",
+ " - fills an equivalent Directory with the MHD files and/or the DICOM files",
" usage: testBruker2Dicom dirin=rootDirectoryName ",
" dirout=outputDirectoryName ",
" [D] [M] ",
b2d.SetConvertModeToDicom();
if (mhd)
b2d.SetConvertModeToMhd();
-
+
/* if unused Param we give up */
if ( am->ArgMgrPrintUnusedLabels() )
{
// b2d.day : unused ...
b2d.day = am->ArgMgrGetString("day", "You_forget_the_Day");
-
- delete am; // we don't need Argument Manager any longer
+
+ delete am; // we don't need Argument Manager any longer
// ----------- End Arguments Manager ---------
b2d.SetOutputDirectory(dirNameout);
/// \TODO : *do* use exceptions in the methods!
-
+
try {
b2d.Execute();
}
}
-}
+}