]> Creatis software - gdcm.git/blobdiff - Doc/Website/News.html
Avoid JPEG2000 writting to be confused by odd lengthes
[gdcm.git] / Doc / Website / News.html
index 97ce724411f263eb76548d6151b5387d5c9155a2..4958c06bb6402f1dc0c55323472da0478acaeadf 100644 (file)
@@ -33,14 +33,6 @@ Any contribution is welcome.
           (LOw COmplexity LOssless COmpression for Images) 
           developed at Hewlett-Packard Laboratories] 
      </UL>
-     <LI> gdcm doesn't read yet all <TT>JPEG2000</TT> encoded files.
-     <UL>
-         But we are working on it (a lot of troubles with Jasper).
-         Update: as of Oct 10 2005, we are currently investigating another library:
-         openjpeg. The problem still exist for this library but one of the author
-         is currently working on it:
-            http://www.openjpeg.org/forum/viewtopic.php?t=18
-      </UL>
       <LI> gdcm doesn't read yet <TT>MPEG2</TT> encoded files.
 
    </UL>
@@ -63,8 +55,6 @@ Any contribution is welcome.
            <TT>SeqEntry</TT> (if any) 
       <LI> Allow user to tell the Writer he doesn't want to write down
            <TT>Shadow groups</TT> (if any)
-      <LI> Allow user to tell the Writer which compression mode he wants<br>
-           (Right now, no one is available)
       <LI> Allow user to tell the Writer he wants to split a
            <TT>Multiframe</TT> image into a serie of 
            <TT>Single frame</TT> images.
@@ -110,7 +100,7 @@ Any contribution is welcome.
            of the private <TT>Dicom Dictionary</TT>
            to be used to parse <TT>Shadow groups</TT> against.
       <LI> User friendly way of anonymizing image when Patient's name is
-           carved in the Pixels :-(
+           burnt-in within the Pixels :-(
    </UL>
 </UL>
 <!#######################################################################>
@@ -131,7 +121,13 @@ Any contribution is welcome.
       <LI> <a href= "DocCVS/html.developper/index.html">Developper
          Documentation</a> 
    <LI> New Features
+   
    <UL>
+      <LI> To be able to use gdcm1.3.x and ITK, developer is now allowed to
+      choose his own namespace for gdcm at CMake time : see GDCM_NAME_SPACE
+      option.
+      <LI> JPEG and JPEG2000 compression writting are now available.
+       see Examples/WriteDicomAsJPEG.cxx and Examples/WriteDicomAsJPEG2000.cxx
       <LI> To <i>try to</i> make gdcm images PACS usable, user is now allowed to
            gdcm what kind of image he wants to write, using :  <br>
    <TT>void FileHelper::SetContentType (ImageContentType c);</TT> <br>
@@ -240,6 +236,24 @@ Any contribution is welcome.
    void ValEntry::CopyValEntry(uint16_t gr, uint16_t el);
 -->void DataEntry::CopyDataEntry(uint16_t gr, uint16_t el, VRKey const &vr);
 </pre>
+
+<pre>
+Example :
+
+old way :
+        DocEntry *p3 = item2->GetDocEntry(0x0018,0x0050);
+        if( !p3 ) return false;
+        ContentEntry *entry2 = dynamic_cast<ContentEntry *>(p3);
+        std::string thickness = entry2->GetValue();
+
+new way :
+        DocEntry *p3 = item2->GetDocEntry(0x0018,0x0050);
+        if( !p3 ) return false;
+        DataEntry *entry2 = dynamic_cast<DataEntry *>(p3);
+        std::string thickness = entry2->GetString();
+
+</pre>
+
 <LI> Avoid tons of CPU time consuming accesses to DICOM Dictionnary
 <pre>
    DataEntry *FileHelper::CopyDataEntry(uint16_t group, uint16_t elem);
@@ -258,7 +272,6 @@ Any contribution is welcome.
 -->void FileHelper::CopyMandatoryEntry(uint16_t group, uint16_t elem, std::string value,
                                        const VRKey &vr = GDCM_VRUNKNOWN);
 </pre>
-CopyMandatoryEntry(0x0002,0x0003,sop)
 <LI> New features :
 <pre>
 For multivaluated numeric DataEntries
@@ -268,8 +281,35 @@ For multivaluated numeric DataEntries
 
 For converting 'Decimal String'
 -->bool GetDSValue(std::vector &lt;double&gt; &valueVector);  
-      </pre>
-      <LI>
+</pre>
+
+<LI> Avoid too many source file modifications from gdcm1.2 to gdcm1.3
+<pre>
+use :
+
+#define ValEntry                      DataEntry
+#define BinEntry                      DataEntry
+
+#define GetEntryValue(g,e)            GetEntryString(g,e)
+#define GetEntryForcedAsciiValue(g,e) GetEntryString(g,e)
+
+#define GetValEntry(g,e)              GetDataEntry(g,e)
+#define GetBinEntry(g,e)              GetDataEntry(g,e)
+#define GetValue()                    GetString()
+
+#define InsertValEntry(v,g,e,vr)      InsertEntryString(v,g,e,vr) // warning mind the VR!
+#define InsertBinEntry(b,l,g,e,vr)    InsertEntryBinArea(b,l,g,e,vr)
+
+#define SetValEntry(c,g,e)            SetEntryString(c,g,e)  | !!
+#define SetValEntry(c,en)             SetEntryString(c,en)   | !!
+
+#define SetBinEntry(c,l,en)           SetEntryBinArea(c,l,en)   | !!
+#define SetBinEntry(c,l,g,e)          SetEntryBinArea(c,l,g,e)  | !!
+
+#define NewValEntry(g,e,vr)           NewDataEntry(g,e,vr)
+#define NewBinEntry(g,e,vr)           NewDataEntry(g,e,vr)       
+
+</pre>
    </UL> 
       
    <LI> Bug fixes