1 2003-05-27 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
3 - typemaps correction to take into account the systematic replacement
4 of "using namespace std" with std:: prefix e.g. std::list,
5 std::string... (cf changes of 2003-05-21).
6 - gdcmGlob global variable of type gdcmGlobal (defined in
7 src/gdcmUtil.cxx and declared in gdcmPython/gdcm.i) is now
8 exported to Python a as cvar.
9 * gdcmPython/__init__.py now defines two functions GetPubDictTagNames()
10 and GetPubDictTagNamesByCategory() as a replacement for deprecated
11 gdcmDictSet.GetPubDictTagNames() and
12 gdcmDictSet.GetPubDictTagNamesByCategory() class functions (i.e.
14 * gdcmPython/demo/printGroupedPublicDict.py is operational again,
15 with the above changes.
17 2003-05-22 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
18 * setup.py, manifest.in : bug fix under linux
20 2003-05-22 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
21 * Modification of setup.py to compile vtk part too. Then, we have 2
22 wrappers which must work with same distutils. For that, we have a
23 generic distutils in distusiltsWrapping.py ; with :
24 - build_extWrap class to wrap generically all extensions,
25 - ExtensionWrap base class for all wrapping extension that contains
27 - Wrapper interface which wrap sources
28 + In WrapSwig.py we have extension and wrapper for Swig
29 + In WrapVTK.py we have extension and wrapper for VTK
30 * MANIFEST.in : modifications to consider vtk directory and new python
33 2003-05-21 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with Benoit Regrain
34 * Added python wrappers of vtkGdcmReader vtk class (see the
35 source in vtk/vtkGdcmReader.cxx) :
36 - vtk/Makefile.am now builds a library
37 - gdcmPython/Makefile.am now builds vtkgdcmPython a second import
38 python library (as opposed to _gdcm.so wich are the python
39 wrappers of gdcm). vtkgdcmPython.so uses the vtk python wrappers
40 (vtkWrapPython and vtkWrapPythonInit utility) to build vtkgdcmPython
42 - configure.in has an additional flag --enable-vtk that needs
43 to be set to enable compilation of vtk related code, that is:
44 + vtk/vtkGdcmReader.so and
45 + vtk/testvtkGdcmReader C++ demo of vtk wrappers of gdcm)
46 + gdcmPython/vtkgdcmPython.so (see above)
47 - gdcmPython/demo/vtkGdcmDemo.py corrected (some images cannot
48 be read when compressed or when HighBit + 1 != BitsStored),
49 - gdcmPython/demo/vtkGdcmReader.py added. This demo illustrates
50 the usage of the python wrapper of vtkGdcmReader vtk class.
51 * vtk/vtkGdcmReader.cxx: bug fixed (thanks to Benoit Regrain).
52 * src/*.[h] all occurences of stl classes are now prefixed with
53 std::, and all occurences of "using namespace std;" where removed.
54 This is to avoid pollution of global namespace in included files.
55 Apparently vtk does not avoid this pitfall: when using both
56 gdcm and vtk (as in vtk/vtkGdcmReader.cxx) this ended up in a
57 collision of various stl members (principally cout...).
58 * gdcmPython/testSuite.py now cleanly removes temprory generated
60 * gdcmPython/gdcm.i now declares a typemap for std::string (to
61 comply with above changes)
63 2003-05-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
64 * src/gdcmHeader>[h/cxx] added gdcmHeader::GetPixelSize()
65 * vtk/vtkGdcmReader.cxx now properly inports the image in the
66 vtk data structure (an image Flip was required).
67 * vtk/testvtkGdcmReader.cxx refers to gdcmData subdir instead of Data.
68 * cosmetic changes in documentation.
70 2003-05-7 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
71 * src/gdcmHeader.cxx: the constructor no longer exits when an
72 unexisting file is given as argument.
73 * The subdirectory Data (containing all the images used for the
74 test suite) is not part of this repository anymore. A new module
75 containing those images is now available at
76 :pserver:xxx@cvs.creatis.insa-lyon.fr:2402/cvs/public
77 with the name gdcmData.
78 All the python scripts (including the package initialisation file
79 gdcmPython/__init__.py) were adapated to take this change into
80 account (basically GDCM_DATA_PATH is now GDCM_TEST_DATA_PATH).
82 2003-05-5 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
83 * vtk subdir added. Contains vtkGdcmReader.[cxx|h] a vtk class
84 inherinting from vtkImageReader and testvtkGdcmReader.cxx a small
85 demo of the usage of this class.
86 Compilation of this vtk part is only done when using the --enable-vtk
87 at configure (or autogen.sh) stage.
89 2003-04-16 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
90 * More memmory link related corrections and documentation fixes.
92 - maximum info is obtained with a command of the form:
93 valgrind --leak-check=yes --leak-resolution=high --num-callers=40
94 --show-reachable=yes PrintHeader
95 - the remaining reachable blocks seem to come from the STL
96 allocation scheme through the usage of map and list. It looks
97 like this memory cannot be freed but it is not a memory leak
98 (in fact further invocation to the STL would recollect the
99 unused memory allthough it cannot explicitely be freed).
100 * gdcmPython/demo/vtkGdcmDemo.py added: this is a small demo
101 of displaying an image parsed with gdcm and displayed with VTK.
102 Note: some images don't seem to work e.g.
103 python vtkGdcmDemo.py ../../Data/US-RGB-8-esopecho.dcm
104 * src/gdcmHeader.x: dicom_vr and Dicts are not class members anymore.
105 Allthough this weakens the semantics, it is a ditch attempt to
106 make gdcm more thread friendly.
108 2003-04-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
109 * Memory link hunt (by using valgrind through the command
110 valgrind --show-reachable=yes --leak-check=yes PrintHeader).
111 - added src/gdcmVR.cxx gdcmVR.h that objectify the previous
112 gdcmHeader::_dicom_vr.
113 - gdcmHeader::InitVRDict transfered as gdcmVR::gdcmVR().
114 - gdcmHeader::dicom_vr is now of type gdcmVR* as opposed to
116 - gdcmGlobal global object contained class added (see src/gdcmUtil.x)
118 2003-04-9 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
119 * src/Makefile.am now exports all the necessary include files at
123 * UpdateGroupLength replaced by new one
126 * UpdateGroupLength re-written using H-Table
127 (named UpdateGroupLengthNew untill checks are over)
129 2003-04-7 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
130 * Data/im_00001 renamed to gdcm-MR-PHILIPS-16-Multi-Seq.dcm
131 * gdcmPython/testSuite.py now include a test of gdcmFile::Write.
133 - gdcmHeader::GetPubElValSet removed.
134 - gdcmElValSet::WriteDcm, WriteAcr, WriteExplVR, revamped to
135 UpdateGroupLength, WriteElements, Write.
136 - gdcmHeader::FileType moved to gdcmCommon.h. The enum FileType
137 doesn't contain TrueDicom anymore since ExplicitVR and ImplicitVR
138 carried the same semantics.
139 - src/gdcmHeaderIdo.cxx changed accordingly.
140 - gdcmFile::WriteBase now regroups all the codes from previous
141 versions of WriteDcm, WriteDcmImplVR, and WriteACR.
142 - enum FileType moved to gdcmCommon.h
143 * src/gdcmHeader.cxx AddDefault trashed
145 * getimageDataSize now calls gdcmGetXSize
146 * Test/*.cxx changed to agree with above changes
148 2003-03-31 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
149 * src/gdcmHeader.h: LoadElements() is not a public method anymore
150 (to avoid double call by end user).
151 * Test/*.cxx LoadElements() doesn't need to be called explicitely
152 by end user, since gdcmHeader::gdcmHeader now handles it.
154 2003-03-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
155 * gdcm/Doc many doxygen changes:
156 - Doxyfile now has two different versions, DoxyfileUsers that generates
157 the html.users end users oriented documentation and
158 DoxyfileDeveloppers that generates the html.developper developper
159 oriented documentation.
160 - README changed accordingly
161 - requirement.txt removed (old design info moved to TODO).
162 - Additional files DoxyInstallation.txt, DoxyIntroduction.txt,
163 DoxyMainPage.txt, DoxyPython.txt provide more information.
164 - Note: the website http://www.creatis.insa-lyon.fr/Public/Gdcm/ can now
165 be updated by simply regenerating the docs with doxygen and copying
166 html.developper and html.users to tux:/home/httpd/html/Public/Gdcm
167 * src/gdcmElValSet.cxx: stl <map>.count() can only return 0 or 1. Hence
168 all the tests in the form "if (<map>.count() >1)" were removed.
169 * src/gdcmFile.cxx: cosmetic changes to avoid messages of doxygen about
170 ill-formed documentation sections.
171 * src/gdcmHeader.cxx: ditto
173 2003-03-27 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
174 * setup.py fixed for un*x (needed macro for stdint.h)
175 * Test/test.cxx renamed to PrintHeader.cxx to avoid collision on
176 un*ces with sh-utils test utility.
177 * gdcmPython/demo/test.py renamed to PrintHeader.py
178 * gdcmPython/demo/ReorganiseFiles.py new demo script added.
179 * gdcmPython/win32/gdcmpycomplet.dsp renamed to gdcmpyembedded.dsp.
180 * gdcmPython/win32/gdcmpy.dsp trashed away (brain damaged).
181 * src/gdcm*.cxx JPR's bad inclusion fixed.
183 2003-03-26 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
184 * src/gdcmHeader[h, cxx] gdcmHeader now has an IsReadable predicate.
185 * gdcmPython/demo/test.py changed accordingly.
187 2003-03-25 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
188 * gdcmPython/Makefile.am fixed linking against libstdc++
189 * gdcmPython/_gdcm.so symbolic link to gdcmPython/.libs/pygdcm.so added.
190 * Swig subdir (historical tests of swig version 1.3.17++) removed
191 * Test/testChangeEntete.cxx some lines commented out in order to make
193 * src/gdcmHeader.cxx cleaned up wild JPR's dirty kludge.
194 * src/gdcmElValSet.cxx cleaned up frog's forgotten debug message
196 2003-03-24 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
197 * src/gdcmHeader.cxx gdcmHeader::gdcmHeader now calls LoadElements(),
198 hence the user doesn't need this explicit call.
199 - gdcmPython/testSuite.py, gdcmPython/demo/*.py changed accordingly
200 i.e. LoadElements() call removed.
201 * src/gdcmCommon.h now defines UINT32_MAX (see stdint.h).
202 - src/Makefile.am declares the proper flag for g++.
203 * src/gdcmElValSet.h added gdcmElValSet::GenerateFreeTagKeyInGroup
204 for adding user defined new tags.
205 - src/gdcmHeader.cxx gdcmHeader::NewManualElValToPubDict added.
206 - src/gdcmHeader.cxx gdcmHeader::AddAndDefaultElements now
207 cleanly adds some gdcm added tags (like gdcmXSize, gdcmYSize...)
209 2003-03-17 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
210 * Makefile.am, acinclude.m4, configure.in, python.m4, Dicts/Makefile.am,
211 Doc/Makefile.am, Test/Makefile.am, gdcmPython/Makefile.am,
212 src/Makefile.am : the project should properly compile and install
213 with the autotools, included the python wrappers part.
214 * gdcm.spec.in : added a spec file for RPM packaging.
216 2003-03-14 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
217 * src/gdcmUtils.cxx : redifinition of defaults parameters in code
219 2003-03-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
220 * gdcmPython/__init__.py fix of GDCM_DICT_PATH which was not
221 to exported to the environement (see gdcmPython/testSuite.py
223 * src/gdcmElValSet.[cxx/h], gdcmElValue.[cxx/h], gdcmFile.[cxx/h],
224 gdcmHeader.[cxx/h]: ElValSet class renamed to gdcmElValSet, and
225 ElValue class renamed to gdcmElValue for obvious consistency reasons.
226 * src/gdcmElValSet.cxx, src/gdcmUtil.[cxx-h] Tokenize utility function
227 moved away from gdcmElValSet.cxx to gdcmUtil.cxx.
229 2003-03-10 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
230 * gdcmPython/__init__.py doesn't crash anymore when running in
231 in InstallMode or PreInstallMode but with an environement given
232 value of GDCM_DICT_PATH.
233 * src/gdcmDictSet.[cxx/h] coding style.
235 2003-03-06 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
236 * src/gdcmHeader.h and gdcmHeader.cxx Coding style + doxigenation.
237 * src/gdcm.h general comments moved to TODO, and README
238 * src/gdcm.h should now be seen as a user commodity (including it
239 should suffice to fully use gdcm). It is nowhere including within
240 any of the kernel files src/*.cxx and src/*.h.
242 2003-03-05 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
243 * src/gdcm.h splitted in gdcmCommon.h, gdcmDict.h, gdcmDictEntry.h,
244 gdcmDictSet.h, gdcmElValSet.h, gdcmElValue.h, gdcmFile.h,
246 * src/gdcm*.cxx only include their corresponding include file
247 (as opposed to gdcm.h)
248 * gdcmPython/gdcm.i changed accordingly
249 * Test/Makefile.am corrected and added NEWS, AUTHORS in order for
250 the autogen.sh generated "make snapshot" command to work.
251 * autogen.sh removed history related references to crea package.
253 2003-03-04 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
254 * distutilsSwigCPlusPlus.py work around some swig portability
257 2003-03-03 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
258 * Eventually, python/gdcmPython was renamed to gdcmPython. This
259 was done in a last ditch attempt to get setup.py _really_
260 operationnal. The python/gdcmPython layaout add the advantage
261 of hidding away the python related distutils specific files
262 (MANIFEST.in, setup.py, distutils*.py...) from the main directory.
263 Alas, the src directory was out of scope (i.e. it's relative
264 position to setup.py was ../src) which made things impossible to
265 handle (see previous version of python/setup.py). Crossing fingers...
267 2003-02-20 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
268 * python/setup.py now works on Un*x. (harder than I thougth)
269 * python/distutilsSwigCPlusPlus.py can now have include files
270 among the list of sources.
272 2003-02-20 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
273 * src/gdcmHeader.cxx : bug fix - opening dicom file in binary !!!
274 * modifications in MSVC projects
276 2003-02-19 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
277 * As stated by the first lines of Test/ExceptionAndPython/README, it
278 looks like we can move back to original usage of exception within
279 src/gdcm* and hence remove the errno stuff that was introduced
280 as a quick and dirty fixture of this problem (added to the TODO).
281 * Doc/Doxyfile configuration file for Doxygen and corresponding
282 README file for usage added.
283 * Test/testWrite.cxx added. This new test comes from a split of
284 test.cxx that is now reverted to its original purpous i.e.
285 testing the proper parsing of a Dicom related file.
286 testWrite.cxx concentrates on testing the IO part of gdcm.
287 * Test/bug1.cxx (containing a bug on WIn32) added.
288 * src/gdcm.h, gdcmHeader.cxx, gdcmDictSet.cxx:
289 - gdcmHeader::GetPubTagNames and gdcmHeader::GetPubTagNamesByCategory
290 whose purpose is to publish the content of the TagNames of the
291 Dicom public dictionnary were not accessible without an
292 instance of class gdcmHeader.
293 - those methods are now static methods of gdcmDictSet and hence
294 require no instances at all to be invocated.
295 - within gdcmDictSet this change required to change some method
296 to class methods (i.e. are now static) among which SetDictPath
297 (renamed to BuildDictPath) and LoadDefaultPubDict.
298 * python/gdcmPython/demo/printGroupedPublicDict.py changed to illustrate
299 the above changes by calling the new method classes of gdcmDictSet.
300 * python/gdcmPython/__init__.py now exposes gdcm.gdcmDictSet for
301 the above to be effective.
302 * python/gdcmPython: in order to wrap properly the above changes
303 for Python, swig version now needs to be > 1.3.17.
304 * python/gdcmPython/Makefile fixed to adapt itself to new
305 configure/make shema introduced by Johan Montagnat (thanks for the
306 contribution). Alas this Makefile cannot be turned into a proper
307 Makefile.am without some heavy changes in the configure.in
308 (for python dectection).
309 * python/gdcmPython/gdcm.i: the out typemap map<string, list<string>>*
310 now avoids publishing the empty entries.
312 2003-02-13 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
313 * python/setup.py : bug fix concerning install under windows
315 * gdcm.dsw : bug fix concerning path for libraries for python !!!
317 2003-02-13 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
318 * Dicts/dicomV3.dic : remove double spaces !!!
319 * src/gdcmElValSet.cxx : bug fix concerning windows compiler
320 * python/gdcmPython/win32/gdcmpycomplet.dsp : bug fix concerning paths
323 2003-01-28 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
324 * src/gdcmHeader.cxx added a post header parsing AddAndDefaultElements
325 method. Doxygenation.
326 * src/gdcm.h clean up of JPR spurious comments.
328 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
329 * python/distutilsSwigCPlusPlus.py now properly collects the
330 shadow classes generated by "swig -c++" (gdcm.py in our case)
331 when using "python setup.py install".
332 * python/gdcmPython/__init__.py imports gdcm.py and only manually
333 reexports the working classes.
334 * src/gdcmHeader.cxx all the try/catch/throw calls were replaced
335 by the classical C errno scheme. This is to prevent an obscure
336 behavior of the python wrappers when importing wxPython.wx prior
337 to gdcmPython (which ended up in an abort call). An illustration
338 of this oddity can be found in the Test/ExceptionAndPython
339 subdir (see the README file). This problem probably due to
340 an combination of g++ and dynamic loading.
341 * added Test/ExceptionAndPython (see above)
343 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
344 * Changed the layout of the python part to avoid bloating main
345 directory with setup.py, distutilsSwigCPlusPlus.py, MANIFEST.in
346 i.e. the distutils arsenal. All the python related stuff is
347 again in a python subdir, but the package itself is now in
349 * setup.py was cleaned up:
350 - pythonIncludePath removed
351 - python setup.py bdist target is now functional.
352 * gdcmPython/__init__.py doesn't export FileName any more (to avoid
353 collision with other packages). gdcmPython/demo/*.py changed
355 2003-01-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
356 * python subdir moved to gdcmPython (preparation of distutils packaging).
357 * gdcmPython/setup.py and distutilsSwigCPlusPlus.py added. The
358 distutils installer is operational.
359 * - gdcmPython/__init__.py now properly loads the swig generated
360 shadow classes (from gdcm.py).
361 - gdcmPython/demo/*.py changed to import the package gdcmPython
362 instead of gdcmPython/demo/load.py.
363 - gdcmPython/testSuite.py changed to import the package gdcmPython.
366 2002-12-16 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
367 * src/gdcm.h, src/gdcmHeader.cxx: added GetPubTagNames() resp.
368 GetPubTagNamesByCategory() to gdcmHeader that return a list of the
369 entries within the associated public Dicom dictionary resp. the same
370 information but sorted by the fourth field (PAT, IMG, DIR) of the
372 - Dicts/dicomV3.dic Entries which had and unspecified fourth field
373 are now in the "???" group.
374 - python/gdcm.i changed accordingly,
375 - python/demo/printGroupedPublicDict.py added, that gives an example
376 of the above new functionalities in Python.
378 2002-12-11 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
379 * src/gdcm.h, gdcmHeader.cxx:
380 - historic references to glib's g_malloc and g_free (#defined)
381 were definitively removed.
382 - gdcm.h: cosmetic changes (part of comments moved to Doc/requirements)
383 * src/gdcmElValSet.cxx:
384 - GetElement(guint32, guint32) renamed to GetElementByNumber.
385 - GetElValue(guint32, guint32) renamed to GetElValueByNumber.
386 - GetElValue(string) renamed to GetElValueByName.
387 - Added GetElementByName(string).
388 * src/gdcmHeader.cxx: added
389 - GetPubElValRepByNumber(guint16, guint16)
390 - GetPubElValRepByName(string)
391 - GetShaElValRepByNumber(guint16, guint16)
392 - GetShaElValRepByName(string)
393 - GetShaElValByNumber(guint16, guint16)
394 - GetShaElValRepByName(string)
395 - GetElValRepByNumber(guint16, guint16)
396 - GetElValRepByName(string)
397 - GetElValByNumber(guint16, guint16)
398 - GetElValRepByName(string)
399 * Doc/requirements.txt added.
401 2002-12-9 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
402 * Test/Makefile building now depends on the one of libgdcm.so
403 * src/gdcmHeader.cxx and gdcm.h are now OB (undefined length encoded
404 pixel data) aware which enables finding the address (offset) of
405 the pixel data of JPEG encoded DICOM files. This leaves only a single
406 file in the testSuite whose pixel data address (offset) is unknown.
407 * python/testSuite.py changed accordingly.
409 2002-12-6 Christophe Odet + Hugues Benoit-Cattin + Eric.Boix
410 * VC++ has some strong limitations when working with the STL, as stated
411 in http://support.microsoft.com/support/kb/articles/Q168/9/58.ASP :
412 "Also note that some STL containers (map, set, queue, list, deque)
413 cannot be exported. [...]
414 Some STL classes contain nested classes. These classes can not
416 This is caused by a designed limitation that once a template
417 class is instantiated, it can not be re-instantiated and
419 Since our usage of map<> is ubiquitous in gdcm, this "designed
420 limitation" of VC++ is a pitfall.
421 Hence the Python wrappers of gdcm cannot be incrementally linked
422 against the c++ dynamic library. The dirty but only workaround is
423 to forget about incremental link of dynamic libraries and to generate
424 the Python wrappers library with the inclusions of the underlying C++
426 The following modifications concern this matter on Win32/VC++:
427 - wrapping python correct with standalone wrapped dll (don't use separate
428 dll under windows !!!!)
429 - python21_d debug mode enabled (ask Frog how to use it :-)
430 - NO problem with having an STL member of class for example string in C++
431 WITH THE RESTRICTION OF FORGETING ABOUT INCREMENTAL LINK.
432 - Python test of dcmlib in Python is ok under windows on a large set
434 * removed glib references
435 * typedef's inserted in gdcm.i for correct swig type management
437 2002-11-27 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
438 * python/demo/*.py load.py extracted from test.py. Added explore.py
439 that only displays required tags and testAll.py that parses all
440 the files of the testsuite without using unittest.
441 * python/testSuite.py other additional test on new files added.
442 * Data/* new test files added accordingly to the testSuite.
443 * src/gdcmHeader.cxx avoid overwriting of the dictionary when
444 the vr in the file differs from the one of the dictionary.
446 2002-11-20 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
447 * src/gdcm.h and gdcmHeader.cxx gdcm no longer loads all the elements
448 values, but limits itself to values which are below a user specified
449 size (by default 1024 bytes).
450 * python/gdcm.i : elements not loaded (because their size is above the
451 user specified treshold) are exported with their TagKey as key of the
452 python dictionary. This enables the testsuite to make some checks
453 on the unloaded elements (since we have their offset and size).
454 * python/testSuite.py
455 - now tests for the existence and proper value of the pixel data
456 - two new examples added.
457 * Data/gdcm-MR-SIEMENS-16.acr[12] added.
459 2002-11-18 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
460 * src/gdcm.h and gdcmHeader.cxx are now "Big Endian transfer syntax"
461 aware. See the strategy comments in gdcmHeader::FindeLength().
462 * Test/test.cxx now accepts a filename as first argument.
463 * Data/US-PAL-8-10x-echo.dcm and US-RGB-8-epicard.dcm added.
464 * python/testSuite.py changed to integrate test on above files.
466 2002-11-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
467 * Dicts/dicomV3.dic removed all the trailing (RET) when the
469 * python/testSuite.py more tests added.
471 2002-11-14 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
472 * python/testSuite.py unittest test suite added (uses Data)
473 * Data/* dcm and acr files for the test suite.
474 * glib dependance removed from un*x version. We now use ISO C99
475 7.18 Integer types (see stdint.h)
476 - python/Makefile, src/Makefile src/gdcm.h
477 * src/ when an explicit vr (like dicom files) suddenly poped an
478 implicit element we use to mark the underlying DictEntry of the
479 concerned ElValue with "Implicit". This strategy was damageable
480 too the public or provite dictionaries, since some of their vr
481 would be changed. Since Header::FindLength heavily relies on the
482 detection by Header::FindVR of falsely explicit elements, I
483 added an extra ImplicitVr member to ElValue (boolean).
484 The rest of the changes we the necessary adaptations.
486 2002-11-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
487 * src/gdcmHeader::FindLength bug fix when trapping falsely explicit
489 * src/gdcmHeader::FindVR: hard way fix of falsely explicit vr files.
491 2002-11-8 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
492 * Adaptation for porting to VC++:
494 o forced to use std namespace (for string to be known)
495 o all class use __declspec export style on WIN32
496 - src/gdcmUtil.cxx new Exit method that wraps the exit call
497 (in stdlib.h on Win32 but in std:: for gcc)
498 * src/gdcmDictSet::SetDictPath adds a trailing / to environement
499 variable GDCM_DICT_PATH.
500 * src/gdcmHeader.cxx verbose comments made discrete.
502 2002-11-7 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
503 * python/gdcm.i: added a typemap that converts a C++ hashing table
504 to native Python dictionary.
505 * python/demo/test.py:
506 - now uses the native dictionary for exploration of gdcmHeader.
507 - takes an optional filename argument (the file to parse).
508 * src/gdcm.h and gdcmHeader.cxx: gdcmHeader now has an accessor on
509 PubElVals hashing table.
510 * Dicts/dicomV3.dic removed error prone trailing spaces.
512 2002-11-6 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
513 * Python wrapping process moved away from src/Makefile to
514 newly created python/Makefile (as well as gdcm.i)
515 * python/demo/test.py (that mirrors Test/test.cxx) is effective.
516 * src/gdcmHeader::FindLength only looks for current vr when necessary.
517 * src/gdcmDictSet.cxx: the dictionnaries directory path is now imported
518 from the environement variable GDCM_DICT_PATH (when existing).
519 * src/gdcmDict::GetTag bug fix.
521 2002-10-31 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
522 * Straightforward temporary fixes for swig to build the python wrappers.
523 src/Makefile now has a python working entry [by working we mean
524 that we can import de shadow classes without errors].
526 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
527 * hashtest.cxx removed (since allready in Test)
528 * src/gdcmlib.h renamed to src/gdcm.h
529 * src/dcm.i renamed to src/gdcm.i
530 * src/Makefile prepared for python wrapping
532 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
533 * src/gdcmHeader.cxx :
534 - Parsing of header is now separated from loading of element values
535 (see gdcmHeader::LoadElements).
536 - general clean up of hopefully all file access (creation of
537 ReadInt16 and ReadInt32)
539 2002-10-22 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
540 * src/gdcmHeader.cxx :
541 - RecupLgr renamed to FindLength and cut off with new IsAnInteger
543 - SetLgrElem renamed to SetLength
544 - GetLgrElem renamed to GetLength
545 - ~gdcmHeader() made virtual to pesky warning messages at compile.
546 * src/gdcmElValSet.cxx fixed both GetElValue methods
547 * Dicts/dicomV3.dic falacious entry [7fe0 0010 OT PXL Pixel Data]
548 due to IdoDude was cleaned out.
550 2002-10-21 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
551 * src/gdcmHeader.cxx RecupLgr split in FindVR and RecupLgr. FindVR
552 concentrates on finding the value representation (when it exists).
553 RecupLgr now only finds the element value length, and it avoids
554 returning the unecessary skL (skipped length).
555 Also, offsetCourant was simply removed (with taille_fich) since
556 it was redundant with the File position internals (by using
557 ftell and fseek). This also made skL (see above in RecupLgr) usage
559 * src/gdcmHeaderIdo.cxx src/gdcmIdo.h added. Those files concentrate
560 on the libido specificities which are handled through class
562 * Test/implicit_vr.dcm dicom v3 in implicit value representation
565 2002-10-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
566 * Truckload of changes. Parsing of header is barely functional
567 (see Test/test) with the standard dictionary (see Dicts/dicomV3.dic).
569 2002-10-10 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
570 * src/gdcmHeader.cxx many addons of low level methods
572 2002-10-07 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
573 * src/gdcmHeader now contains_IdDcmCheckSwap, _IdDcmRecupLgr,
576 2002-09-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
577 * This corresponds to all the changes decided at the meeting of
578 May 23 2002. Needless to say we are running late...