]> Creatis software - gdcm.git/commitdiff
Add undocument option for Jpeg Writting (still bugged)
authorjpr <jpr>
Tue, 21 Aug 2007 13:17:51 +0000 (13:17 +0000)
committerjpr <jpr>
Tue, 21 Aug 2007 13:17:51 +0000 (13:17 +0000)
Example/ReWrite.cxx

index 65b5c8504e02d79378530477399c7ac4459726c5..442751b3de9db08cabc82185a0bdf9e0eccbc775 100644 (file)
@@ -3,8 +3,8 @@
   Program:   gdcm
   Module:    $RCSfile: ReWrite.cxx,v $
   Language:  C++
-  Date:      $Date: 2007/07/25 13:15:14 $
-  Version:   $Revision: 1.28 $
+  Date:      $Date: 2007/08/21 13:17:51 $
+  Version:   $Revision: 1.29 $
                                                                                 
   Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
   l'Image). All rights reserved. See Doc/License.txt or
@@ -419,6 +419,17 @@ int main(int argc, char *argv[])
          fh->WriteRawData(outputFileName);
          break;
  
+ // UNDOCUMENT on purpose, because it's still bugged :-(
+      case 'J' :
+      case 'j' :
+      // writting a DICOM Jpeg Lossless 
+      // from a full gdcm readable File
+         std::cout << "WriteDCM Jpeg Lossless" << std::endl;
+         //fh->SetWriteTypeToDcmExplVR();
+         fh->SetWriteTypeToJPEG();
+         fh->Write(outputFileName);
+         break; 
  // Just for fun :
  // Write a 'Video inverse' version of the file.
  // *Not* described, on purpose,  in the USAGE