1 2003-03-05 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
2 * src/gdcm.h splitted in gdcmCommon.h, gdcmDict.h, gdcmDictEntry.h,
3 gdcmDictSet.h, gdcmElValSet.h, gdcmElValue.h, gdcmFile.h,
5 * src/gdcm*.cxx only include their corresponding include file
7 * gdcmPython/gdcm.i changed accordingly
8 * Test/Makefile.am corrected and added NEWS, AUTHORS in order for
9 the autogen.sh generated "make snapshot" command to work.
10 * autogen.sh removed history related references to crea package.
12 2003-03-04 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
13 * distutilsSwigCPlusPlus.py work around some swig portability
16 2003-03-03 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
17 * Eventually, python/gdcmPython was renamed to gdcmPython. This
18 was done in a last ditch attempt to get setup.py _really_
19 operationnal. The python/gdcmPython layaout add the advantage
20 of hidding away the python related distutils specific files
21 (MANIFEST.in, setup.py, distutils*.py...) from the main directory.
22 Alas, the src directory was out of scope (i.e. it's relative
23 position to setup.py was ../src) which made things impossible to
24 handle (see previous version of python/setup.py). Crossing fingers...
26 2003-02-20 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
27 * python/setup.py now works on Un*x. (harder than I thougth)
28 * python/distutilsSwigCPlusPlus.py can now have include files
29 among the list of sources.
31 2003-02-20 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
32 * src/gdcmHeader.cxx : bug fix - opening dicom file in binary !!!
33 * modifications in MSVC projects
35 2003-02-19 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
36 * As stated by the first lines of Test/ExceptionAndPython/README, it
37 looks like we can move back to original usage of exception within
38 src/gdcm* and hence remove the errno stuff that was introduced
39 as a quick and dirty fixture of this problem (added to the TODO).
40 * Doc/Doxyfile configuration file for Doxygen and corresponding
41 README file for usage added.
42 * Test/testWrite.cxx added. This new test comes from a split of
43 test.cxx that is now reverted to its original purpous i.e.
44 testing the proper parsing of a Dicom related file.
45 testWrite.cxx concentrates on testing the IO part of gdcm.
46 * Test/bug1.cxx (containing a bug on WIn32) added.
47 * src/gdcm.h, gdcmHeader.cxx, gdcmDictSet.cxx:
48 - gdcmHeader::GetPubTagNames and gdcmHeader::GetPubTagNamesByCategory
49 whose purpose is to publish the content of the TagNames of the
50 Dicom public dictionnary were not accessible without an
51 instance of class gdcmHeader.
52 - those methods are now static methods of gdcmDictSet and hence
53 require no instances at all to be invocated.
54 - within gdcmDictSet this change required to change some method
55 to class methods (i.e. are now static) among which SetDictPath
56 (renamed to BuildDictPath) and LoadDefaultPubDict.
57 * python/gdcmPython/demo/printGroupedPublicDict.py changed to illustrate
58 the above changes by calling the new method classes of gdcmDictSet.
59 * python/gdcmPython/__init__.py now exposes gdcm.gdcmDictSet for
60 the above to be effective.
61 * python/gdcmPython: in order to wrap properly the above changes
62 for Python, swig version now needs to be > 1.3.17.
63 * python/gdcmPython/Makefile fixed to adapt itself to new
64 configure/make shema introduced by Johan Montagnat (thanks for the
65 contribution). Alas this Makefile cannot be turned into a proper
66 Makefile.am without some heavy changes in the configure.in
67 (for python dectection).
68 * python/gdcmPython/gdcm.i: the out typemap map<string, list<string>>*
69 now avoids publishing the empty entries.
71 2003-02-13 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
72 * python/setup.py : bug fix concerning install under windows
74 * gdcm.dsw : bug fix concerning path for libraries for python !!!
76 2003-02-13 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
77 * Dicts/dicomV3.dic : remove double spaces !!!
78 * src/gdcmElValSet.cxx : bug fix concerning windows compiler
79 * python/gdcmPython/win32/gdcmpycomplet.dsp : bug fix concerning paths
82 2003-01-28 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
83 * src/gdcmHeader.cxx added a post header parsing AddAndDefaultElements
85 * src/gdcm.h clean up of JPR spurious comments.
87 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
88 * python/distutilsSwigCPlusPlus.py now properly collects the
89 shadow classes generated by "swig -c++" (gdcm.py in our case)
90 when using "python setup.py install".
91 * python/gdcmPython/__init__.py imports gdcm.py and only manually
92 reexports the working classes.
93 * src/gdcmHeader.cxx all the try/catch/throw calls were replaced
94 by the classical C errno scheme. This is to prevent an obscure
95 behavior of the python wrappers when importing wxPython.wx prior
96 to gdcmPython (which ended up in an abort call). An illustration
97 of this oddity can be found in the Test/ExceptionAndPython
98 subdir (see the README file). This problem probably due to
99 an combination of g++ and dynamic loading.
100 * added Test/ExceptionAndPython (see above)
102 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
103 * Changed the layout of the python part to avoid bloating main
104 directory with setup.py, distutilsSwigCPlusPlus.py, MANIFEST.in
105 i.e. the distutils arsenal. All the python related stuff is
106 again in a python subdir, but the package itself is now in
108 * setup.py was cleaned up:
109 - pythonIncludePath removed
110 - python setup.py bdist target is now functional.
111 * gdcmPython/__init__.py doesn't export FileName any more (to avoid
112 collision with other packages). gdcmPython/demo/*.py changed
114 2003-01-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
115 * python subdir moved to gdcmPython (preparation of distutils packaging).
116 * gdcmPython/setup.py and distutilsSwigCPlusPlus.py added. The
117 distutils installer is operational.
118 * - gdcmPython/__init__.py now properly loads the swig generated
119 shadow classes (from gdcm.py).
120 - gdcmPython/demo/*.py changed to import the package gdcmPython
121 instead of gdcmPython/demo/load.py.
122 - gdcmPython/testSuite.py changed to import the package gdcmPython.
125 2002-12-16 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
126 * src/gdcm.h, src/gdcmHeader.cxx: added GetPubTagNames() resp.
127 GetPubTagNamesByCategory() to gdcmHeader that return a list of the
128 entries within the associated public Dicom dictionary resp. the same
129 information but sorted by the fourth field (PAT, IMG, DIR) of the
131 - Dicts/dicomV3.dic Entries which had and unspecified fourth field
132 are now in the "???" group.
133 - python/gdcm.i changed accordingly,
134 - python/demo/printGroupedPublicDict.py added, that gives an example
135 of the above new functionalities in Python.
137 2002-12-11 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
138 * src/gdcm.h, gdcmHeader.cxx:
139 - historic references to glib's g_malloc and g_free (#defined)
140 were definitively removed.
141 - gdcm.h: cosmetic changes (part of comments moved to Doc/requirements)
142 * src/gdcmElValSet.cxx:
143 - GetElement(guint32, guint32) renamed to GetElementByNumber.
144 - GetElValue(guint32, guint32) renamed to GetElValueByNumber.
145 - GetElValue(string) renamed to GetElValueByName.
146 - Added GetElementByName(string).
147 * src/gdcmHeader.cxx: added
148 - GetPubElValRepByNumber(guint16, guint16)
149 - GetPubElValRepByName(string)
150 - GetShaElValRepByNumber(guint16, guint16)
151 - GetShaElValRepByName(string)
152 - GetShaElValByNumber(guint16, guint16)
153 - GetShaElValRepByName(string)
154 - GetElValRepByNumber(guint16, guint16)
155 - GetElValRepByName(string)
156 - GetElValByNumber(guint16, guint16)
157 - GetElValRepByName(string)
158 * Doc/requirements.txt added.
160 2002-12-9 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
161 * Test/Makefile building now depends on the one of libgdcm.so
162 * src/gdcmHeader.cxx and gdcm.h are now OB (undefined length encoded
163 pixel data) aware which enables finding the address (offset) of
164 the pixel data of JPEG encoded DICOM files. This leaves only a single
165 file in the testSuite whose pixel data address (offset) is unknown.
166 * python/testSuite.py changed accordingly.
168 2002-12-6 Christophe Odet + Hugues Benoit-Cattin + Eric.Boix
169 * VC++ has some strong limitations when working with the STL, as stated
170 in http://support.microsoft.com/support/kb/articles/Q168/9/58.ASP :
171 "Also note that some STL containers (map, set, queue, list, deque)
172 cannot be exported. [...]
173 Some STL classes contain nested classes. These classes can not
175 This is caused by a designed limitation that once a template
176 class is instantiated, it can not be re-instantiated and
178 Since our usage of map<> is ubiquitous in gdcm, this "designed
179 limitation" of VC++ is a pitfall.
180 Hence the Python wrappers of gdcm cannot be incrementally linked
181 against the c++ dynamic library. The dirty but only workaround is
182 to forget about incremental link of dynamic libraries and to generate
183 the Python wrappers library with the inclusions of the underlying C++
185 The following modifications concern this matter on Win32/VC++:
186 - wrapping python correct with standalone wrapped dll (don't use separate
187 dll under windows !!!!)
188 - python21_d debug mode enabled (ask Frog how to use it :-)
189 - NO problem with having an STL member of class for example string in C++
190 WITH THE RESTRICTION OF FORGETING ABOUT INCREMENTAL LINK.
191 - Python test of dcmlib in Python is ok under windows on a large set
193 * removed glib references
194 * typedef's inserted in gdcm.i for correct swig type management
196 2002-11-27 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
197 * python/demo/*.py load.py extracted from test.py. Added explore.py
198 that only displays required tags and testAll.py that parses all
199 the files of the testsuite without using unittest.
200 * python/testSuite.py other additional test on new files added.
201 * Data/* new test files added accordingly to the testSuite.
202 * src/gdcmHeader.cxx avoid overwriting of the dictionary when
203 the vr in the file differs from the one of the dictionary.
205 2002-11-20 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
206 * src/gdcm.h and gdcmHeader.cxx gdcm no longer loads all the elements
207 values, but limits itself to values which are below a user specified
208 size (by default 1024 bytes).
209 * python/gdcm.i : elements not loaded (because their size is above the
210 user specified treshold) are exported with their TagKey as key of the
211 python dictionary. This enables the testsuite to make some checks
212 on the unloaded elements (since we have their offset and size).
213 * python/testSuite.py
214 - now tests for the existence and proper value of the pixel data
215 - two new examples added.
216 * Data/gdcm-MR-SIEMENS-16.acr[12] added.
218 2002-11-18 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
219 * src/gdcm.h and gdcmHeader.cxx are now "Big Endian transfer syntax"
220 aware. See the strategy comments in gdcmHeader::FindeLength().
221 * Test/test.cxx now accepts a filename as first argument.
222 * Data/US-PAL-8-10x-echo.dcm and US-RGB-8-epicard.dcm added.
223 * python/testSuite.py changed to integrate test on above files.
225 2002-11-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
226 * Dicts/dicomV3.dic removed all the trailing (RET) when the
228 * python/testSuite.py more tests added.
230 2002-11-14 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
231 * python/testSuite.py unittest test suite added (uses Data)
232 * Data/* dcm and acr files for the test suite.
233 * glib dependance removed from un*x version. We now use ISO C99
234 7.18 Integer types (see stdint.h)
235 - python/Makefile, src/Makefile src/gdcm.h
236 * src/ when an explicit vr (like dicom files) suddenly poped an
237 implicit element we use to mark the underlying DictEntry of the
238 concerned ElValue with "Implicit". This strategy was damageable
239 too the public or provite dictionaries, since some of their vr
240 would be changed. Since Header::FindLength heavily relies on the
241 detection by Header::FindVR of falsely explicit elements, I
242 added an extra ImplicitVr member to ElValue (boolean).
243 The rest of the changes we the necessary adaptations.
245 2002-11-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
246 * src/gdcmHeader::FindLength bug fix when trapping falsely explicit
248 * src/gdcmHeader::FindVR: hard way fix of falsely explicit vr files.
250 2002-11-8 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
251 * Adaptation for porting to VC++:
253 o forced to use std namespace (for string to be known)
254 o all class use __declspec export style on WIN32
255 - src/gdcmUtil.cxx new Exit method that wraps the exit call
256 (in stdlib.h on Win32 but in std:: for gcc)
257 * src/gdcmDictSet::SetDictPath adds a trailing / to environement
258 variable GDCM_DICT_PATH.
259 * src/gdcmHeader.cxx verbose comments made discrete.
261 2002-11-7 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
262 * python/gdcm.i: added a typemap that converts a C++ hashing table
263 to native Python dictionary.
264 * python/demo/test.py:
265 - now uses the native dictionary for exploration of gdcmHeader.
266 - takes an optional filename argument (the file to parse).
267 * src/gdcm.h and gdcmHeader.cxx: gdcmHeader now has an accessor on
268 PubElVals hashing table.
269 * Dicts/dicomV3.dic removed error prone trailing spaces.
271 2002-11-6 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
272 * Python wrapping process moved away from src/Makefile to
273 newly created python/Makefile (as well as gdcm.i)
274 * python/demo/test.py (that mirrors Test/test.cxx) is effective.
275 * src/gdcmHeader::FindLength only looks for current vr when necessary.
276 * src/gdcmDictSet.cxx: the dictionnaries directory path is now imported
277 from the environement variable GDCM_DICT_PATH (when existing).
278 * src/gdcmDict::GetTag bug fix.
280 2002-10-31 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
281 * Straightforward temporary fixes for swig to build the python wrappers.
282 src/Makefile now has a python working entry [by working we mean
283 that we can import de shadow classes without errors].
285 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
286 * hashtest.cxx removed (since allready in Test)
287 * src/gdcmlib.h renamed to src/gdcm.h
288 * src/dcm.i renamed to src/gdcm.i
289 * src/Makefile prepared for python wrapping
291 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
292 * src/gdcmHeader.cxx :
293 - Parsing of header is now separated from loading of element values
294 (see gdcmHeader::LoadElements).
295 - general clean up of hopefully all file access (creation of
296 ReadInt16 and ReadInt32)
298 2002-10-22 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
299 * src/gdcmHeader.cxx :
300 - RecupLgr renamed to FindLength and cut off with new IsAnInteger
302 - SetLgrElem renamed to SetLength
303 - GetLgrElem renamed to GetLength
304 - ~gdcmHeader() made virtual to pesky warning messages at compile.
305 * src/gdcmElValSet.cxx fixed both GetElValue methods
306 * Dicts/dicomV3.dic falacious entry [7fe0 0010 OT PXL Pixel Data]
307 due to IdoDude was cleaned out.
309 2002-10-21 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
310 * src/gdcmHeader.cxx RecupLgr split in FindVR and RecupLgr. FindVR
311 concentrates on finding the value representation (when it exists).
312 RecupLgr now only finds the element value length, and it avoids
313 returning the unecessary skL (skipped length).
314 Also, offsetCourant was simply removed (with taille_fich) since
315 it was redundant with the File position internals (by using
316 ftell and fseek). This also made skL (see above in RecupLgr) usage
318 * src/gdcmHeaderIdo.cxx src/gdcmIdo.h added. Those files concentrate
319 on the libido specificities which are handled through class
321 * Test/implicit_vr.dcm dicom v3 in implicit value representation
324 2002-10-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
325 * Truckload of changes. Parsing of header is barely functional
326 (see Test/test) with the standard dictionary (see Dicts/dicomV3.dic).
328 2002-10-10 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
329 * src/gdcmHeader.cxx many addons of low level methods
331 2002-10-07 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
332 * src/gdcmHeader now contains_IdDcmCheckSwap, _IdDcmRecupLgr,
335 2002-09-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
336 * This corresponds to all the changes decided at the meeting of
337 May 23 2002. Needless to say we are running late...