[Dcmlib] [Gdcm2] GDCM2: update

Mathieu Malaterre mathieu.malaterre at gmail.com
Tue Nov 27 23:38:10 CET 2007


Hi there,

  Just for info. I have finished cleaning up the API for GDCM 2.x, and
it has now all the features from GDCM 1.x to read (import) the very
same buggy dicom files:

http://gdcm.sourceforge.net/wiki/index.php/GDCM:Supported

  I am also handling (at run time) detection of the famous UN 16Bits
GDCM 1.x bug, so that one can still reread those buggy files.

Running some benchmark, I can now read+write all of gdcmData and + in
~38s. Using the very same code I can reread/rewrite the generated
(clean!) DICOM file in ~8s. This means that correct DICOM files are
handled much faster than buggy ones (which was one of the biggest
complain from GDCM 1.x users). Also bugs are cleanly encapsulated in
outside classes, or in ifdef code, that can easily be removed (at
compilation time).
Because of a design choice: I am reading a file, throwing an exception
upon failure and depending on the context where the failure occurs, I
am trying to read the file back again. This process works nicely and
exception are nice for that, but this has the following side effect: a
valid JPEG file can take up to 1.5s to be recognized as invalid DICOM
file.

Therefore in the following weeks:
1. I will try to optimize early detection of non-DICOM file so that we
can quickly give up and say the file is DICOM or not.

2. I will add more support for Private elements. See:
http://gdcm.svn.sourceforge.net/viewvc/gdcm/trunk/Source/DataDictionary/Private.xml

This file was generated from reading Explicit files and storing the
parsed dictionary to file (compared to generating it from conformance
statement).

3. I will work on the validation process (long term). See:
http://gdcm.svn.sourceforge.net/viewvc/gdcm/trunk/Source/InformationObjectDefinition/ModuleAttributes.xml


Thanks,
-- 
Mathieu

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Gdcm-developers mailing list
Gdcm-developers at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gdcm-developers



More information about the Dcmlib mailing list