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