2 * UpdateGroupLength re-written using H-Table
3 (named UpdateGroupLengthNew untill checks are over)
5 2003-04-7 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
6 * Data/im_00001 renamed to gdcm-MR-PHILIPS-16-Multi-Seq.dcm
8 - gdcmHeader::GetPubElValSet removed.
9 - gdcmElValSet::WriteDcm, WriteAcr, WriteExplVR, revamped to
10 UpdateGroupLength, WriteElements, Write.
11 - enum FileType moved to gdcmCommon.h
12 * Test/*.cxx changed to agree with above changes
14 2003-03-31 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
15 * src/gdcmHeader.h: LoadElements() is not a public method anymore
16 (to avoid double call by end user).
17 * Test/*.cxx LoadElements() doesn't need to be called explicitely
18 by end user, since gdcmHeader::gdcmHeader now handles it.
20 2003-03-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
21 * gdcm/Doc many doxygen changes:
22 - Doxyfile now has two different versions, DoxyfileUsers that generates
23 the html.users end users oriented documentation and
24 DoxyfileDeveloppers that generates the html.developper developper
25 oriented documentation.
26 - README changed accordingly
27 - requirement.txt removed (old design info moved to TODO).
28 - Additional files DoxyInstallation.txt, DoxyIntroduction.txt,
29 DoxyMainPage.txt, DoxyPython.txt provide more information.
30 - Note: the website http://www.creatis.insa-lyon.fr/Public/Gdcm/ can now
31 be updated by simply regenerating the docs with doxygen and copying
32 html.developper and html.users to tux:/home/httpd/html/Public/Gdcm
33 * src/gdcmElValSet.cxx: stl <map>.count() can only return 0 or 1. Hence
34 all the tests in the form "if (<map>.count() >1)" were removed.
35 * src/gdcmFile.cxx: cosmetic changes to avoid messages of doxygen about
36 ill-formed documentation sections.
37 * src/gdcmHeader.cxx: ditto
39 2003-03-27 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
40 * setup.py fixed for un*x (needed macro for stdint.h)
41 * Test/test.cxx renamed to PrintHeader.cxx to avoid collision on
42 un*ces with sh-utils test utility.
43 * gdcmPython/demo/test.py renamed to PrintHeader.py
44 * gdcmPython/demo/ReorganiseFiles.py new demo script added.
45 * gdcmPython/win32/gdcmpycomplet.dsp renamed to gdcmpyembedded.dsp.
46 * gdcmPython/win32/gdcmpy.dsp trashed away (brain damaged).
47 * src/gdcm*.cxx JPR's bad inclusion fixed.
49 2003-03-26 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
50 * src/gdcmHeader[h, cxx] gdcmHeader now has an IsReadable predicate.
51 * gdcmPython/demo/test.py changed accordingly.
53 2003-03-25 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
54 * gdcmPython/Makefile.am fixed linking against libstdc++
55 * gdcmPython/_gdcm.so symbolic link to gdcmPython/.libs/pygdcm.so added.
56 * Swig subdir (historical tests of swig version 1.3.17++) removed
57 * Test/testChangeEntete.cxx some lines commented out in order to make
59 * src/gdcmHeader.cxx cleaned up wild JPR's dirty kludge.
60 * src/gdcmElValSet.cxx cleaned up frog's forgotten debug message
62 2003-03-24 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
63 * src/gdcmHeader.cxx gdcmHeader::gdcmHeader now calls LoadElements(),
64 hence the user doesn't need this explicit call.
65 - gdcmPython/testSuite.py, gdcmPython/demo/*.py changed accordingly
66 i.e. LoadElements() call removed.
67 * src/gdcmCommon.h now defines UINT32_MAX (see stdint.h).
68 - src/Makefile.am declares the proper flag for g++.
69 * src/gdcmElValSet.h added gdcmElValSet::GenerateFreeTagKeyInGroup
70 for adding user defined new tags.
71 - src/gdcmHeader.cxx gdcmHeader::NewManualElValToPubDict added.
72 - src/gdcmHeader.cxx gdcmHeader::AddAndDefaultElements now
73 cleanly adds some gdcm added tags (like gdcmXSize, gdcmYSize...)
75 2003-03-17 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
76 * Makefile.am, acinclude.m4, configure.in, python.m4, Dicts/Makefile.am,
77 Doc/Makefile.am, Test/Makefile.am, gdcmPython/Makefile.am,
78 src/Makefile.am : the project should properly compile and install
79 with the autotools, included the python wrappers part.
80 * gdcm.spec.in : added a spec file for RPM packaging.
82 2003-03-14 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
83 * src/gdcmUtils.cxx : redifinition of defaults parameters in code
85 2003-03-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
86 * gdcmPython/__init__.py fix of GDCM_DICT_PATH which was not
87 to exported to the environement (see gdcmPython/testSuite.py
89 * src/gdcmElValSet.[cxx/h], gdcmElValue.[cxx/h], gdcmFile.[cxx/h],
90 gdcmHeader.[cxx/h]: ElValSet class renamed to gdcmElValSet, and
91 ElValue class renamed to gdcmElValue for obvious consistency reasons.
92 * src/gdcmElValSet.cxx, src/gdcmUtil.[cxx-h] Tokenize utility function
93 moved away from gdcmElValSet.cxx to gdcmUtil.cxx.
95 2003-03-10 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
96 * gdcmPython/__init__.py doesn't crash anymore when running in
97 in InstallMode or PreInstallMode but with an environement given
98 value of GDCM_DICT_PATH.
99 * src/gdcmDictSet.[cxx/h] coding style.
101 2003-03-06 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
102 * src/gdcmHeader.h and gdcmHeader.cxx Coding style + doxigenation.
103 * src/gdcm.h general comments moved to TODO, and README
104 * src/gdcm.h should now be seen as a user commodity (including it
105 should suffice to fully use gdcm). It is nowhere including within
106 any of the kernel files src/*.cxx and src/*.h.
108 2003-03-05 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
109 * src/gdcm.h splitted in gdcmCommon.h, gdcmDict.h, gdcmDictEntry.h,
110 gdcmDictSet.h, gdcmElValSet.h, gdcmElValue.h, gdcmFile.h,
112 * src/gdcm*.cxx only include their corresponding include file
113 (as opposed to gdcm.h)
114 * gdcmPython/gdcm.i changed accordingly
115 * Test/Makefile.am corrected and added NEWS, AUTHORS in order for
116 the autogen.sh generated "make snapshot" command to work.
117 * autogen.sh removed history related references to crea package.
119 2003-03-04 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
120 * distutilsSwigCPlusPlus.py work around some swig portability
123 2003-03-03 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
124 * Eventually, python/gdcmPython was renamed to gdcmPython. This
125 was done in a last ditch attempt to get setup.py _really_
126 operationnal. The python/gdcmPython layaout add the advantage
127 of hidding away the python related distutils specific files
128 (MANIFEST.in, setup.py, distutils*.py...) from the main directory.
129 Alas, the src directory was out of scope (i.e. it's relative
130 position to setup.py was ../src) which made things impossible to
131 handle (see previous version of python/setup.py). Crossing fingers...
133 2003-02-20 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
134 * python/setup.py now works on Un*x. (harder than I thougth)
135 * python/distutilsSwigCPlusPlus.py can now have include files
136 among the list of sources.
138 2003-02-20 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
139 * src/gdcmHeader.cxx : bug fix - opening dicom file in binary !!!
140 * modifications in MSVC projects
142 2003-02-19 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
143 * As stated by the first lines of Test/ExceptionAndPython/README, it
144 looks like we can move back to original usage of exception within
145 src/gdcm* and hence remove the errno stuff that was introduced
146 as a quick and dirty fixture of this problem (added to the TODO).
147 * Doc/Doxyfile configuration file for Doxygen and corresponding
148 README file for usage added.
149 * Test/testWrite.cxx added. This new test comes from a split of
150 test.cxx that is now reverted to its original purpous i.e.
151 testing the proper parsing of a Dicom related file.
152 testWrite.cxx concentrates on testing the IO part of gdcm.
153 * Test/bug1.cxx (containing a bug on WIn32) added.
154 * src/gdcm.h, gdcmHeader.cxx, gdcmDictSet.cxx:
155 - gdcmHeader::GetPubTagNames and gdcmHeader::GetPubTagNamesByCategory
156 whose purpose is to publish the content of the TagNames of the
157 Dicom public dictionnary were not accessible without an
158 instance of class gdcmHeader.
159 - those methods are now static methods of gdcmDictSet and hence
160 require no instances at all to be invocated.
161 - within gdcmDictSet this change required to change some method
162 to class methods (i.e. are now static) among which SetDictPath
163 (renamed to BuildDictPath) and LoadDefaultPubDict.
164 * python/gdcmPython/demo/printGroupedPublicDict.py changed to illustrate
165 the above changes by calling the new method classes of gdcmDictSet.
166 * python/gdcmPython/__init__.py now exposes gdcm.gdcmDictSet for
167 the above to be effective.
168 * python/gdcmPython: in order to wrap properly the above changes
169 for Python, swig version now needs to be > 1.3.17.
170 * python/gdcmPython/Makefile fixed to adapt itself to new
171 configure/make shema introduced by Johan Montagnat (thanks for the
172 contribution). Alas this Makefile cannot be turned into a proper
173 Makefile.am without some heavy changes in the configure.in
174 (for python dectection).
175 * python/gdcmPython/gdcm.i: the out typemap map<string, list<string>>*
176 now avoids publishing the empty entries.
178 2003-02-13 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
179 * python/setup.py : bug fix concerning install under windows
181 * gdcm.dsw : bug fix concerning path for libraries for python !!!
183 2003-02-13 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
184 * Dicts/dicomV3.dic : remove double spaces !!!
185 * src/gdcmElValSet.cxx : bug fix concerning windows compiler
186 * python/gdcmPython/win32/gdcmpycomplet.dsp : bug fix concerning paths
189 2003-01-28 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
190 * src/gdcmHeader.cxx added a post header parsing AddAndDefaultElements
191 method. Doxygenation.
192 * src/gdcm.h clean up of JPR spurious comments.
194 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
195 * python/distutilsSwigCPlusPlus.py now properly collects the
196 shadow classes generated by "swig -c++" (gdcm.py in our case)
197 when using "python setup.py install".
198 * python/gdcmPython/__init__.py imports gdcm.py and only manually
199 reexports the working classes.
200 * src/gdcmHeader.cxx all the try/catch/throw calls were replaced
201 by the classical C errno scheme. This is to prevent an obscure
202 behavior of the python wrappers when importing wxPython.wx prior
203 to gdcmPython (which ended up in an abort call). An illustration
204 of this oddity can be found in the Test/ExceptionAndPython
205 subdir (see the README file). This problem probably due to
206 an combination of g++ and dynamic loading.
207 * added Test/ExceptionAndPython (see above)
209 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
210 * Changed the layout of the python part to avoid bloating main
211 directory with setup.py, distutilsSwigCPlusPlus.py, MANIFEST.in
212 i.e. the distutils arsenal. All the python related stuff is
213 again in a python subdir, but the package itself is now in
215 * setup.py was cleaned up:
216 - pythonIncludePath removed
217 - python setup.py bdist target is now functional.
218 * gdcmPython/__init__.py doesn't export FileName any more (to avoid
219 collision with other packages). gdcmPython/demo/*.py changed
221 2003-01-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
222 * python subdir moved to gdcmPython (preparation of distutils packaging).
223 * gdcmPython/setup.py and distutilsSwigCPlusPlus.py added. The
224 distutils installer is operational.
225 * - gdcmPython/__init__.py now properly loads the swig generated
226 shadow classes (from gdcm.py).
227 - gdcmPython/demo/*.py changed to import the package gdcmPython
228 instead of gdcmPython/demo/load.py.
229 - gdcmPython/testSuite.py changed to import the package gdcmPython.
232 2002-12-16 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
233 * src/gdcm.h, src/gdcmHeader.cxx: added GetPubTagNames() resp.
234 GetPubTagNamesByCategory() to gdcmHeader that return a list of the
235 entries within the associated public Dicom dictionary resp. the same
236 information but sorted by the fourth field (PAT, IMG, DIR) of the
238 - Dicts/dicomV3.dic Entries which had and unspecified fourth field
239 are now in the "???" group.
240 - python/gdcm.i changed accordingly,
241 - python/demo/printGroupedPublicDict.py added, that gives an example
242 of the above new functionalities in Python.
244 2002-12-11 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
245 * src/gdcm.h, gdcmHeader.cxx:
246 - historic references to glib's g_malloc and g_free (#defined)
247 were definitively removed.
248 - gdcm.h: cosmetic changes (part of comments moved to Doc/requirements)
249 * src/gdcmElValSet.cxx:
250 - GetElement(guint32, guint32) renamed to GetElementByNumber.
251 - GetElValue(guint32, guint32) renamed to GetElValueByNumber.
252 - GetElValue(string) renamed to GetElValueByName.
253 - Added GetElementByName(string).
254 * src/gdcmHeader.cxx: added
255 - GetPubElValRepByNumber(guint16, guint16)
256 - GetPubElValRepByName(string)
257 - GetShaElValRepByNumber(guint16, guint16)
258 - GetShaElValRepByName(string)
259 - GetShaElValByNumber(guint16, guint16)
260 - GetShaElValRepByName(string)
261 - GetElValRepByNumber(guint16, guint16)
262 - GetElValRepByName(string)
263 - GetElValByNumber(guint16, guint16)
264 - GetElValRepByName(string)
265 * Doc/requirements.txt added.
267 2002-12-9 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
268 * Test/Makefile building now depends on the one of libgdcm.so
269 * src/gdcmHeader.cxx and gdcm.h are now OB (undefined length encoded
270 pixel data) aware which enables finding the address (offset) of
271 the pixel data of JPEG encoded DICOM files. This leaves only a single
272 file in the testSuite whose pixel data address (offset) is unknown.
273 * python/testSuite.py changed accordingly.
275 2002-12-6 Christophe Odet + Hugues Benoit-Cattin + Eric.Boix
276 * VC++ has some strong limitations when working with the STL, as stated
277 in http://support.microsoft.com/support/kb/articles/Q168/9/58.ASP :
278 "Also note that some STL containers (map, set, queue, list, deque)
279 cannot be exported. [...]
280 Some STL classes contain nested classes. These classes can not
282 This is caused by a designed limitation that once a template
283 class is instantiated, it can not be re-instantiated and
285 Since our usage of map<> is ubiquitous in gdcm, this "designed
286 limitation" of VC++ is a pitfall.
287 Hence the Python wrappers of gdcm cannot be incrementally linked
288 against the c++ dynamic library. The dirty but only workaround is
289 to forget about incremental link of dynamic libraries and to generate
290 the Python wrappers library with the inclusions of the underlying C++
292 The following modifications concern this matter on Win32/VC++:
293 - wrapping python correct with standalone wrapped dll (don't use separate
294 dll under windows !!!!)
295 - python21_d debug mode enabled (ask Frog how to use it :-)
296 - NO problem with having an STL member of class for example string in C++
297 WITH THE RESTRICTION OF FORGETING ABOUT INCREMENTAL LINK.
298 - Python test of dcmlib in Python is ok under windows on a large set
300 * removed glib references
301 * typedef's inserted in gdcm.i for correct swig type management
303 2002-11-27 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
304 * python/demo/*.py load.py extracted from test.py. Added explore.py
305 that only displays required tags and testAll.py that parses all
306 the files of the testsuite without using unittest.
307 * python/testSuite.py other additional test on new files added.
308 * Data/* new test files added accordingly to the testSuite.
309 * src/gdcmHeader.cxx avoid overwriting of the dictionary when
310 the vr in the file differs from the one of the dictionary.
312 2002-11-20 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
313 * src/gdcm.h and gdcmHeader.cxx gdcm no longer loads all the elements
314 values, but limits itself to values which are below a user specified
315 size (by default 1024 bytes).
316 * python/gdcm.i : elements not loaded (because their size is above the
317 user specified treshold) are exported with their TagKey as key of the
318 python dictionary. This enables the testsuite to make some checks
319 on the unloaded elements (since we have their offset and size).
320 * python/testSuite.py
321 - now tests for the existence and proper value of the pixel data
322 - two new examples added.
323 * Data/gdcm-MR-SIEMENS-16.acr[12] added.
325 2002-11-18 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
326 * src/gdcm.h and gdcmHeader.cxx are now "Big Endian transfer syntax"
327 aware. See the strategy comments in gdcmHeader::FindeLength().
328 * Test/test.cxx now accepts a filename as first argument.
329 * Data/US-PAL-8-10x-echo.dcm and US-RGB-8-epicard.dcm added.
330 * python/testSuite.py changed to integrate test on above files.
332 2002-11-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
333 * Dicts/dicomV3.dic removed all the trailing (RET) when the
335 * python/testSuite.py more tests added.
337 2002-11-14 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
338 * python/testSuite.py unittest test suite added (uses Data)
339 * Data/* dcm and acr files for the test suite.
340 * glib dependance removed from un*x version. We now use ISO C99
341 7.18 Integer types (see stdint.h)
342 - python/Makefile, src/Makefile src/gdcm.h
343 * src/ when an explicit vr (like dicom files) suddenly poped an
344 implicit element we use to mark the underlying DictEntry of the
345 concerned ElValue with "Implicit". This strategy was damageable
346 too the public or provite dictionaries, since some of their vr
347 would be changed. Since Header::FindLength heavily relies on the
348 detection by Header::FindVR of falsely explicit elements, I
349 added an extra ImplicitVr member to ElValue (boolean).
350 The rest of the changes we the necessary adaptations.
352 2002-11-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
353 * src/gdcmHeader::FindLength bug fix when trapping falsely explicit
355 * src/gdcmHeader::FindVR: hard way fix of falsely explicit vr files.
357 2002-11-8 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
358 * Adaptation for porting to VC++:
360 o forced to use std namespace (for string to be known)
361 o all class use __declspec export style on WIN32
362 - src/gdcmUtil.cxx new Exit method that wraps the exit call
363 (in stdlib.h on Win32 but in std:: for gcc)
364 * src/gdcmDictSet::SetDictPath adds a trailing / to environement
365 variable GDCM_DICT_PATH.
366 * src/gdcmHeader.cxx verbose comments made discrete.
368 2002-11-7 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
369 * python/gdcm.i: added a typemap that converts a C++ hashing table
370 to native Python dictionary.
371 * python/demo/test.py:
372 - now uses the native dictionary for exploration of gdcmHeader.
373 - takes an optional filename argument (the file to parse).
374 * src/gdcm.h and gdcmHeader.cxx: gdcmHeader now has an accessor on
375 PubElVals hashing table.
376 * Dicts/dicomV3.dic removed error prone trailing spaces.
378 2002-11-6 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
379 * Python wrapping process moved away from src/Makefile to
380 newly created python/Makefile (as well as gdcm.i)
381 * python/demo/test.py (that mirrors Test/test.cxx) is effective.
382 * src/gdcmHeader::FindLength only looks for current vr when necessary.
383 * src/gdcmDictSet.cxx: the dictionnaries directory path is now imported
384 from the environement variable GDCM_DICT_PATH (when existing).
385 * src/gdcmDict::GetTag bug fix.
387 2002-10-31 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
388 * Straightforward temporary fixes for swig to build the python wrappers.
389 src/Makefile now has a python working entry [by working we mean
390 that we can import de shadow classes without errors].
392 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
393 * hashtest.cxx removed (since allready in Test)
394 * src/gdcmlib.h renamed to src/gdcm.h
395 * src/dcm.i renamed to src/gdcm.i
396 * src/Makefile prepared for python wrapping
398 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
399 * src/gdcmHeader.cxx :
400 - Parsing of header is now separated from loading of element values
401 (see gdcmHeader::LoadElements).
402 - general clean up of hopefully all file access (creation of
403 ReadInt16 and ReadInt32)
405 2002-10-22 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
406 * src/gdcmHeader.cxx :
407 - RecupLgr renamed to FindLength and cut off with new IsAnInteger
409 - SetLgrElem renamed to SetLength
410 - GetLgrElem renamed to GetLength
411 - ~gdcmHeader() made virtual to pesky warning messages at compile.
412 * src/gdcmElValSet.cxx fixed both GetElValue methods
413 * Dicts/dicomV3.dic falacious entry [7fe0 0010 OT PXL Pixel Data]
414 due to IdoDude was cleaned out.
416 2002-10-21 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
417 * src/gdcmHeader.cxx RecupLgr split in FindVR and RecupLgr. FindVR
418 concentrates on finding the value representation (when it exists).
419 RecupLgr now only finds the element value length, and it avoids
420 returning the unecessary skL (skipped length).
421 Also, offsetCourant was simply removed (with taille_fich) since
422 it was redundant with the File position internals (by using
423 ftell and fseek). This also made skL (see above in RecupLgr) usage
425 * src/gdcmHeaderIdo.cxx src/gdcmIdo.h added. Those files concentrate
426 on the libido specificities which are handled through class
428 * Test/implicit_vr.dcm dicom v3 in implicit value representation
431 2002-10-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
432 * Truckload of changes. Parsing of header is barely functional
433 (see Test/test) with the standard dictionary (see Dicts/dicomV3.dic).
435 2002-10-10 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
436 * src/gdcmHeader.cxx many addons of low level methods
438 2002-10-07 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
439 * src/gdcmHeader now contains_IdDcmCheckSwap, _IdDcmRecupLgr,
442 2002-09-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
443 * This corresponds to all the changes decided at the meeting of
444 May 23 2002. Needless to say we are running late...