]> Creatis software - gdcm.git/blobdiff - Example/BatchUncompress.cxx
char *[] instead of char ** to avoid M$ troubles
[gdcm.git] / Example / BatchUncompress.cxx
index 14ce4e38c03aae94959f116ebdbef25b60c68e7f..b14a5aeecb66928f069a6fc4d385be4b01f06e11 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: BatchUncompress.cxx,v $
   Language:  C++
-  Date:      $Date: 2005/12/12 23:46:52 $
-  Version:   $Revision: 1.1 $
+  Date:      $Date: 2006/03/01 09:51:56 $
+  Version:   $Revision: 1.3 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -22,6 +22,9 @@
  * Someone at some point could update it to have more option, like not copying the private tags,
  * sequence...
  */
+ // Well ... ReWrite.cxx does the same thing
 #include "gdcmFile.h"
 #include "gdcmFileHelper.h"
 #include "gdcmDocument.h"
@@ -52,6 +55,9 @@ int main(int argc, char *argv[])
     uint8_t *imageData = output->GetImageData();
 
     output->SetImageData( imageData, dataSize);
+    // lossy compression would be a pixel modification.
+    // uncompress is *not* 
+    fh->SetContentType(gdcm::UNMODIFIED_PIXELS_IMAGE);    
     output->WriteDcmExplVR( outputfilename );
 
     delete output;