From: jpr Date: Tue, 21 Aug 2007 13:17:51 +0000 (+0000) Subject: Add undocument option for Jpeg Writting (still bugged) X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=41fcaa925770000d87082af846146bf7a8d4438d;p=gdcm.git Add undocument option for Jpeg Writting (still bugged) --- diff --git a/Example/ReWrite.cxx b/Example/ReWrite.cxx index 65b5c850..442751b3 100644 --- a/Example/ReWrite.cxx +++ b/Example/ReWrite.cxx @@ -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