]> Creatis software - gdcm.git/blob - TODO
* src/gdcmElValSet.cxx, gdcmFile.cxx: JPR bug fix, removal of
[gdcm.git] / TODO
1 * Split gdcmHeader through inheritance to create gdcmHeaderHelper
2   that would regroup all the heuristics above a gdcmHeader e.g. the
3   functions GetXsize(), GetXSpacing(), GetXImagePosition()...
4   Those functions are the one using the results of the parsing as
5   done by gdcmHeader to provide the user with heuristics above various
6   values found in the header (the simplest form being to default a value).
7 * vtk/vtkGdcmHeader.cxx: if speed becomes a concern some changes can
8   be made a the cost of memory consumption (refer to header of 
9   vtk/vtkGdcmHeader.cxx)
10 * Add a GetVersion() global function.
11 * gdcmElValSet::SetElValueLengthByNumber IMNSHO should be trashed.
12   It's only purpose is a onliner substitute to calling GetElValueByNumber
13   and then SetLength. This only obfuscates the caller code more than
14   clarifying it.
15   Besides the definition of gdcmElValSet::SetElValueLengthByNumber itself
16   it quite poor since it is a almost exact copy of
17   gdcmElValSet::GetElValueByNumber except for the returned code.
18   gdcmHeader::SetPubElValLengthByNumber (which is based on 
19   gdcmElValSet::SetElValueLengthByNumber) is used nowhere...
20 * The declarations commented out and starting with "TODO Swig" (try
21   grep "TODO Swig" *.h) needed to be temporarily removed for swig to
22   proceed correctly (in fact problems appears at loading of _gdcm.[so/dll]).
23   So, simply uncomment the declaration once you provided the definition of
24   the method...
25 * As stated by the first lines of Test/ExceptionAndPython/README, it looks
26   like we can move back to the exceptions and remove the errno stuff from
27   src/gdcm* !
28 * Fix the bug in Test/bug1.cxx (see first comment line): Win32 only.
29 * All (or at least many of) the methods of gdcmHeader whose only arguments
30   are an ElValue* (e.g.  FindLength, FindVR, LoadElementValue...) can
31   be moved away to ElValue class on condition of transmitting the
32   gdcmHeader.fp attribute. This change should be considered since it
33   would allow those method to avoid artificial calls to ElValue::GetElement(),
34   ElValue::GetVR()...
35 * Eat leanding_trailing_whitespace (found in python/gdcmPython/gdcmi) should
36   be used when parsing the dictionary in C++ !
37 * Group length is not a unique tag in a file. Hence avoid putting it
38   in the element values dictionary without doing something smarter
39   (say, instead of storing the length store the group and the length
40    so we can related a length to a group).
41 * GetPubElValByNumber doit faire la difference entre chaine vide 
42   et chaine pas touve''. Eventuellement raiser une exception ?
43 * gdcmHeader::LoadElements only loads the element whose length is
44   below the specified size. When accessing the value of such an element
45   the content is unfound ! Find a decent way of loading the value on
46   explicit demand.
47 * JPR: fournir une method qui ne fait que lire les elements passes en arguments
48   sous forme d'une liste.
49 * JPR: gdcmHeader::CheckSwap() dans le cas ACR pas propre, degager tout de
50   suite si on a deduit que c'en est pas...
51 * python /usr/lib/python2.2/site-packages/DaVaW/demo/dvwDcmReader.py
52   and load image /home/frog/cvs/DCMlib/Data/CT-MONO2-16-ankle.dcm
53   will yield wrong coloring scheme as opposed to 
54   affim filein=/home/frog/cvs/DCMlib/Data/CT-MONO2-16-ankle.dcm
55 * gdcmFile should implement the following:
56    gdcmFile WriteDicom;
57    WriteDicom.SetFileName("MyDicomFile.dcm");
58    string * AllTags = gdcmHeader.GetDcmTagNames();
59    WriteDicom.SetDcmTag(AllTags[5], "253");
60    WriteDicom.SetDcmTag("Patient Name", "bozo");
61    WriteDicom.SetDcmTag("Patient Name", "bozo");
62    WriteDicom.SetImageData(Image);
63    WriteDicom.Write();
64
65    Anonymize(ostream& output) {
66       a = gdcmFile("toto1");
67       a.SetPubValueByName("Patient Name", "");
68       a.SetPubValueByName("Date", "");
69       a.SetPubValueByName("Study Date", "");
70       a.write(output);
71    }
72