X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FBatchUncompress.cxx;h=b14a5aeecb66928f069a6fc4d385be4b01f06e11;hb=77d14378a883e25a286dfdb30e815a61bcb5d8e8;hp=66fab7fe5a6b6c9dfe143f2c0732f93c988af915;hpb=94d43fe0f488565d35ad2e25d901affd35201237;p=gdcm.git diff --git a/Example/BatchUncompress.cxx b/Example/BatchUncompress.cxx index 66fab7fe..b14a5aee 100644 --- a/Example/BatchUncompress.cxx +++ b/Example/BatchUncompress.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: BatchUncompress.cxx,v $ Language: C++ - Date: $Date: 2006/01/18 10:21:37 $ - Version: $Revision: 1.2 $ + 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 @@ -55,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;