1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4 <META http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
5 <TITLE>Gdcm News</TITLE>
11 <!--#######################################################################-->
12 <H1>Gdcm News</a></H1>
14 <!--#######################################################################-->
16 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>
18 <A CLASS="anchor" NAME="missing">
19 <B>Missing features</B></A>
21 We know the following are missing; don't loose time looking for them ...<br>
22 We know they could be helpfull. We shall add them some day.<br>
23 Any contribution is welcome.
27 <LI> gdcm doesn't read yet <TT>JPEG-LS</TT> encoded files.
29 We said '<TT>JPEG-LS</TT>', not Lossless Jpeg ...<br>
30 [<TT>JPEG-LS</TT> is the basis for new lossless/near-lossless compression
31 standard for continuous-tone images intended for <TT>JPEG2000</TT>.
32 The standard is based on the LOCO-I algorithm
33 (LOw COmplexity LOssless COmpression for Images)
34 developed at Hewlett-Packard Laboratories]
36 <LI> gdcm doesn't read yet all <TT>JPEG2000</TT> encoded files.
38 But we are working on it (a lot of troubles with Jasper).
40 <LI> gdcm doesn't read yet <TT>MPEG2</TT> encoded files.
42 But we are working on it.
47 <LI> Allow user to tell <TT>gdcm::Document</TT> constructor he just wants
48 to load a given list of <TT>DocEntries</TT>
49 (to save CPU time and RAM space)
50 <LI> Allow user to tell <TT>gdcm::Document</TT> constructor he wants
51 to force the loading of a given list of <TT>DocEntries</TT>,
52 even if there length exceeds the current
53 <TT>MAX_SIZE_LOAD_ELEMENT_VALUE</TT>.
54 <LI> Allow 'frame by frame' reading (should be helpfull for huge
56 <LI> Allow subvolume selection / frames selection before reading.
57 <LI> Expose Read/Decompression mechanisms to allow user getting
58 information from <tt>DICOMDIR</TT> <br> -or from his own Data Base-
59 and reading his images without parsing
60 the header, one more time.
64 <LI> Allow user to tell the Writer he doesn't want to write down
65 <TT>SeqEntry</TT> (if any)
66 <LI> Allow user to tell the Writer he doesn't want to write down
67 <TT>Shadow groups</TT> (if any)
68 <LI> Allow user to tell the Writer which compression mode he wants<br>
69 (Right now, no one is available)
70 <LI> Allow user to tell the Writer he wants to split a
71 <TT>Multiframe</TT> image into a serie of
72 <TT>Single frame</TT> images.
73 <LI> Allow user to tell the Writer he wants to agregate a
74 Serie of <TT>Single frame</TT> images into a
75 <TT>Multiframe</TT> image.
79 <LI> Full <TT>Icon Image</TT> management (Read and Write)
80 <LI> Full <TT>Overlays</TT> management (Read and Write) <br>
81 both for '<TT>ACR-NEMA</TT> style' (using groups <TT>0x6000</TT>
82 and nexts) and '<TT>DICOM V3</TT> style' (using Sequences)
84 <LI> <TT>DICOMDIR</TT>
86 <LI> <TT>DICOMDIR</TT> full management (not limited to
87 <TT> PATIENT</TT>/<TT>STUDY</TT>/<TT>SERIE</TT>/<TT>IMAGE</TT>)
88 <LI> Allow user to add an entry (belonging to the file header Dicom
89 entries)to the default entry list, before
90 making a <TT>DICOMDIR</TT> from a root directory
91 <LI> Allow user to add an entry of his owns (for instance an <TT>Icon</TT>
92 to each image, or to each Serie).
97 <LI> An accurate <TT>SerieHelper</TT> <br>
98 Right now <TT>SerieHelper</TT> only works on 'bona fide Series', and
99 breaks on wrongly forged Series.<br>
100 We are still looking for any heuristics...
101 <LI> A <TT>SerieHelper</TT> that would use the <TT>DICOMDIR</TT> (if any)
102 instead of parsing all the files within the Root Directory
106 <LI> 16-bits-LUT full Management
107 <LI> User friendly management of <TT>Rescale Slope</TT> and
108 <TT>Rescale Intercept</TT>
109 <LI> Allow parsing the <TT>Shadow groups</TT> against a user supplied
110 private <TT>Dicom Dictionary</TT> (pfff!...)
113 <!#######################################################################>
114 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>
116 <A CLASS="anchor" NAME="NewsCurrentVersion">
117 <B>Current Version</B></A>
125 <a href="uml-gdcm.pdf">gdcm UML Class Diagram</a> current version.
128 <LI> <A HREF="News.html#missing">Missing Features</a>
131 <LI> <TT>AnonymizeNoLoad</TT> used with <TT>dirin=inputDirectoryName</TT>
132 anonymizes all the files within the given Directory.
134 User may also choose extra elements he wants to rub out: <br>
135 <TT>rubout=listOfElementsToRubOut</TT><br>
136 with <tt>listOfElementsToRubOut : group1-elem1,group2-elem2,
137 ...</TT> (in hexa, no space within the list )
139 <LI> <TT>gdcm::SerieHelper()</TT> has a new method
140 <TT>void AddGdcmFile(File *header)</TT>, that allows aware user to
141 create a '<TT>FileList</TT>' (actually a
142 <TT>std::vector< File* > </TT>).<br>
143 The <TT>FileList</TT> created this way will be the
144 'first one' in the <TT>gdcm::FileHelper()</TT> (retrieve it with
145 <TT>FileList *GetFirstCoherentFileList()</TT> ).<br>
146 It may be sorted using <TT>OrderFileList</TT>.<br>
147 No 'coherence check' will be performed on this <TT>FileList</TT>
149 It may be passed to a <TT>vtkGdcmReader</TT>
150 (to avoid parsing twice the files)
152 <LI> <TT>vtkGdcmReader</TT> can now get the result of
153 <TT>gdcm::SerieHelper</TT> (to avoid parsing twice the files)<br>
154 Proceed as follow :<br>
156 gdcmSerieHelper *sh = new gdcmSerieHelper();
157 sh->SetDirectory(myImageDirectory, true);
158 gdcmFileList *l = s->GetFirstCoherentFileList();
161 vtkGdcmReader *gr = new vtkGdcmReader();
162 gr->SetCoherentFileList(l);
165 This works with a directory that contains only one '<TT>Serie</TT>'
166 (same <TT>Serie UID</TT> for all the images).<br>
167 If it contains more than one <TT>Serie</TT>, you'll have to loop
168 on the Series, using <TT>GetNextCoherentFileList()</TT>;<br>
169 It will be up to the user to delete the <TT>gdcm::File</TT>.
171 See <TT>vtkgdcmSerieViewer</TT> for an example.
173 <LI>Both <TT>vtkgdcmViewer</TT> and <TT>vtkgdcmViewer2</TT>
174 are available to allow easy displaying of single/multiframe
175 GreyLevel/RGB/PaletteColor images<br><br>
176 <LI> <TT>DICOMDIR</TT> anonymiser (<TT>Load</TT> and <TT>Noload</TT> mode)
178 <LI> Because the <TT>gdcm::DicomDir::Load()</TT> method may be used
179 either for loading an already made <TT>DICOMDIR</TT> file or for
180 parsing all the dicom files with a given root directory we
181 syntaxically separated the operations: <br>
182 For loading an already made <TT>DICOMDIR</TT> file, use : <br>
184 gdcm::DicomDir *d = new gdcm::DicomDir();
185 d->SetFileName(fileName);
189 For parsing all the dicom files within a given root directory, use :<br>
191 gdcm::DicomDir *d = new gdcm::DicomDir();
192 d->SetDirectoryName(dirName);
196 <b>Don't</b> use any longer old deprecated style: <br>
198 gdcm::DicomDir *d = new gdcm::DicomDir();<br>
199 d->SetParseDir(true); // </TT>or <TT>d->SetParseDir(false);<br>
200 d->Load( fileName );<br>
203 <LI> User is now allowed to tell <TT>gdcm::Document</TT> constructor
204 he doesn't want to deal with <TT>SeqEntry</TT>
205 (every time it's possible) <br> and/or he doesn't
206 want to deal with <TT>Shadow groups</TT> (every time it's
207 possible) <br> or he doesn't
208 want to deal with <TT>SeqEntry</TT> that belong to a <TT>Shadow group</TT> (every time it's
212 gdcm::File *f = new gdcm::File();
213 f->SetLoadMode(NO_SEQ); | depending on what
214 f->SetLoadMode(NO_SHADOW); | you want *not*
215 f->SetLoadMode(NO_SEQ | NO_SHADOW);| to load from the
216 f->SetLoadMode(NO_SHADOWSEQ); | target file
217 f->SetFileName(fileName);
220 <b>Don't</b> use any longer old deprecated style: <br>
222 gdcm::File *f = new gdcm::File(fileName);</TT> <br>
224 <LI> User is now allowed to tell <TT>gdcm::DicomDir</TT> constructor
225 he doesn't want to deal with <TT>SeqEntry</TT>
226 (every time it's possible) <br> and/or he doesn't
227 want to deal with <TT>Shadow groups</TT> (every time it's
228 possible) <br> or he doesn't
229 want to deal with <TT>SeqEntry</TT> that belong to a <TT>Shadow group</TT> (every time it's
230 possible)<br> when he parses all the Dicom files within a given
234 gdcm::DicomDir *f = new gdcm::DicomDir();
235 f->SetLoadMode(NO_SEQ); | depending on what
236 f->SetLoadMode(NO_SHADOW); | you want *not*
237 f->SetLoadMode(NO_SEQ | NO_SHADOW);| to load from the files
238 f->SetLoadMode(NO_SHADOWSEQ); | within the root directory
239 f->SetDirectoryName(rootDirectoryName);
242 <b>Don't</b> use any longer old deprecated style: <br>
244 gdcm::DicomDir *dcmdir = new gdcm::DicomDir(dirName, true);</TT><br>
250 <LI> The difference between <TT>MONOCHROME1</TT> (low values = bright,
251 high values = dark) and <TT>MONOCHROME2</TT> (low values = dark,
252 high values = bright) is now taken into account.<br>
253 It's no longer up to the user to change the pixels value
254 <LI> Writing a 'True Dicom' image after reading an <TT>ACR-NEMA</TT> image
255 does not request any longer from the user to build up
256 'manually' the Meta Elements group (<TT>Ox0002</TT>)
257 <LI> Old '24 Bits' <TT>ACR-NEMA</TT> are now correctly re-written
258 in <TT>DICOM V3</TT> mode.
259 <LI> Element <TT>0x0000</TT> of <TT>Shadow groups</TT> is always forced to be a
260 <TT>ValEntry</TT> and its <TT>VR</TT> is forced to <TT>UL</TT>
264 <LI> A.P.I. breaking modifications (since previous version : <TT>1.0</TT>)
266 <LI> NEVER more API breaking modifications !!!
272 <LI> Use of <TT>Implicit Value Representation</TT> writting mode may
273 causes troubles, when there are some <TT>SQ</TT> belonging to a
274 <TT>Shadow Group</TT>. <br>
275 Better you use <TT>Explicit Value Representation</TT> writting mode ...
276 <LI> Troubles on 'Big endian' processors (i.e. Apple/Motorola, SunSparc
277 ...) when writting 16 Bits images.
284 <!#######################################################################>
285 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>
287 <A CLASS="anchor" NAME="NewsVersion1_0">
288 <B>Version 1.0 (Feb 14 2005)</B></A>
294 <a href="Doc1.0/uml-gdcmV1.0.pdf">gdcm 1.0 UML Class Diagram</a> version.
295 <LI> <a href= "Doc1.0/html.user/index.html">User Documentation"</a>
296 <LI> <a href= "Doc1.0/html.developper/index.html">Developper
298 <LI> Final check of the jpeg sub-library: all 'classical' jpeg
299 compressed Dicom files can be read<br>
300 <LI>All the previously gdcm-breaker images are now readable<br>
301 <LI> A huge number of memory leaks removed
302 <LI> Improvement of write process
306 <LI> A.P.I. breaking modifications (since previous version : <TT>0.6</TT>)
308 <LI> Use of <TT> namespace</TT> : all the methods formerly named
309 <TT>className::gdcmXxx()</TT> are now named <TT>className::Xxx()</TT>
310 <br> End user will have to call them as <TT>gdcm::className::Xxx() </TT>
311 <LI> a <TT>gdcm::Document</TT> is now specialized in :
313 <LI> <TT>gdcm::DicomDir</TT>
314 <LI> <TT>gdcm::File</TT>
316 <LI> a <TT>gdcm::DicomElementSet</TT> is composed of a set of
317 <TT>gdcm::DicomDocEntry</TT>
318 <LI> a <TT>gdcm::DicomDocEntry</TT> can be :
320 <LI> a <TT>gdcm::ContentEntry</TT>, specialized in :
322 <LI> <TT>gdcm::ValEntry</TT>
323 <LI> <TT>gdcm::BinEntry</TT> (no longer a specialization of
324 <TT>gdcm::ValEntry</TT>)
326 <LI> a <TT>gdcm::SeqEntry</TT>
328 <LI> Removal of useless accessors <TT>GetXxxByname</TT>, <TT>SetXxxByname</TT>
329 <LI> Renaming of accessors <TT>GetXxxByNumber</TT>, <TT>SetXxxByNumber</TT>
332 <LI> <TT>GetEntryByNumber
333
334 --> GetEntryValue</TT>
335 <LI> <TT>GetEntryLengthByNumber --> GetEntryLength</TT>
336 <LI> <TT>GetEntryOffsetByNumber --> GetEntryOffset</TT>
337 <LI> <TT>GetEntryVRByNumber
338 --> GetEntryVR</TT>
340 <LI> <TT>GetDocEntryByNumber
341 --> GetDocEntry</TT>
342 <LI> <TT>GetValEntryByNumber
343 --> GetValEntry</TT>
344 <LI> <TT>GetBinEntryByNumber
345 --> GetBinEntry</TT>
346 <LI> <TT>GetSeqEntryByNumber
347 --> GetSeqEntry</TT>
352 <!#######################################################################>
353 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>
355 <A CLASS="anchor" NAME="NewsVersion0_6">
356 <B>Version 0.6 (June 8 2004)</B></A>
359 This version will be used by Insight Tool Kit
360 (<a href="http://www.itk.org">ITK</a> 2.0) at the beginning of 2005.<br>
361 It's not yet packaged ...<br><br>
362 <LI> <a href= "Doc0.6/html.user/index.html">User Documentation"</a>
363 <LI> <a href= "Doc0.6/html.developper/index.html">Developper Documentation"</a>
364 <LI> The new <TT>gdcmDocument</TT> class is a parent class of
365 <TT>gdcmHeader</TT> class and <TT>gdcmDicomDir</TT> class.
366 <LI> Massive modifications in the Class Diagram :
368 <LI> any dicom related file is a <TT>gdcmDocument</TT>
369 <LI> a <TT>gdcmDocument</TT> can be :
371 <LI> a <TT>gdcmHeader</TT>, if it contains pixel data
372 <LI> a <TT>gdcmDicomDir</TT>, if it contains only informations
373 on the files in a given directory
376 <LI> a <TT>gdcmDocument</TT> is_a <TT>gdcmElementSet</TT>,
377 composed of a set of <TT>gdcmEntry</TT> separated into :
379 <LI> <TT>gdcmValEntry</TT><br>
380 a specialization of <TT>gdcmValEntry</TT>, for 'non
381 <TT>std::string</TT> representable' values is
382 <TT>gdcmBinEntry</TT>
383 <LI> <TT>gdcmSeqEntry</TT> (VR = <TT>SQ</TT>, i.e Dicom Sequences)<br>
384 they are dealt as tree-like structures :<br>
385 - a <TT>gdcmSeqEntry</TT> is considered as a set
386 of <TT>gdcmSQItem</TT>,<br>
387 - a <TT>gdcmSQItem</TT> is_a <TT>gdcmElementSet</TT>, composed
388 of <TT>gdcmDocEntries</TT>, recursively <br>
391 <LI> Improvement of the jpeg sub-library: jpeg
392 compressed Dicom files (lossless and lossy)
393 might be read (check-it out)
396 <!#######################################################################>
397 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>
399 <A CLASS="anchor" NAME="NewsVersion0_4">
400 <B>Version 0.4 (February 6 2004)</B></A>
404 <LI> <a href="Doc0.4/uml-gdcmV0.4.pdf">gdcm 0.4 UML Class Diagram</a>.
405 <LI> <a href= "Doc0.4/html.user/index.html">User Documentation"</a>
406 <LI> <a href= "Doc0.4/html.developper/index.html">Developper Documentation </a>
408 <LI> Introduction of a jpeg sub-library: some very simple jpeg-lossy
409 compressed Dicom files might be working (check-it out).
410 <LI> And also, fewer memory leaks, cleaned-up stl usage (should work
411 with gcc-3.x), python disutil installer (see file setup.py)
412 supporting both Swig and vtk wrapping.
413 <LI> Introduction of a RLE (Run-Time Encoding) library
414 <LI> Color images (RGB or Palette Color) are dealt with
415 <LI> Confusing names <TT>gdcmPatient</TT>, <TT>gdcmStudy</TT>,
416 <TT>gdcmSerie</TT>, <TT>gdcmPatient</TT> changed to
417 <TT>gdcmDicomDirPatient</TT>, <TT>gdcmDicomDirStudy</TT>,
418 <TT>gdcmDicomDirSerie</TT>, <TT>gdcmDicomDirPatient</TT>
422 <!#######################################################################>
423 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>
425 <A CLASS="anchor" NAME="NewsVersion0_3">
426 <B>Version 0.3 (July 8 2003)</B></A>
429 <LI> <TT>gdcmFile</TT> class now enables acces to the data
430 i.e. the image[s] content. Previously only parsing of the
431 Dicom header was available through usage of <TT>gdcmHeader</TT>
433 <LI> a <A HREF="http://public.kitware.com/VTK/">VTK</A> plugin
434 of gdcm is now available through the <TT>vtkGdcmReader</TT>
435 vtk class (see it as a vtk wrapper of gdcm), which enables
437 <LI> Loading of a single image,
438 <LI> Loading of a stack of images from multiple Dicom files,
439 <LI> this class is wrapped for vtkPython (by using native vtk
442 <LI> Introduction of a jpeg sub-library: lossless-jpeg
443 compressed Dicom files work.
444 <LI> <TT>vtkgdcmViewer</TT> allows easy displaying of single/multiframe
445 GreyLevel/RGB/PaletteColor images
448 <!#######################################################################>
449 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>
451 <A CLASS="anchor" NAME="NewsVersion0_1">
452 <B>Version 0.1 (April 1 2003)</B></A>
454 <!#######################################################################>
455 <HR size="1"><ADDRESS style="align: right;"></ADDRESS>
457 <A CLASS="anchor" name="NewsVersion0_1">
458 <B>Version 0.0 (March 14 2003)</B></A>
460 <HR size="1"><ADDRESS style="align: right;"></ADRESS>