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