]> Creatis software - gdcm.git/blob - TODO
* gdcmPython/testSuite.py: all the test suite in python is now moved
[gdcm.git] / TODO
1 -----------------------------------------------------------------------------
2 Use namespace gdcm:
3   Problem: using enum with name like 'Unknow' on .Net, or LP on cygwin 
4            causes problems.
5   Question: when introducing the namespace, should we remove the gdcm
6             prefix from classes or keep it ?
7 -----------------------------------------------------------------------------
8 Convert the C-like IO to C++ IO:
9   Goal: remove all the C-oriented IO references like FILE*, fread...
10         with the C++ fstream notation. Provide overload of operators
11         << and >> for any gdcm class using file IO.
12   Question: the underlying jpeg libraries (written in C) use the FILE*
13         notation. Is there a way to still use fstream in gdcm, and 
14         build or pass the proper FILE* to jpeg libs ?
15   References:
16         binary IO are available at
17         http://www.angelfire.com/country/aldev0/cpphowto/cpp_BinaryFileIO.html
18 -----------------------------------------------------------------------------
19 * vtk/vtkGdcmHeader.cxx: if speed becomes a concern some changes can
20   be made at the cost of memory consumption (refer to header of 
21   vtk/vtkGdcmHeader.cxx)
22 * Add a GetVersion() global function.
23 * gdcmElValSet::SetElValueLengthByNumber IMNSHO should be trashed.
24   It's only purpose is a onliner substitute to calling GetElValueByNumber
25   and then SetLength. This only obfuscates the caller code more than
26   clarifying it.
27   Besides the definition of gdcmElValSet::SetElValueLengthByNumber itself
28   it quite poor since it is a almost exact copy of
29   gdcmElValSet::GetElValueByNumber except for the returned code.
30   gdcmHeader::SetPubElValLengthByNumber (which is based on 
31   gdcmElValSet::SetElValueLengthByNumber) is used nowhere...
32 * Fix the bug in Test/bug1.cxx (see first comment line): Win32 only.
33 * All (or at least many of) the methods of gdcmHeader whose only arguments
34   are an ElValue* (e.g.  FindLength, FindVR, LoadElementValue...) can
35   be moved away to ElValue class on condition of transmitting the
36   gdcmHeader.fp attribute. This change should be considered since it
37   would allow those method to avoid artificial calls to ElValue::GetElement(),
38   ElValue::GetVR()...
39 * Eat leanding_trailing_whitespace (found in python/gdcmPython/gdcmi) should
40   be used when parsing the dictionary in C++ !
41 * Group length is not a unique tag in a file. Hence avoid putting it
42   in the element values dictionary without doing something smarter
43   (say, instead of storing the length store the group and the length
44    so we can related a length to a group).
45 * GetPubElValByNumber doit faire la difference entre chaine vide 
46   et chaine pas touve''. Eventuellement raiser une exception ?
47 * gdcmHeader::LoadElements only loads the element whose length is
48   below the specified size. When accessing the value of such an element
49   the content is unfound ! Find a decent way of loading the value on
50   explicit demand.
51 * JPR: fournir une method qui ne fait que lire les elements passes en arguments
52   sous forme d'une liste.
53 * JPR: gdcmHeader::CheckSwap() dans le cas ACR pas propre, degager tout de
54   suite si on a deduit que c'en est pas...
55 * python /usr/lib/python2.2/site-packages/DaVaW/demo/dvwDcmReader.py
56   and load image /home/frog/cvs/DCMlib/Data/CT-MONO2-16-ankle.dcm
57   will yield wrong coloring scheme as opposed to 
58   affim filein=/home/frog/cvs/DCMlib/Data/CT-MONO2-16-ankle.dcm
59 * gdcmFile should implement the following:
60    gdcmFile WriteDicom;
61    WriteDicom.SetFileName("MyDicomFile.dcm");
62    string * AllTags = gdcmHeader.GetDcmTagNames();
63    WriteDicom.SetDcmTag(AllTags[5], "253");
64    WriteDicom.SetDcmTag("Patient Name", "bozo");
65    WriteDicom.SetDcmTag("Patient Name", "bozo");
66    WriteDicom.SetImageData(Image);
67    WriteDicom.Write();
68
69    Anonymize(ostream& output) {
70       a = gdcmFile("toto1");
71       a.SetPubValueByName("Patient Name", "");
72       a.SetPubValueByName("Date", "");
73       a.SetPubValueByName("Study Date", "");
74       a.write(output);
75    }
76