1 2003-09-05 Mathieu Malaterre <Mathieu.Malaterre@creatis.insa-lyon.fr>
2 * src/*.cxx : added pragma disable 4786/4251 to get rid of ~4300 warning
3 when building in debug mode
4 * vtk/win32/vtkgdcm.dsp : change /MT -> /MD and /MTd -> /MDd to match
6 * vtk/win32/vtkgdcm.dsp : added /nodefaultlib "mscvrt" for debug mode
7 2003-08-29 Mathieu Malaterre <Mathieu.Malaterre@creatis.insa-lyon.fr>
8 * Corrected a leak in vtkGdcmREader.cxx, the pSource was find thanks to valgrind.
9 2003-07-29 Mathieu Malaterre <Mathieu.Malaterre@creatis.insa-lyon.fr>
10 * src/win32/libgdcmjpeg12.dsp was not dos format
11 * src/win32/libgdcmjpeg12.dsp : libgdcmijpeg12_EXPORTS -> LIBGDCMIJPEG12_EXPORTS
12 * src/win32/gdcmdll.dsp: + /I "..\jpeg\libijg12"
13 2003-07-29 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
14 * src/gdcmHeader.h : add std:: prefix for stl elements... like others in
16 * src/gdcmFile.cxx : bug fix in affectation type
17 * src/jpeg/libijpeg12/jmorecfg12.h : export for windows modified... like
18 in src/jpeg/libijpeg8/jmorecfg8.h (JPR : copy/paste exists !!!)
19 * Modifs of MVSC projects to compile them. Not concerning 2 identic
20 symbols... futur problem ?
21 2003-07-29 Mathieu Malaterre <Mathieu.Malaterre@creatis.insa-lyon.fr>
22 * src/win32/libgdcmijpeg12.dsp was missing
23 * modified gdcm.dsw accordingly
24 2003-07-28 Mathieu Malaterre <Mathieu.Malaterre@creatis.insa-lyon.fr>
25 * src/gdcmHeader.cxx : misplaced return 0.; for ACR/NEMA
26 2003-07-24 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
27 * src/jpeg/libijg12/.cvsignore, jconfig.* : ommited files while last
28 commit of JPR (before his hollidays to facilitate our work).
29 * setup.py : bug fix in code. Modifications made while the last commit
30 of JPR. The code hasn't been tested before the commit... it's so
31 useless to make that (for best programmer that is JPR) !!!
32 2003-07-08 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
33 * tagged the current version as Version0_3 (i.e. version 0.3)
34 2003-07-08 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
35 * vtk/testvtkGdcmReader.cxx : remove a symbol that is unused
36 * src/jpeg/libijg8/jmorecfg.h : adding export symbol for windows
37 * *.dsp : modifications to use new libgdcmijpeg8 library
38 * setup.py : bug fix on VTKPATH variable
39 * PACKAGER : adding all concerning windows
40 2003-07-07 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
41 * src/gdcmElValSet.cxx, gdcmFile.cxx: JPR bug fix, removal of
43 * TODO, vtk/vtkGdcmReader.cxx: upcoming fixes comments.
44 * gdcmPython/testSuite.py: JPR bug fix, brutal erasement of
45 test suite reported error.
46 * PACKAGER file added (describes what a packager must do when
47 packaging a new release).
48 * MANIFEST.in, now declares jconfig.linux and jconfig.vc
49 * configure.in: upgraded version number to 0.3.0
50 * fixing build of rpm (through rpm -ta):
51 - Doc/Makefile.am exports proper doxygen files
52 - src/jpeg/libijg8/Makefile.am exports the include files.
53 2003-07-07 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
54 * vtk/vtkGdcmReader.cxx : bug fix when loading only 1 file.
55 * src/gdcmHeader.h : formatting code
56 2003-07-07 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
57 * vtk/vtkGdcmReader.[cxx|h] : bug fix when loading only one file.
58 We were obtaining error message from vtk. Now, creation of file list
59 is made in an internal list to prevent this problem.
60 Bug fix when output is empty.
61 Bug fix in update of progress value. Previous commit for this was a bad
63 * vtk/vtkGdcmReader.h : adding comments for InternalFileNaleList variable
64 2003-07-04 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
65 * src/gdcmHeader.h : added method to get the file name
66 * vtk/vtkGdcmReader.[cxx|h] : bug fix concerning loading of bad dicom
67 files. Added method to remove all files on the input
68 Added FIXME comment concerning the bad parsing of header made by
69 ExecuteInformation method (in ExecuteData method)
70 2003-07-03 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
71 * vtk/Makefile.am: vtkGdcmReader.h should now be cleany installed
72 when using make instal.
73 * src/gdcmFile.cxx : bug fix under Window after JPR commit
74 RQ : the JPR doesn't appear in the ChangeLog... normal for him
75 2003-07-03 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
76 * setup.py : adding include dir of jpeg lib to compile all sources
77 * */Win32/*.dsp : JPR fix for windows compilation
78 2003-07-02 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
79 * src/jpeg/libijg8/jconfig.* : JPR bug fix : now compile on both
81 * src/gdcmJpeg.cxx : JPR bug fix : erroneous include
82 * src/win32/gdcmdll.dsp : JPR fix for windows compilation
83 2003-07-02 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
84 * setup.py is again effective on un*x (takes into account the
85 addon of the jpeg library)
86 * Doc/DoxyDevelInstal.txt added (developper's raw documentation)
87 * Doc/Doxy* updated (includes above enhancements)
88 * INSTALL now points to web documentation
89 2003-07-01 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
90 * src/gdcmHeader.h doesn't make unnecessary reference to
92 * gdcmPython/Makefile.am now avoids calling the wrappers for the
95 - to allow compilation with gcc 3.x
96 -- clean up of STL usage (added explicit usage of std::)
97 -- small fixes on exceptions.
98 Note: linking not tested !
99 - clean of doxygen comments to avoid warnings at documentation
101 * vtk/vtkGdcmReader.cxx: g++ warning message clean up (platform
102 dependent convertion).
103 2003-06-20 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
104 * Clean up of previous JPR garbage commit (not even commented in the
106 - Test/Makefile.am removed the reference to unexisting testTS.cxx
107 - moved all jpeg related files from src to src/jpeg/libijg8, with
108 addition/modification of Makefile.am and configure.in.
109 - the testSuite is still brain damage (not guilty).
110 2003-06-02 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
111 * WrapVTK.py : modifications to get correctly vtk source files to
113 * vtk/vtkGdcmReader.cxx : modification for an already existing name
114 (FileName -> Filename)
115 2003-06-11 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
116 * vtk/vtkGdcmReader.[cxx/h]:
117 - UpdateProgress method should now be effective
118 - removed the limitation on having only images loaded (as opposed
120 - when building a stack of images/volume, a lesser number of
121 gdcmHeader and gdcmFile instances should be used (hopefully
122 accelerating things).
123 - when building a stack of images/volumes, files which are not
124 loadable (wrong path-filename, wrong permissions on existing file,
125 or file not parsable by gdcm) are replaced with a black image
126 in the stack (for the caller to notice the problem).
127 2003-06-03 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
128 * vtk/vtkGdcmReader.cxx: hopefully corrected Z extent.
129 2003-06-02 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
130 * vtk/vtkGdcmReader[cxx|h] : makes correct code to remove conflicts
131 between standard library (std) and vtk library (problems are found
132 under Windows... thanks Windows !)
133 2003-05-30 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
134 * vtk/vtkGdcmReader[cxx|h] should now be volume aware (read ready for
136 * gdcmPython/demo/vtkGdcmReader.py: commented lines for volume test
137 2003-05-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
138 * vtk/vtkGdcmReader[cxx|h] preparation addons for loading volumes.
139 2003-05-28 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
140 * When compiling with distutils (see setup.py) the C++ compiler is
141 called with different flags than the default ones (with automake).
142 In order to fix all those warning, I compiled gdcm with the command
143 make 'CXXFLAGS=-Wall -Wstrict-prototypes -D__STDC_LIMIT_MACROS'
144 and went for warning fixes:
145 - src/gdcmHeader.cxx, Test/dcm2acr.cxx, pourFindTaggs.cxx cleaned
146 up from unused variables.
147 - vtk/vtkGdcmReader.cxx: potential bug fix.
148 * src/gdcmHeader.h: Doxygen warning cleanup
149 2003-05-27 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
151 - typemaps correction to take into account the systematic replacement
152 of "using namespace std" with std:: prefix e.g. std::list,
153 std::string... (cf changes of 2003-05-21).
154 - gdcmGlob global variable of type gdcmGlobal (defined in
155 src/gdcmUtil.cxx and declared in gdcmPython/gdcm.i) is now
156 exported to Python a as cvar.
157 * gdcmPython/__init__.py now defines two functions GetPubDictTagNames()
158 and GetPubDictTagNamesByCategory() as a replacement for deprecated
159 gdcmDictSet.GetPubDictTagNames() and
160 gdcmDictSet.GetPubDictTagNamesByCategory() class functions (i.e.
162 * gdcmPython/demo/printGroupedPublicDict.py is operational again,
163 with the above changes.
164 2003-05-22 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
165 * setup.py, manifest.in : bug fix under linux
166 2003-05-22 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
167 * Modification of setup.py to compile vtk part too. Then, we have 2
168 wrappers which must work with same distutils. For that, we have a
169 generic distutils in distusiltsWrapping.py ; with :
170 - build_extWrap class to wrap generically all extensions,
171 - ExtensionWrap base class for all wrapping extension that contains
173 - Wrapper interface which wrap sources
174 + In WrapSwig.py we have extension and wrapper for Swig
175 + In WrapVTK.py we have extension and wrapper for VTK
176 * MANIFEST.in : modifications to consider vtk directory and new python
177 files for compilation
178 2003-05-21 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with Benoit Regrain
179 * Added python wrappers of vtkGdcmReader vtk class (see the
180 source in vtk/vtkGdcmReader.cxx) :
181 - vtk/Makefile.am now builds a library
182 - gdcmPython/Makefile.am now builds vtkgdcmPython a second import
183 python library (as opposed to _gdcm.so wich are the python
184 wrappers of gdcm). vtkgdcmPython.so uses the vtk python wrappers
185 (vtkWrapPython and vtkWrapPythonInit utility) to build vtkgdcmPython
187 - configure.in has an additional flag --enable-vtk that needs
188 to be set to enable compilation of vtk related code, that is:
189 + vtk/vtkGdcmReader.so and
190 + vtk/testvtkGdcmReader C++ demo of vtk wrappers of gdcm)
191 + gdcmPython/vtkgdcmPython.so (see above)
192 - gdcmPython/demo/vtkGdcmDemo.py corrected (some images cannot
193 be read when compressed or when HighBit + 1 != BitsStored),
194 - gdcmPython/demo/vtkGdcmReader.py added. This demo illustrates
195 the usage of the python wrapper of vtkGdcmReader vtk class.
196 * vtk/vtkGdcmReader.cxx: bug fixed (thanks to Benoit Regrain).
197 * src/*.[h] all occurences of stl classes are now prefixed with
198 std::, and all occurences of "using namespace std;" where removed.
199 This is to avoid pollution of global namespace in included files.
200 Apparently vtk does not avoid this pitfall: when using both
201 gdcm and vtk (as in vtk/vtkGdcmReader.cxx) this ended up in a
202 collision of various stl members (principally cout...).
203 * gdcmPython/testSuite.py now cleanly removes temprory generated
205 * gdcmPython/gdcm.i now declares a typemap for std::string (to
206 comply with above changes)
207 2003-05-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
208 * src/gdcmHeader>[h/cxx] added gdcmHeader::GetPixelSize()
209 * vtk/vtkGdcmReader.cxx now properly inports the image in the
210 vtk data structure (an image Flip was required).
211 * vtk/testvtkGdcmReader.cxx refers to gdcmData subdir instead of Data.
212 * cosmetic changes in documentation.
213 2003-05-7 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
214 * src/gdcmHeader.cxx: the constructor no longer exits when an
215 unexisting file is given as argument.
216 * The subdirectory Data (containing all the images used for the
217 test suite) is not part of this repository anymore. A new module
218 containing those images is now available at
219 :pserver:xxx@cvs.creatis.insa-lyon.fr:2402/cvs/public
220 with the name gdcmData.
221 All the python scripts (including the package initialisation file
222 gdcmPython/__init__.py) were adapated to take this change into
223 account (basically GDCM_DATA_PATH is now GDCM_TEST_DATA_PATH).
224 2003-05-5 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
225 * vtk subdir added. Contains vtkGdcmReader.[cxx|h] a vtk class
226 inherinting from vtkImageReader and testvtkGdcmReader.cxx a small
227 demo of the usage of this class.
228 Compilation of this vtk part is only done when using the --enable-vtk
229 at configure (or autogen.sh) stage.
230 2003-04-16 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
231 * More memmory link related corrections and documentation fixes.
233 - maximum info is obtained with a command of the form:
234 valgrind --leak-check=yes --leak-resolution=high --num-callers=40
235 --show-reachable=yes PrintHeader
236 - the remaining reachable blocks seem to come from the STL
237 allocation scheme through the usage of map and list. It looks
238 like this memory cannot be freed but it is not a memory leak
239 (in fact further invocation to the STL would recollect the
240 unused memory allthough it cannot explicitely be freed).
241 * gdcmPython/demo/vtkGdcmDemo.py added: this is a small demo
242 of displaying an image parsed with gdcm and displayed with VTK.
243 Note: some images don't seem to work e.g.
244 python vtkGdcmDemo.py ../../Data/US-RGB-8-esopecho.dcm
245 * src/gdcmHeader.x: dicom_vr and Dicts are not class members anymore.
246 Allthough this weakens the semantics, it is a ditch attempt to
247 make gdcm more thread friendly.
248 2003-04-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
249 * Memory link hunt (by using valgrind through the command
250 valgrind --show-reachable=yes --leak-check=yes PrintHeader).
251 - added src/gdcmVR.cxx gdcmVR.h that objectify the previous
252 gdcmHeader::_dicom_vr.
253 - gdcmHeader::InitVRDict transfered as gdcmVR::gdcmVR().
254 - gdcmHeader::dicom_vr is now of type gdcmVR* as opposed to
256 - gdcmGlobal global object contained class added (see src/gdcmUtil.x)
257 2003-04-9 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
258 * src/Makefile.am now exports all the necessary include files at
261 * UpdateGroupLength replaced by new one
263 * UpdateGroupLength re-written using H-Table
264 (named UpdateGroupLengthNew untill checks are over)
266 2003-04-7 Eric Boix <Eric.Boix@creatis.insa-lyon.fr> with JPR
267 * Data/im_00001 renamed to gdcm-MR-PHILIPS-16-Multi-Seq.dcm
268 * gdcmPython/testSuite.py now include a test of gdcmFile::Write.
270 - gdcmHeader::GetPubElValSet removed.
271 - gdcmElValSet::WriteDcm, WriteAcr, WriteExplVR, revamped to
272 UpdateGroupLength, WriteElements, Write.
273 - gdcmHeader::FileType moved to gdcmCommon.h. The enum FileType
274 doesn't contain TrueDicom anymore since ExplicitVR and ImplicitVR
275 carried the same semantics.
276 - src/gdcmHeaderIdo.cxx changed accordingly.
277 - gdcmFile::WriteBase now regroups all the codes from previous
278 versions of WriteDcm, WriteDcmImplVR, and WriteACR.
279 - enum FileType moved to gdcmCommon.h
280 * src/gdcmHeader.cxx AddDefault trashed
282 * getimageDataSize now calls gdcmGetXSize
283 * Test/*.cxx changed to agree with above changes
284 2003-03-31 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
285 * src/gdcmHeader.h: LoadElements() is not a public method anymore
286 (to avoid double call by end user).
287 * Test/*.cxx LoadElements() doesn't need to be called explicitely
288 by end user, since gdcmHeader::gdcmHeader now handles it.
289 2003-03-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
290 * gdcm/Doc many doxygen changes:
291 - Doxyfile now has two different versions, DoxyfileUsers that generates
292 the html.users end users oriented documentation and
293 DoxyfileDeveloppers that generates the html.developper developper
294 oriented documentation.
295 - README changed accordingly
296 - requirement.txt removed (old design info moved to TODO).
297 - Additional files DoxyInstallation.txt, DoxyIntroduction.txt,
298 DoxyMainPage.txt, DoxyPython.txt provide more information.
299 - Note: the website http://www.creatis.insa-lyon.fr/Public/Gdcm/ can now
300 be updated by simply regenerating the docs with doxygen and copying
301 html.developper and html.users to tux:/home/httpd/html/Public/Gdcm
302 * src/gdcmElValSet.cxx: stl <map>.count() can only return 0 or 1. Hence
303 all the tests in the form "if (<map>.count() >1)" were removed.
304 * src/gdcmFile.cxx: cosmetic changes to avoid messages of doxygen about
305 ill-formed documentation sections.
306 * src/gdcmHeader.cxx: ditto
307 2003-03-27 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
308 * setup.py fixed for un*x (needed macro for stdint.h)
309 * Test/test.cxx renamed to PrintHeader.cxx to avoid collision on
310 un*ces with sh-utils test utility.
311 * gdcmPython/demo/test.py renamed to PrintHeader.py
312 * gdcmPython/demo/ReorganiseFiles.py new demo script added.
313 * gdcmPython/win32/gdcmpycomplet.dsp renamed to gdcmpyembedded.dsp.
314 * gdcmPython/win32/gdcmpy.dsp trashed away (brain damaged).
315 * src/gdcm*.cxx JPR's bad inclusion fixed.
316 2003-03-26 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
317 * src/gdcmHeader[h, cxx] gdcmHeader now has an IsReadable predicate.
318 * gdcmPython/demo/test.py changed accordingly.
319 2003-03-25 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
320 * gdcmPython/Makefile.am fixed linking against libstdc++
321 * gdcmPython/_gdcm.so symbolic link to gdcmPython/.libs/pygdcm.so added.
322 * Swig subdir (historical tests of swig version 1.3.17++) removed
323 * Test/testChangeEntete.cxx some lines commented out in order to make
325 * src/gdcmHeader.cxx cleaned up wild JPR's dirty kludge.
326 * src/gdcmElValSet.cxx cleaned up frog's forgotten debug message
327 2003-03-24 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
328 * src/gdcmHeader.cxx gdcmHeader::gdcmHeader now calls LoadElements(),
329 hence the user doesn't need this explicit call.
330 - gdcmPython/testSuite.py, gdcmPython/demo/*.py changed accordingly
331 i.e. LoadElements() call removed.
332 * src/gdcmCommon.h now defines UINT32_MAX (see stdint.h).
333 - src/Makefile.am declares the proper flag for g++.
334 * src/gdcmElValSet.h added gdcmElValSet::GenerateFreeTagKeyInGroup
335 for adding user defined new tags.
336 - src/gdcmHeader.cxx gdcmHeader::NewManualElValToPubDict added.
337 - src/gdcmHeader.cxx gdcmHeader::AddAndDefaultElements now
338 cleanly adds some gdcm added tags (like gdcmXSize, gdcmYSize...)
339 2003-03-17 Fabrice Bellet <Fabrice.Bellet@creatis.insa-lyon.fr>
340 * Makefile.am, acinclude.m4, configure.in, python.m4, Dicts/Makefile.am,
341 Doc/Makefile.am, Test/Makefile.am, gdcmPython/Makefile.am,
342 src/Makefile.am : the project should properly compile and install
343 with the autotools, included the python wrappers part.
344 * gdcm.spec.in : added a spec file for RPM packaging.
345 2003-03-14 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
346 * src/gdcmUtils.cxx : redifinition of defaults parameters in code
347 2003-03-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
348 * gdcmPython/__init__.py fix of GDCM_DICT_PATH which was not
349 to exported to the environement (see gdcmPython/testSuite.py
351 * src/gdcmElValSet.[cxx/h], gdcmElValue.[cxx/h], gdcmFile.[cxx/h],
352 gdcmHeader.[cxx/h]: ElValSet class renamed to gdcmElValSet, and
353 ElValue class renamed to gdcmElValue for obvious consistency reasons.
354 * src/gdcmElValSet.cxx, src/gdcmUtil.[cxx-h] Tokenize utility function
355 moved away from gdcmElValSet.cxx to gdcmUtil.cxx.
356 2003-03-10 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
357 * gdcmPython/__init__.py doesn't crash anymore when running in
358 in InstallMode or PreInstallMode but with an environement given
359 value of GDCM_DICT_PATH.
360 * src/gdcmDictSet.[cxx/h] coding style.
361 2003-03-06 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
362 * src/gdcmHeader.h and gdcmHeader.cxx Coding style + doxigenation.
363 * src/gdcm.h general comments moved to TODO, and README
364 * src/gdcm.h should now be seen as a user commodity (including it
365 should suffice to fully use gdcm). It is nowhere including within
366 any of the kernel files src/*.cxx and src/*.h.
367 2003-03-05 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
368 * src/gdcm.h splitted in gdcmCommon.h, gdcmDict.h, gdcmDictEntry.h,
369 gdcmDictSet.h, gdcmElValSet.h, gdcmElValue.h, gdcmFile.h,
371 * src/gdcm*.cxx only include their corresponding include file
372 (as opposed to gdcm.h)
373 * gdcmPython/gdcm.i changed accordingly
374 * Test/Makefile.am corrected and added NEWS, AUTHORS in order for
375 the autogen.sh generated "make snapshot" command to work.
376 * autogen.sh removed history related references to crea package.
377 2003-03-04 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
378 * distutilsSwigCPlusPlus.py work around some swig portability
380 2003-03-03 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
381 * Eventually, python/gdcmPython was renamed to gdcmPython. This
382 was done in a last ditch attempt to get setup.py _really_
383 operationnal. The python/gdcmPython layaout add the advantage
384 of hidding away the python related distutils specific files
385 (MANIFEST.in, setup.py, distutils*.py...) from the main directory.
386 Alas, the src directory was out of scope (i.e. it's relative
387 position to setup.py was ../src) which made things impossible to
388 handle (see previous version of python/setup.py). Crossing fingers...
389 2003-02-20 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
390 * python/setup.py now works on Un*x. (harder than I thougth)
391 * python/distutilsSwigCPlusPlus.py can now have include files
392 among the list of sources.
394 2003-02-20 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
395 * src/gdcmHeader.cxx : bug fix - opening dicom file in binary !!!
396 * modifications in MSVC projects
397 2003-02-19 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
398 * As stated by the first lines of Test/ExceptionAndPython/README, it
399 looks like we can move back to original usage of exception within
400 src/gdcm* and hence remove the errno stuff that was introduced
401 as a quick and dirty fixture of this problem (added to the TODO).
402 * Doc/Doxyfile configuration file for Doxygen and corresponding
403 README file for usage added.
404 * Test/testWrite.cxx added. This new test comes from a split of
405 test.cxx that is now reverted to its original purpous i.e.
406 testing the proper parsing of a Dicom related file.
407 testWrite.cxx concentrates on testing the IO part of gdcm.
408 * Test/bug1.cxx (containing a bug on WIn32) added.
409 * src/gdcm.h, gdcmHeader.cxx, gdcmDictSet.cxx:
410 - gdcmHeader::GetPubTagNames and gdcmHeader::GetPubTagNamesByCategory
411 whose purpose is to publish the content of the TagNames of the
412 Dicom public dictionnary were not accessible without an
413 instance of class gdcmHeader.
414 - those methods are now static methods of gdcmDictSet and hence
415 require no instances at all to be invocated.
416 - within gdcmDictSet this change required to change some method
417 to class methods (i.e. are now static) among which SetDictPath
418 (renamed to BuildDictPath) and LoadDefaultPubDict.
419 * python/gdcmPython/demo/printGroupedPublicDict.py changed to illustrate
420 the above changes by calling the new method classes of gdcmDictSet.
421 * python/gdcmPython/__init__.py now exposes gdcm.gdcmDictSet for
422 the above to be effective.
423 * python/gdcmPython: in order to wrap properly the above changes
424 for Python, swig version now needs to be > 1.3.17.
425 * python/gdcmPython/Makefile fixed to adapt itself to new
426 configure/make shema introduced by Johan Montagnat (thanks for the
427 contribution). Alas this Makefile cannot be turned into a proper
428 Makefile.am without some heavy changes in the configure.in
429 (for python dectection).
430 * python/gdcmPython/gdcm.i: the out typemap map<string, list<string>>*
431 now avoids publishing the empty entries.
432 2003-02-13 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
433 * python/setup.py : bug fix concerning install under windows
435 * gdcm.dsw : bug fix concerning path for libraries for python !!!
436 2003-02-13 Benoit Regrain <Benoit.Regrain@creatis.insa-lyon.fr>
437 * Dicts/dicomV3.dic : remove double spaces !!!
438 * src/gdcmElValSet.cxx : bug fix concerning windows compiler
439 * python/gdcmPython/win32/gdcmpycomplet.dsp : bug fix concerning paths
441 2003-01-28 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
442 * src/gdcmHeader.cxx added a post header parsing AddAndDefaultElements
443 method. Doxygenation.
444 * src/gdcm.h clean up of JPR spurious comments.
445 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
446 * python/distutilsSwigCPlusPlus.py now properly collects the
447 shadow classes generated by "swig -c++" (gdcm.py in our case)
448 when using "python setup.py install".
449 * python/gdcmPython/__init__.py imports gdcm.py and only manually
450 reexports the working classes.
451 * src/gdcmHeader.cxx all the try/catch/throw calls were replaced
452 by the classical C errno scheme. This is to prevent an obscure
453 behavior of the python wrappers when importing wxPython.wx prior
454 to gdcmPython (which ended up in an abort call). An illustration
455 of this oddity can be found in the Test/ExceptionAndPython
456 subdir (see the README file). This problem probably due to
457 an combination of g++ and dynamic loading.
458 * added Test/ExceptionAndPython (see above)
459 2003-01-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
460 * Changed the layout of the python part to avoid bloating main
461 directory with setup.py, distutilsSwigCPlusPlus.py, MANIFEST.in
462 i.e. the distutils arsenal. All the python related stuff is
463 again in a python subdir, but the package itself is now in
465 * setup.py was cleaned up:
466 - pythonIncludePath removed
467 - python setup.py bdist target is now functional.
468 * gdcmPython/__init__.py doesn't export FileName any more (to avoid
469 collision with other packages). gdcmPython/demo/*.py changed
471 2003-01-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
472 * python subdir moved to gdcmPython (preparation of distutils packaging).
473 * gdcmPython/setup.py and distutilsSwigCPlusPlus.py added. The
474 distutils installer is operational.
475 * - gdcmPython/__init__.py now properly loads the swig generated
476 shadow classes (from gdcm.py).
477 - gdcmPython/demo/*.py changed to import the package gdcmPython
478 instead of gdcmPython/demo/load.py.
479 - gdcmPython/testSuite.py changed to import the package gdcmPython.
481 2002-12-16 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
482 * src/gdcm.h, src/gdcmHeader.cxx: added GetPubTagNames() resp.
483 GetPubTagNamesByCategory() to gdcmHeader that return a list of the
484 entries within the associated public Dicom dictionary resp. the same
485 information but sorted by the fourth field (PAT, IMG, DIR) of the
487 - Dicts/dicomV3.dic Entries which had and unspecified fourth field
488 are now in the "???" group.
489 - python/gdcm.i changed accordingly,
490 - python/demo/printGroupedPublicDict.py added, that gives an example
491 of the above new functionalities in Python.
492 2002-12-11 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
493 * src/gdcm.h, gdcmHeader.cxx:
494 - historic references to glib's g_malloc and g_free (#defined)
495 were definitively removed.
496 - gdcm.h: cosmetic changes (part of comments moved to Doc/requirements)
497 * src/gdcmElValSet.cxx:
498 - GetElement(guint32, guint32) renamed to GetElementByNumber.
499 - GetElValue(guint32, guint32) renamed to GetElValueByNumber.
500 - GetElValue(string) renamed to GetElValueByName.
501 - Added GetElementByName(string).
502 * src/gdcmHeader.cxx: added
503 - GetPubElValRepByNumber(guint16, guint16)
504 - GetPubElValRepByName(string)
505 - GetShaElValRepByNumber(guint16, guint16)
506 - GetShaElValRepByName(string)
507 - GetShaElValByNumber(guint16, guint16)
508 - GetShaElValRepByName(string)
509 - GetElValRepByNumber(guint16, guint16)
510 - GetElValRepByName(string)
511 - GetElValByNumber(guint16, guint16)
512 - GetElValRepByName(string)
513 * Doc/requirements.txt added.
514 2002-12-9 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
515 * Test/Makefile building now depends on the one of libgdcm.so
516 * src/gdcmHeader.cxx and gdcm.h are now OB (undefined length encoded
517 pixel data) aware which enables finding the address (offset) of
518 the pixel data of JPEG encoded DICOM files. This leaves only a single
519 file in the testSuite whose pixel data address (offset) is unknown.
520 * python/testSuite.py changed accordingly.
521 2002-12-6 Christophe Odet + Hugues Benoit-Cattin + Eric.Boix
522 * VC++ has some strong limitations when working with the STL, as stated
523 in http://support.microsoft.com/support/kb/articles/Q168/9/58.ASP :
524 "Also note that some STL containers (map, set, queue, list, deque)
525 cannot be exported. [...]
526 Some STL classes contain nested classes. These classes can not
528 This is caused by a designed limitation that once a template
529 class is instantiated, it can not be re-instantiated and
531 Since our usage of map<> is ubiquitous in gdcm, this "designed
532 limitation" of VC++ is a pitfall.
533 Hence the Python wrappers of gdcm cannot be incrementally linked
534 against the c++ dynamic library. The dirty but only workaround is
535 to forget about incremental link of dynamic libraries and to generate
536 the Python wrappers library with the inclusions of the underlying C++
538 The following modifications concern this matter on Win32/VC++:
539 - wrapping python correct with standalone wrapped dll (don't use separate
540 dll under windows !!!!)
541 - python21_d debug mode enabled (ask Frog how to use it :-)
542 - NO problem with having an STL member of class for example string in C++
543 WITH THE RESTRICTION OF FORGETING ABOUT INCREMENTAL LINK.
544 - Python test of dcmlib in Python is ok under windows on a large set
546 * removed glib references
547 * typedef's inserted in gdcm.i for correct swig type management
548 2002-11-27 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
549 * python/demo/*.py load.py extracted from test.py. Added explore.py
550 that only displays required tags and testAll.py that parses all
551 the files of the testsuite without using unittest.
552 * python/testSuite.py other additional test on new files added.
553 * Data/* new test files added accordingly to the testSuite.
554 * src/gdcmHeader.cxx avoid overwriting of the dictionary when
555 the vr in the file differs from the one of the dictionary.
556 2002-11-20 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
557 * src/gdcm.h and gdcmHeader.cxx gdcm no longer loads all the elements
558 values, but limits itself to values which are below a user specified
559 size (by default 1024 bytes).
560 * python/gdcm.i : elements not loaded (because their size is above the
561 user specified treshold) are exported with their TagKey as key of the
562 python dictionary. This enables the testsuite to make some checks
563 on the unloaded elements (since we have their offset and size).
564 * python/testSuite.py
565 - now tests for the existence and proper value of the pixel data
566 - two new examples added.
567 * Data/gdcm-MR-SIEMENS-16.acr[12] added.
568 2002-11-18 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
569 * src/gdcm.h and gdcmHeader.cxx are now "Big Endian transfer syntax"
570 aware. See the strategy comments in gdcmHeader::FindeLength().
571 * Test/test.cxx now accepts a filename as first argument.
572 * Data/US-PAL-8-10x-echo.dcm and US-RGB-8-epicard.dcm added.
573 * python/testSuite.py changed to integrate test on above files.
574 2002-11-15 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
575 * Dicts/dicomV3.dic removed all the trailing (RET) when the
577 * python/testSuite.py more tests added.
578 2002-11-14 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
579 * python/testSuite.py unittest test suite added (uses Data)
580 * Data/* dcm and acr files for the test suite.
581 * glib dependance removed from un*x version. We now use ISO C99
582 7.18 Integer types (see stdint.h)
583 - python/Makefile, src/Makefile src/gdcm.h
584 * src/ when an explicit vr (like dicom files) suddenly poped an
585 implicit element we use to mark the underlying DictEntry of the
586 concerned ElValue with "Implicit". This strategy was damageable
587 too the public or provite dictionaries, since some of their vr
588 would be changed. Since Header::FindLength heavily relies on the
589 detection by Header::FindVR of falsely explicit elements, I
590 added an extra ImplicitVr member to ElValue (boolean).
591 The rest of the changes we the necessary adaptations.
592 2002-11-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
593 * src/gdcmHeader::FindLength bug fix when trapping falsely explicit
595 * src/gdcmHeader::FindVR: hard way fix of falsely explicit vr files.
596 2002-11-8 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
597 * Adaptation for porting to VC++:
599 o forced to use std namespace (for string to be known)
600 o all class use __declspec export style on WIN32
601 - src/gdcmUtil.cxx new Exit method that wraps the exit call
602 (in stdlib.h on Win32 but in std:: for gcc)
603 * src/gdcmDictSet::SetDictPath adds a trailing / to environement
604 variable GDCM_DICT_PATH.
605 * src/gdcmHeader.cxx verbose comments made discrete.
606 2002-11-7 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
607 * python/gdcm.i: added a typemap that converts a C++ hashing table
608 to native Python dictionary.
609 * python/demo/test.py:
610 - now uses the native dictionary for exploration of gdcmHeader.
611 - takes an optional filename argument (the file to parse).
612 * src/gdcm.h and gdcmHeader.cxx: gdcmHeader now has an accessor on
613 PubElVals hashing table.
614 * Dicts/dicomV3.dic removed error prone trailing spaces.
615 2002-11-6 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
616 * Python wrapping process moved away from src/Makefile to
617 newly created python/Makefile (as well as gdcm.i)
618 * python/demo/test.py (that mirrors Test/test.cxx) is effective.
619 * src/gdcmHeader::FindLength only looks for current vr when necessary.
620 * src/gdcmDictSet.cxx: the dictionnaries directory path is now imported
621 from the environement variable GDCM_DICT_PATH (when existing).
622 * src/gdcmDict::GetTag bug fix.
623 2002-10-31 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
624 * Straightforward temporary fixes for swig to build the python wrappers.
625 src/Makefile now has a python working entry [by working we mean
626 that we can import de shadow classes without errors].
627 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
628 * hashtest.cxx removed (since allready in Test)
629 * src/gdcmlib.h renamed to src/gdcm.h
630 * src/dcm.i renamed to src/gdcm.i
631 * src/Makefile prepared for python wrapping
632 2002-10-29 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
633 * src/gdcmHeader.cxx :
634 - Parsing of header is now separated from loading of element values
635 (see gdcmHeader::LoadElements).
636 - general clean up of hopefully all file access (creation of
637 ReadInt16 and ReadInt32)
638 2002-10-22 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
639 * src/gdcmHeader.cxx :
640 - RecupLgr renamed to FindLength and cut off with new IsAnInteger
642 - SetLgrElem renamed to SetLength
643 - GetLgrElem renamed to GetLength
644 - ~gdcmHeader() made virtual to pesky warning messages at compile.
645 * src/gdcmElValSet.cxx fixed both GetElValue methods
646 * Dicts/dicomV3.dic falacious entry [7fe0 0010 OT PXL Pixel Data]
647 due to IdoDude was cleaned out.
648 2002-10-21 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
649 * src/gdcmHeader.cxx RecupLgr split in FindVR and RecupLgr. FindVR
650 concentrates on finding the value representation (when it exists).
651 RecupLgr now only finds the element value length, and it avoids
652 returning the unecessary skL (skipped length).
653 Also, offsetCourant was simply removed (with taille_fich) since
654 it was redundant with the File position internals (by using
655 ftell and fseek). This also made skL (see above in RecupLgr) usage
657 * src/gdcmHeaderIdo.cxx src/gdcmIdo.h added. Those files concentrate
658 on the libido specificities which are handled through class
660 * Test/implicit_vr.dcm dicom v3 in implicit value representation
662 2002-10-17 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
663 * Truckload of changes. Parsing of header is barely functional
664 (see Test/test) with the standard dictionary (see Dicts/dicomV3.dic).
665 2002-10-10 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
666 * src/gdcmHeader.cxx many addons of low level methods
667 2002-10-07 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
668 * src/gdcmHeader now contains_IdDcmCheckSwap, _IdDcmRecupLgr,
670 2002-09-12 Eric Boix <Eric.Boix@creatis.insa-lyon.fr>
671 * This corresponds to all the changes decided at the meeting of
672 May 23 2002. Needless to say we are running late...