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