]> Creatis software - gdcm.git/blob - ChangeLog
239493043c040652fcd33a23d313548129b4bdae
[gdcm.git] / ChangeLog
1 2003-02-13 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
2       * python/setup.py : bug fix concerning install under windows
3         ExtraPath reused :-P
4       * gdcm.dsw : bug fix concerning path for libraries for python !!!
5
6 2003-02-13 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
7       * Dicts/dicomV3.dic : remove double spaces !!!
8       * src/gdcmElValSet.cxx : bug fix concerning windows compiler
9       * python/gdcmPython/win32/gdcmpycomplet.dsp : bug fix concerning paths
10         and links
11
12 2003-01-28 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
13       * src/gdcmHeader.cxx added a post header parsing AddAndDefaultElements
14         method. Doxygenation.
15       * src/gdcm.h clean up of JPR spurious comments.
16
17 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
18       * python/distutilsSwigCPlusPlus.py now properly collects the
19         shadow classes generated by "swig -c++" (gdcm.py in our case)
20         when using "python setup.py install".
21       * python/gdcmPython/__init__.py imports gdcm.py and only manually
22         reexports the working classes.
23       * src/gdcmHeader.cxx all the try/catch/throw calls were replaced
24         by the classical C errno scheme. This is to prevent an obscure
25         behavior of the python wrappers when importing wxPython.wx prior
26         to gdcmPython (which ended up in an abort call). An illustration
27         of this oddity can be found in the Test/ExceptionAndPython
28         subdir (see the README file). This problem probably due to
29         an combination of g++ and dynamic loading.
30       * added Test/ExceptionAndPython (see above)
31
32 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
33       * Changed the layout of the python part to avoid bloating main
34         directory with setup.py, distutilsSwigCPlusPlus.py, MANIFEST.in
35         i.e. the distutils arsenal. All the python related stuff is
36         again in a python subdir, but the package itself is now in
37         python/gdcmPython.
38       * setup.py was cleaned up:
39         - pythonIncludePath removed
40         - python setup.py bdist target is now functional.
41       * gdcmPython/__init__.py doesn't export FileName any more (to avoid
42         collision with other packages). gdcmPython/demo/*.py changed
43         accordingly.
44 2003-01-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
45       * python subdir moved to gdcmPython (preparation of distutils packaging).
46       * gdcmPython/setup.py and distutilsSwigCPlusPlus.py added. The
47         distutils installer is operational.
48       * - gdcmPython/__init__.py now properly loads the swig generated
49           shadow classes (from gdcm.py).
50         - gdcmPython/demo/*.py changed to import the package gdcmPython
51           instead of gdcmPython/demo/load.py.
52         - gdcmPython/testSuite.py changed to import the package gdcmPython.
53         
54
55 2002-12-16 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
56       * src/gdcm.h, src/gdcmHeader.cxx: added GetPubTagNames() resp.
57         GetPubTagNamesByCategory() to gdcmHeader that return a list of the
58         entries within the associated public Dicom dictionary resp. the same
59         information but sorted by the fourth field (PAT, IMG, DIR) of the
60         dictionary.
61         - Dicts/dicomV3.dic Entries which had and unspecified fourth field
62           are now in the "???" group.
63         - python/gdcm.i changed accordingly,
64         - python/demo/printGroupedPublicDict.py added, that gives an example
65           of the above new functionalities in Python.
66
67 2002-12-11 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
68       * src/gdcm.h, gdcmHeader.cxx:
69         - historic references to glib's g_malloc and g_free (#defined)
70           were definitively removed.
71         - gdcm.h: cosmetic changes (part of comments moved to Doc/requirements)
72       * src/gdcmElValSet.cxx:
73         - GetElement(guint32, guint32) renamed to GetElementByNumber.
74         - GetElValue(guint32, guint32) renamed to GetElValueByNumber.
75         - GetElValue(string) renamed to GetElValueByName.
76         - Added GetElementByName(string).
77       * src/gdcmHeader.cxx: added
78         - GetPubElValRepByNumber(guint16, guint16)
79         - GetPubElValRepByName(string)
80         - GetShaElValRepByNumber(guint16, guint16)
81         - GetShaElValRepByName(string)
82         - GetShaElValByNumber(guint16, guint16)
83         - GetShaElValRepByName(string)
84         - GetElValRepByNumber(guint16, guint16)
85         - GetElValRepByName(string)
86         - GetElValByNumber(guint16, guint16)
87         - GetElValRepByName(string)
88       * Doc/requirements.txt added.
89
90 2002-12-9 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
91       * Test/Makefile building now depends on the one of libgdcm.so
92       * src/gdcmHeader.cxx and gdcm.h are now OB (undefined length encoded
93         pixel data) aware which enables finding the address (offset) of 
94         the pixel data of JPEG encoded DICOM files. This leaves only a single
95         file in the testSuite whose pixel data address (offset) is unknown.
96       * python/testSuite.py changed accordingly.
97
98 2002-12-6 Christophe Odet + Hugues Benoit-Cattin + Eric.Boix
99       * VC++ has some strong limitations when working with the STL, as stated
100         in http://support.microsoft.com/support/kb/articles/Q168/9/58.ASP :
101              "Also note that some STL containers (map, set, queue, list, deque)
102               cannot be exported. [...]
103               Some STL classes contain nested classes. These classes can not
104               be exported. [...]
105               This is caused by a designed limitation that once a template
106               class is instantiated, it can not be re-instantiated and
107               exported."
108         Since our usage of map<> is ubiquitous in gdcm, this "designed
109         limitation" of VC++ is a pitfall.
110         Hence the Python wrappers of gdcm cannot be incrementally linked 
111         against the c++ dynamic library. The dirty but only workaround is
112         to forget about incremental link of dynamic libraries and to generate
113         the Python wrappers library with the inclusions of the underlying C++
114         library. 
115         The following modifications concern this matter on Win32/VC++:
116       - wrapping python correct with standalone wrapped dll (don't use separate
117          dll under windows !!!!)
118       - python21_d debug mode enabled (ask Frog how to use it :-)
119       - NO problem with having an STL member of class for example string in C++
120         WITH THE RESTRICTION OF FORGETING ABOUT INCREMENTAL LINK.
121       - Python test of dcmlib in Python is ok under windows on a large set 
122         (one) of image(s).
123       * removed glib references
124       * typedef's inserted in gdcm.i for correct swig type management
125
126 2002-11-27 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
127       * python/demo/*.py load.py extracted from test.py. Added explore.py
128         that only displays required tags and testAll.py that parses all
129         the files of the testsuite without using unittest.
130       * python/testSuite.py other additional test on new files added.
131       * Data/* new test files added accordingly to the testSuite.
132       * src/gdcmHeader.cxx avoid overwriting of the dictionary when
133         the vr in the file differs from the one of the dictionary.
134
135 2002-11-20 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
136       * src/gdcm.h and gdcmHeader.cxx gdcm no longer loads all the elements
137         values, but limits itself to values which are below a user specified
138         size (by default 1024 bytes).
139       * python/gdcm.i : elements not loaded (because their size is above the
140         user specified treshold) are exported with their TagKey as key of the
141         python dictionary. This enables the testsuite to make some checks
142         on the unloaded elements (since we have their offset and size).
143       * python/testSuite.py
144         - now tests for the existence and proper value of the pixel data
145         - two new examples added.
146       * Data/gdcm-MR-SIEMENS-16.acr[12] added.
147
148 2002-11-18 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
149       * src/gdcm.h and gdcmHeader.cxx are now "Big Endian transfer syntax"
150         aware. See the strategy comments in gdcmHeader::FindeLength().
151       * Test/test.cxx now accepts a filename as first argument.
152       * Data/US-PAL-8-10x-echo.dcm and US-RGB-8-epicard.dcm added.
153       * python/testSuite.py changed to integrate test on above files.
154
155 2002-11-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
156       * Dicts/dicomV3.dic removed all the trailing (RET) when the
157         the vr was also RET.
158       * python/testSuite.py more tests added.
159
160 2002-11-14 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
161       * python/testSuite.py unittest test suite added (uses Data)
162       * Data/* dcm and acr files for the test suite.
163       * glib dependance removed from un*x version. We now use ISO C99
164         7.18 Integer types (see stdint.h)
165         - python/Makefile, src/Makefile src/gdcm.h
166       * src/ when an explicit vr (like dicom files) suddenly poped an
167         implicit element we use to mark the underlying DictEntry of the
168         concerned ElValue with "Implicit". This strategy was damageable
169         too the public or provite dictionaries, since some of their vr
170         would be changed. Since Header::FindLength heavily relies on the
171         detection by Header::FindVR of falsely explicit elements, I
172         added an extra ImplicitVr member to ElValue (boolean).
173         The rest of the changes we the necessary adaptations.
174
175 2002-11-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
176       * src/gdcmHeader::FindLength bug fix when trapping falsely explicit
177         VR files.
178       * src/gdcmHeader::FindVR: hard way fix of falsely explicit vr files.
179
180 2002-11-8 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
181       * Adaptation for porting to VC++:
182         - src/gdcm.h
183           o forced to use std namespace (for string to be known)
184           o all class use __declspec export style on WIN32
185         - src/gdcmUtil.cxx new Exit method that wraps the exit call
186           (in stdlib.h on Win32 but in std:: for gcc)
187       * src/gdcmDictSet::SetDictPath adds a trailing / to environement
188         variable GDCM_DICT_PATH.
189       * src/gdcmHeader.cxx verbose comments made discrete.
190
191 2002-11-7 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
192       * python/gdcm.i: added a typemap that converts a C++ hashing table
193         to native Python dictionary.
194       * python/demo/test.py:
195         - now uses the native dictionary for exploration of gdcmHeader.
196         - takes an optional filename argument (the file to parse).
197       * src/gdcm.h and gdcmHeader.cxx: gdcmHeader now has an accessor on
198         PubElVals hashing table. 
199       * Dicts/dicomV3.dic removed error prone trailing spaces.
200
201 2002-11-6 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
202       * Python wrapping process moved away from src/Makefile to
203         newly created python/Makefile (as well as gdcm.i)
204       * python/demo/test.py (that mirrors Test/test.cxx) is effective.
205       * src/gdcmHeader::FindLength only looks for current vr when necessary.
206       * src/gdcmDictSet.cxx: the dictionnaries directory path is now imported
207         from the environement variable GDCM_DICT_PATH (when existing).
208       * src/gdcmDict::GetTag bug fix.
209
210 2002-10-31 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
211       * Straightforward temporary fixes for swig to build the python wrappers.
212         src/Makefile now has a python working entry [by working we mean
213         that we can import de shadow classes without errors].
214
215 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
216       * hashtest.cxx removed (since allready in Test)
217       * src/gdcmlib.h renamed to src/gdcm.h
218       * src/dcm.i renamed to src/gdcm.i
219       * src/Makefile prepared for python wrapping
220
221 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
222       * src/gdcmHeader.cxx :
223         - Parsing of header is now separated from loading of element values
224           (see gdcmHeader::LoadElements).
225         - general clean up of hopefully all file access (creation of
226           ReadInt16 and ReadInt32)
227
228 2002-10-22 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
229       * src/gdcmHeader.cxx :
230         - RecupLgr renamed to FindLength and cut off with new IsAnInteger
231           method.
232         - SetLgrElem renamed to SetLength
233         - GetLgrElem renamed to GetLength
234         - ~gdcmHeader() made virtual to pesky warning messages at compile.
235       * src/gdcmElValSet.cxx fixed both GetElValue methods
236       * Dicts/dicomV3.dic falacious entry [7fe0 0010 OT PXL Pixel Data]
237         due to IdoDude was cleaned out.
238
239 2002-10-21 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
240       * src/gdcmHeader.cxx RecupLgr split in FindVR and RecupLgr. FindVR
241         concentrates on finding the value representation (when it exists).
242         RecupLgr now only finds the element value length, and it avoids
243         returning the unecessary skL (skipped length).
244         Also, offsetCourant was simply removed (with taille_fich) since
245         it was redundant with the File position internals (by using
246         ftell and fseek). This also made skL (see above in RecupLgr) usage
247         jajun.
248       * src/gdcmHeaderIdo.cxx src/gdcmIdo.h added. Those files concentrate
249         on the libido specificities which are handled through class 
250         inheritance.
251       * Test/implicit_vr.dcm dicom v3 in implicit value representation
252         added. 
253
254 2002-10-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
255       * Truckload of changes. Parsing of header is barely functional
256         (see Test/test) with the standard dictionary (see Dicts/dicomV3.dic).
257
258 2002-10-10 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
259       * src/gdcmHeader.cxx many addons of low level methods
260
261 2002-10-07 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
262       * src/gdcmHeader now contains_IdDcmCheckSwap, _IdDcmRecupLgr,
263         and _IdDcmSWAP_LONG.
264
265 2002-09-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
266       * This corresponds to all the changes decided at the meeting of
267         May 23 2002. Needless to say we are running late...
268