X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=appli%2FtestBruker2Dicom%2FtestBruker2Dicom.cxx;h=b8d78eab5dfb131afa47ab7a156a5293bd584afe;hb=4856246a95f348a8d1c19546a44cf62ada82e502;hp=ba0403630d122d634d8551d97cab0812136f73e9;hpb=11a9650af17244f38034d70edf3c638274c8a01c;p=creaBruker.git diff --git a/appli/testBruker2Dicom/testBruker2Dicom.cxx b/appli/testBruker2Dicom/testBruker2Dicom.cxx index ba04036..b8d78ea 100644 --- a/appli/testBruker2Dicom/testBruker2Dicom.cxx +++ b/appli/testBruker2Dicom/testBruker2Dicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: testBruker2Dicom.cxx,v $ Language: C++ - Date: $Date: 2009/06/19 15:51:44 $ - Version: $Revision: 1.5 $ + 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 @@ -35,7 +35,7 @@ // =================================================================================================== /** - * \brief + * \brief * - explores the given root directory e.g. : * B67d1.Bp1 * subject @@ -63,7 +63,7 @@ * isa <-- * meta * procs - * roi ... + * roi ... * roi * 3 // post processed images (if any) * 2dseq @@ -72,24 +72,24 @@ * 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, at the 3 levels, ", - " - fills an equivalent Directory with the MHD files or the DICOM files ", + " - explores the given directory (holding a FULL Bruker exam), at the 3 levels,", + " - fills an equivalent Directory with the MHD files and/or the DICOM files", " usage: testBruker2Dicom dirin=rootDirectoryName ", " dirout=outputDirectoryName ", " [D] [M] ", @@ -99,6 +99,11 @@ int main(int argc, char *argv[]) " D : user wants to export as DICOM ", " M : user wants to export as MHD ", " debug : developper wants to run the program in 'debug mode' ", + " ", + " REMARK : ", + " If you were supplied an *incomplete* Bruker exam ", + " (e.g. only the '2' serie) put it a 'root' directory, ", + " and run this test using this 'root' directory as 'dirin' ", FINISH_USAGE // ------------ Initialize Arguments Manager ---------------- @@ -138,7 +143,7 @@ int main(int argc, char *argv[]) b2d.SetConvertModeToDicom(); if (mhd) b2d.SetConvertModeToMhd(); - + /* if unused Param we give up */ if ( am->ArgMgrPrintUnusedLabels() ) { @@ -152,8 +157,8 @@ int main(int argc, char *argv[]) // 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 --------- @@ -164,7 +169,7 @@ int main(int argc, char *argv[]) b2d.SetOutputDirectory(dirNameout); /// \TODO : *do* use exceptions in the methods! - + try { b2d.Execute(); } @@ -185,6 +190,6 @@ int main(int argc, char *argv[]) } -} +}