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