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