frog [Wed, 27 Nov 2002 22:28:43 +0000 (22:28 +0000)]
* python/demo/*.py load.py extracted from test.py. Added explore.py
that only displays required tags and testAll.py that parses all
the files of the testsuite without using unittest.
* python/testSuite.py other additional test on new files added.
* Data/* new test files added accordingly to the testSuite.
* src/gdcmHeader.cxx avoid overwriting of the dictionary when
the vr in the file differs from the one of the dictionary. --- Frog
frog [Wed, 20 Nov 2002 17:55:46 +0000 (17:55 +0000)]
* src/gdcm.h and gdcmHeader.cxx gdcm no longer loads all the elements
values, but limits itself to values which are below a user specified
size (by default 1024 bytes).
* python/gdcm.i : elements not loaded (because their size is above the
user specified treshold) are exported with their TagKey as key of the
python dictionary. This enables the testsuite to make some checks
on the unloaded elements (since we have their offset and size).
* python/testSuite.py
- now tests for the existence and proper value of the pixel data
- two new examples added.
* Data/gdcm-MR-SIEMENS-16.acr[12] added. --- Frog
frog [Mon, 18 Nov 2002 08:54:13 +0000 (08:54 +0000)]
* src/gdcm.h and gdcmHeader.cxx are now "Big Endian transfer syntax"
aware. See the strategy comments in gdcmHeader::FindeLength().
* Test/test.cxx now accepts a filename as first argument.
* Data/US-PAL-8-10x-echo.dcm and US-RGB-8-epicard.dcm added.
* python/testSuite.py changed to integrate test on above files. --- Frog
frog [Thu, 14 Nov 2002 14:55:20 +0000 (14:55 +0000)]
* python/testSuite.py unittest test suite added (uses Data)
* Data/* dcm and acr files for the test suite.
* glib dependance removed from un*x version. We now use ISO C99
7.18 Integer types (see stdint.h)
- python/Makefile, src/Makefile src/gdcm.h
* src/ when an explicit vr (like dicom files) suddenly poped an
implicit element we use to mark the underlying DictEntry of the
concerned ElValue with "Implicit". This strategy was damageable
too the public or provite dictionaries, since some of their vr
would be changed. Since Header::FindLength heavily relies on the
detection by Header::FindVR of falsely explicit elements, I
added an extra ImplicitVr member to ElValue (boolean).
The rest of the changes we the necessary adaptations. --- Frog
frog [Fri, 8 Nov 2002 14:07:05 +0000 (14:07 +0000)]
* Adaptation for porting to VC++:
- src/gdcm.h
o forced to use std namespace (for string to be known)
o all class use __declspec export style on WIN32
- src/gdcmUtil.cxx new Exit method that wraps the exit call
(in stdlib.h on Win32 but in std:: for gcc)
* src/gdcmDictSet::SetDictPath adds a trailing / to environement
variable GDCM_DICT_PATH.
* src/gdcmHeader.cxx verbose comments made discrete. --- Frog
frog [Thu, 7 Nov 2002 15:11:35 +0000 (15:11 +0000)]
* python/gdcm.i: added a typemap that converts a C++ hashing table
to native Python dictionary.
* python/demo/test.py:
- now uses the native dictionary for exploration of gdcmHeader.
- takes an optional filename argument (the file to parse).
* src/gdcm.h and gdcmHeader.cxx: gdcmHeader now has an accessor on
PubElVals hashing table.
* Dicts/dicomV3.dic removed error prone trailing spaces. --- Frog
frog [Wed, 6 Nov 2002 22:48:40 +0000 (22:48 +0000)]
* Python wrapping process moved away from src/Makefile to
newly created python/Makefile (as well as gdcm.i)
* python/demo/test.py (that mirrors Test/test.cxx) is effective.
* src/gdcmHeader::FindLength only looks for current vr when necessary.
* src/gdcmDictSet.cxx: the dictionnaries directory path is now imported
from the environement variable GDCM_DICT_PATH (when existing).
* src/gdcmDict::GetTag bug fix. --- Frog
frog [Thu, 31 Oct 2002 15:15:49 +0000 (15:15 +0000)]
* Straightforward temporary fixes for swig to build the python wrappers.
src/Makefile now has a python working entry [by working we mean
that we can import de shadow classes without errors]. --- Frog
frog [Tue, 29 Oct 2002 17:37:08 +0000 (17:37 +0000)]
* src/gdcmHeader.cxx :
- Parsing of header is now separated from loading of element values
(see gdcmHeader::LoadElements).
- general clean up of hopefully all file access (creation of
ReadInt16 and ReadInt32) --- Frog
frog [Tue, 22 Oct 2002 14:10:49 +0000 (14:10 +0000)]
* src/gdcmHeader.cxx :
- RecupLgr renamed to FindLength and cut off with new IsAnInteger
method.
- SetLgrElem renamed to SetLength
- GetLgrElem renamed to GetLength
- ~gdcmHeader() made virtual to pesky warning messages at compile.
* src/gdcmElValSet.cxx fixed both GetElValue methods
* Dicts/dicomV3.dic falacious entry [7fe0 0010 OT PXL Pixel Data]
due to IdoDude was cleaned out. --- Frog
frog [Mon, 21 Oct 2002 10:29:42 +0000 (10:29 +0000)]
* src/gdcmHeader.cxx RecupLgr split in FindVR and RecupLgr. FindVR
concentrates on finding the value representation (when it exists).
RecupLgr now only finds the element value length, and it avoids
returning the unecessary skL (skipped length).
Also, offsetCourant was simply removed (with taille_fich) since
it was redundant with the File position internals (by using
ftell and fseek). This also made skL (see above in RecupLgr) usage
jajun.
* src/gdcmHeaderIdo.cxx src/gdcmIdo.h added. Those files concentrate
on the libido specificities which are handled through class
inheritance.
* Test/implicit_vr.dcm dicom v3 in implicit value representation
added. --- Frog