1 # ---------------------------------------------------------------------
3 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image
5 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
6 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
7 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
9 # This software is governed by the CeCILL-B license under French law and
10 # abiding by the rules of distribution of free software. You can use,
11 # modify and/ or redistribute the software under the terms of the CeCILL-B
12 # license as circulated by CEA, CNRS and INRIA at the following URL
13 # http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html
14 # or in the file LICENSE.txt.
16 # As a counterpart to the access to the source code and rights to copy,
17 # modify and redistribute granted by the license, users are provided only
18 # with a limited warranty and the software's author, the holder of the
19 # economic rights, and the successive licensors have only limited
22 # The fact that you are presently reading this means that you have had
23 # knowledge of the CeCILL-B license and that you accept its terms.
24 # ------------------------------------------------------------------------
29 a Bruker exam has the following 3 levels structure :
31 ========================================================================
44 * 1 // only 'native' images
51 * CreatisComputedCartoFile
52 * 2 // post processed images (if any)
60 * 3 // post processed images (if any)
76 ========================================================================
78 To tell the truth, a lot of changes are found at every new version.
79 We only can hope the mandatory (for us) files keep the same name, with the same
81 Or we shall have to find out the version number, and swich - case all the
82 methods (see NRRD format...)
84 ========================================================================
122 ========================================================================
123 Dicom convertion *demands* the following files :
131 ========================================================================
132 This project contains :
134 appli :testBruker2Dicom:
135 ------------------------
137 - explores the given directory (holding a FULL Bruker exam), at the 3 levels,
138 - fills an equivalent Directory with the MHD files and/or the DICOM files
139 usage: testBruker2Dicom --dirin=rootDirectoryName
140 --dirout=outputDirectoryName
142 [{-b|-l}] b:BigEndian,l:LittleEndian default : l
143 [--debug] [--verbose] [--listonly] [--usage]
145 D : user wants to export as DICOM
146 M : user wants to export as MHD
147 debug : developper wants to run the program in 'debug mode'
150 If you were supplied an *incomplete* Bruker exam
151 (e.g. only the '2' serie) put it a 'root' directory,
152 and run this test using this 'root' directory as 'dirin'
160 starts from a 'root' directory,
161 iterates on each 'serie', at the 3 levels
162 fills an equivalent Directory with the DICOM files.
166 corresponds to a 'parameter file', at any level.
167 LoadFile(std::string fileName);
168 GetFieldData(std::string fieldName);
171 class BrukerFieldData :
172 according to what users *knows* about the element, he will use:
173 std::string &GetDataType();
174 int GetDimensionNumber()
175 int GetNumberOfElements()
176 std::vector<std::string> &GetStringValue()
177 std::vector<int> &GetIntValue ()
178 std::vector<double> &GetDoubleValue()
180 class BrukerObjectVaryingProperties :
182 class BrukerKspaceObject :
186 class BrukerSizeException:
187 class BrukerInitException
188 class BrukerHopelessException