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
* 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"
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;