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